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-07</current_date> Africa/Nairobi </environment_context>
- User
Get rid of the Recovery tree view and any related codebase since the options are exposed as vscode commands that can be triggered by the user already.
- Assistant
I’m removing the Recovery tree view and tracing every registration, command, provider, and view contribution tied to it before editing. After that I’ll patch the extension and run the relevant validation commands.
- Assistant
The Recovery view is wired in
package.jsonandsrc/extension.ts. I’m reading those registrations plus the existing UI tests now so I can remove only the tree/view layer and leave the actual commands intact. - Assistant
The tree itself is isolated: I only see it in the extension manifest and the generic empty-tree registration path. I’m checking for any now-unused assets and test expectations before I patch those out.
- Assistant
I’ve confirmed the Recovery tree is not backed by its own provider. Before editing, I’m checking the current diffs on the manifest and activation file so I can preserve the user’s in-flight changes there.
- Assistant
I’m at the edit point. The patch will remove the Recovery contribution from the manifest, collapse the activation logic so only real providers are registered, and add a small regression test that asserts the Recovery view is no longer contributed while the commands remain.
- Assistant
I’m editing the manifest, activation wiring, and one regression test now. I’m also dropping the unused wrench assets so the repository no longer carries Recovery-view leftovers.
- Assistant
The first patch hit a context mismatch in
src/extension.ts, so I’m re-reading the exact current blocks and applying a narrower edit. No files were changed by that failed patch. - Assistant
The edit is in place. I’m checking the resulting diffs now, then I’ll run the extension validation flow to catch any manifest or compile issues.
- Assistant
The structural cleanup is done. I’m running one more codebase search to make sure no Recovery-view contribution or orphaned icon reference remains before I kick off the test/build commands.
- Assistant
pnpm compilefailed immediately on an invalidpackage.json, which means the manifest edit left JSON syntax broken. I’m fixing that now and then I’ll rerun the full validation. - Assistant
Validation passed, including the VS Code test harness. I’m doing one last status check so I can report only the files I changed and call out the pre-existing unrelated edits still in the worktree.
- Assistant
Removed the Recovery tree view from package.json and simplified view registration in src/extension.ts so the extension now only registers
Workspace,Active Sessions,Checkpoints, and theCheckpoint Detailswebview. The recovery actions still exist as normal VS Code commands, and src/test/extension.test.ts now asserts that the Recovery view is gone while those commands remain contributed. I also removed the unusedmedia/dark/wrench.svgandmedia/light/wrench.svgassets.Validation passed with
pnpm compileandpnpm test.There were already unrelated local edits in src/components/checkpointDetailPanel.ts and src/test/components/checkpointUi.test.ts; I left those intact.
- User
Commit the changes
- Assistant
I’m checking the current diff so I can make a focused commit for the Recovery view removal without sweeping in unrelated worktree changes.
- Assistant
I’m staging only the Recovery-view removal hunks so the commit stays scoped to your request and doesn’t absorb the unrelated checkpoint-detail work already in progress.
- Assistant
I’m applying an index-only patch now so the commit contains just the Recovery view removal and its regression test. The other in-progress edits will stay uncommitted.
- Assistant
The first staged patch was malformed. I’m regenerating zero-context diffs so I can apply exact hunks to the index instead of guessing at patch offsets.
- Assistant
I’m switching to a safer route: building an exact patch from the HEAD versions and applying that to the index. That avoids mixing this commit with the checkpoint-detail refactor in your worktree.
- Assistant
The generated patch applied cleanly in content but not in path names. I’m regenerating it with exact repo-relative paths and preserving original formatting so no stray whitespace-only changes get staged.
- Assistant
I got the view-registration hunk staged, but not the leftover welcome entries. I’m resetting just those staged files in the index and restaging them from a cleaner generated patch so the commit removes the entire Recovery view contribution, not half of it.
- Assistant
The index now matches the intended scope. I’m staging the regression test and icon deletions, then I’ll review the exact staged diff before committing.
- Assistant
The staged set is scoped correctly now. I’m committing that subset and leaving the unrelated checkpoint-detail edits uncommitted in the worktree.
- Assistant
::git-stage{cwd="/Users/savekirk/dev/ai/entire/session-bridge"} ::git-commit{cwd="/Users/savekirk/dev/ai/entire/session-bridge"}
- Assistant
Committed as
d566928with messagerefactor: remove recovery tree view.The worktree is still dirty with unrelated unstaged edits in package.json, src/extension.ts, src/components/checkpointDetailPanel.ts, and src/test/components/checkpointUi.test.ts. The Recovery-view removal work had already passed
pnpm compileandpnpm testbefore the commit.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.