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-08</current_date> Africa/Nairobi </environment_context>
- User
Session details in src/components/sessionsTreeView.ts should include the attributions
- Assistant
I’m updating the session details shown by
src/components/sessionsTreeView.tsto include attribution data. I’ll inspect the tree view implementation and the session model it consumes, then wire the missing field through and verify with targeted tests if they exist. - Assistant
I found attribution fields in the checkpoint/session domain models, but the sessions tree view card shape currently drops them. Next I’m tracing where that data exists and where the detail rows are assembled so I can add it cleanly without duplicating formatting logic.
- Assistant
The committed session cards already carry
attribution, but live cards don’t, and the sessions detail builder never renders it. I’m checking whether live sessions can derive attribution from the last checkpoint so the UI is consistent for both live and checkpoint-backed entries. - Assistant
I have the edit path now: add
attributiononto the session tree card model, propagate it from checkpoint and live session loaders, then render a dedicatedAttributiondetail row plus tooltip text. I’m also tightening the tests so this doesn’t regress the next time the session card shape changes. - Assistant
I’m applying the code changes now. The patch will thread
attributionthrough the live-session model as well, so a currently running session with a resolved last checkpoint shows the same attribution row as a checkpoint-only session. - Assistant
The code path is patched. I’m running type checks first, then I’ll execute the relevant test targets to make sure the new detail row and the live-session attribution join both work as expected.
- Assistant
The static checks passed. The VS Code integration test run aborted when launching the test harness inside the sandbox, so I’m retrying the same test command outside the sandbox to get a real result.
- Assistant
The new attribution assertions passed. The remaining failures are an existing label-format mismatch in
buildSessionIdentity: the code uses" . "while the tests and intended UI use" · ". I’m correcting that now so the relevant suite is green end-to-end. - Assistant
I’ve fixed the session label separator to match the existing UI tests. Re-running the targeted suite now.
- Assistant
The remaining failures are also in the existing tree item setup:
SessionsTreeItemnever sets itsdescription, even though the tests and UI expect the session status there. I’m wiring that in and running the suite one more time. - Assistant
The targeted session and checkpoint suites are now clean. I’m doing a quick diff pass so I can summarize the user-visible change and the verification accurately.
- Assistant
Session details now include an
Attributionrow in sessionsTreeView.ts, with a compact summary like93.3% agent · 42/45 linesand a tooltip breakdown for agent lines, human added/modified/removed, and the calculation timestamp. I also surfaced the same summary in the session tooltip, and kept passive tree refreshes sensitive to attribution changes.For live sessions, attribution is now carried through from the resolved checkpoint-backed session metadata in orchestration.ts, via the updated live session model in models.ts. I also fixed two existing UI mismatches while verifying this: session items now expose their status as the row description and use the
·separator expected by the tests in sessionsUi.test.ts and .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.