Give your AI coding tools access to your best reference code — without copying anything into your repo.
Modern AI tools like GitHub Copilot, Cursor, and ChatGPT are only as good as the context they can see.
But your most valuable code usually lives somewhere else:
- previous services
- internal starter projects
- architecture patterns
- experimental repos
Agent Context lets you attach those projects directly to your workspace — so both you and your AI tools can use them immediately.
- Attach external folders as live references
- Expose them inside your workspace via symlinks
- Keep your repo clean (no copying, no vendoring)
- Maintain a shared instructions file for humans and AI
- Provide a sidebar to manage all attached context
Agent Context turns your past work into usable AI context.
When you attach folders, it can generate a shared instructions block that:
- Lists available reference projects
- Describes what each one is useful for
- Helps AI tools generate better, more consistent code
You’re working on:
/projects/current-app
You attach:
/projects/reference-apps/nest-auth-example
Agent Context creates:
/projects/current-app/.examples/nest-auth-example
Now:
- Browse it directly in VS Code
- Reference it in prompts
- Let AI tools use it as context
Example prompt:
"Implement authentication similar to the nest-auth-example in .examples"
- Activity Bar icon + sidebar view
- Add folders from anywhere on disk
- Remove folders safely (no impact on originals)
- Store descriptions for each reference
- Auto-managed
.gitignoreblock - Generated instructions file for team + AI awareness
- Fast, lightweight, zero-copy workflow
When you attach a folder, the extension:
- Creates a symlink inside a workspace folder (default:
.examples/) - Stores metadata in
.symlinks.json - Updates
.gitignorewith a managed block - Optionally updates an instructions file
The generated instructions section is safely wrapped:
...
Open Agent Context from the Activity Bar.
Available actions:
- Add Context Folder
- Refresh
- Open Agent Context Directory
- Remove Context Folder
- Edit Description
- Reveal Original Folder
- Default:
.examples
- Default:
true
- Default:
AgentContext.AGENTS.md
Agent Context is ideal when:
- You reuse patterns across projects
- You want AI tools to follow real examples
- You want to avoid copying code into repos
- You want teams aligned on reference implementations
- Open VS Code
- Go to Extensions
- Search for Agent Context
- Click Install
Or install via .vsix:
code --install-extension agent-context.vsix
- Node.js
- npm
- VS Code 1.85+
npm install
npm run compile
npm run watch
npm run lint
Open the project in VS Code and launch the Extension Host via debugger.
MIT