AGENTS.md instructions for /Users/savekirk/dev/ai/entire/session-bridge <INSTRUCTIONS>…
- User
AGENTS.md instructions for /Users/savekirk/dev/ai/entire/session-bridge
Project Structure & Module Organization
src/extension.tsis the extension entrypoint and wires activation, commands, and views.src/components/contains UI-facing providers and panels such as the status bar item, checkpoint tree, and active session tree.src/checkpoints/holds the session/checkpoint domain logic, git enrichment, storage, transcript parsing, and search helpers. General utilities live in top-levelsrc/*.tsfiles such asworkspaceProbe.tsandrunCommand.ts. Tests live undersrc/test/, with reusable checkpoint fixtures insrc/test/checkpoints/fixtures/.media/stores extension icons. Treatdist/andout/as generated output.Build, Test, and Development Commands
pnpm compile: run type-checking, ESLint, and the esbuild bundle intodist/extension.js.pnpm watch: run esbuild watch mode andtsc --watchtogether for local development.pnpm check-types: run strict TypeScript checks only.pnpm lint: lintsrc/with the repository ESLint config.pnpm test: compile tests, rebuild the extension, and run the VS Code test harness.pnpm package: build the production bundle used for publishing.
Coding Style & Naming Conventions
Use strict TypeScript and follow the existing code style: tabs for indentation, semicolons, and mostly single-quoted imports/strings. Use
PascalCasefor classes, providers, and exported types; usecamelCasefor functions and locals; useUPPER_SNAKE_CASEfor extension-wide constants. Keep command and context identifiers namespaced, for examplesession.bridge.entire.refresh. Let ESLint catch small consistency issues, and do not hand-edit generated files indist/orout/.Testing Guidelines
Write tests as
*.test.tsundersrc/test/, mirroring the feature area when possible, such assrc/test/checkpoints/. This project uses Mocha with@vscode/test-cliandvscode-test, compiling test files toout/test/**/*.test.js. Prefer fixture-backed tests for checkpoint parsing, git metadata joins, and tree/detail view models. No formal coverage threshold is configured, but every behavior change should include or update targeted tests. - User
<environment_context> /Users/savekirk/dev/ai/entire/session-bridge zsh <current_date>2026-04-10</current_date> Africa/Nairobi </environment_context>
- User
Active sessions should be moved to their own view tree. The current sessions view tree should only load anddisplay list of sessions in the currently selected checkpoint. The active sessions view tree should always be hidden and only visible if and only if there's an acive session. Should clearly be labelled and have information related to active session with enough information for user to know.
- Assistant
I’m inspecting how the current session tree is wired so I can split active-session state into its own view and tighten the existing tree to only show sessions for the selected checkpoint.
- Assistant
I found the current shape: there’s a single
Sessionsview inpackage.json, and its welcome text explicitly mixes live sessions with checkpoint-scoped sessions. I’m reading the tree provider and extension wiring next so I can split those responsibilities cleanly. - Assistant
I’ve confirmed the current provider is intentionally multiplexing two different data sources. The cleanest change is to split the tree provider by mode, add a context key that controls whether the active-sessions view exists in the sidebar, and keep checkpoint selection isolated to the checkpoint-scoped sessions tree.
- Assistant
I’ve got enough context to start the implementation. Next I’m updating the provider to support explicit
activevscheckpointmodes, then I’ll rewire the manifest and extension activation to register two separate trees and gate the active one with a context key. - Assistant
I’m editing the sessions tree now. The provider is being split into explicit
activeandcheckpointmodes, and I’m adding a few live-session detail rows so the new active tree is more self-explanatory when it appears. - Assistant
I’m wiring the split at the extension layer now: new view ID, new context key for visibility, and separate selection/detail handling so checkpoint selection no longer affects the live-session tree.
- Assistant
I’m updating the manifest now. This is where the actual sidebar behavior changes: the old sessions tree becomes checkpoint-scoped, and the new active-sessions view is contributed with a
whenclause so it disappears completely when there’s no live session. - Assistant
I’m adjusting the unit tests to match the new contract. The key assertions now are that checkpoint sessions load strictly from checkpoint selection, and the active tree is driven strictly by the live-session snapshot.
- Assistant
The code changes are in place. I’m running the repo checks now to catch any type, lint, or test regressions from the provider split and new manifest wiring.
- Assistant
Type-checking and lint are clean. I’m running the test suite next to verify the new view contract and the updated manifest expectations.
- Assistant
The implementation is functionally in place. I’m doing a quick diff pass now and checking whether any cleanup is needed before I wrap, especially around verification results and any unrelated test failures.
- Assistant
I’ve finished the implementation pass. I’m pulling exact file references now so the close-out can point you to the view split, the visibility context wiring, and the updated tests without making you hunt through the repo.
- Assistant
Implemented the split.
Active Sessionsis now its own conditional view in package.json and src/extension.ts. It’s gated by a newsession.bridge.state.has-active-sessionscontext, so the view disappears entirely when there are no live sessions. The existing sessions view is now labeledCheckpoint Sessionsand no longer mixes in live session data.The provider in src/components/sessionsTreeView.ts now runs in explicit vs modes. Checkpoint mode only loads sessions for the currently selected checkpoint and prompts the user to select one when nothing is selected. Active mode is driven by the workspace probe snapshot and now exposes extra live-session details like , , and . Wiring and coverage were updated in and .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.