Context Bridge
Context Bridge helps you send the right project context to an LLM and safely apply structured changes back to your VS Code workspace.
Features
- Create reusable file and folder selections
- Add or remove resources directly from Explorer
- Export selected project context into a single document
- Import structured LLM patches back into your workspace
- Create, rename, activate, deactivate, and delete selections
- See selection membership directly in Explorer
Quick Start
- Open a project in VS Code.
- Open the Context Bridge view in Explorer.
- Click Initialize.
- Create a selection.
- Add files or folders from Explorer.
- Click Export.
- Send the generated context to your LLM.
- Paste the returned patch into the Context Bridge document.
- Click Import to apply it.
Context Bridge supports structured operations:
Example:
cFILEb src/example.ts
cACTIONb modify
cSEARCHb
old text
cREPLACEb
new text
No changes:
NO_CHANGES
Configuration
Selections are stored in:
.vscode/context-bridge.json
This lets project-specific context selections live alongside your workspace configuration.
Repository
https://github.com/kirillnst/context-bridge
License
MIT
| |