Getting Started
Set up once. ContextManager works in the background from that point forward.
Step 1 β Create a Project
- Click the π book icon in the Activity Bar
- Click + to create a new project
- Name your project (e.g., βmy-appβ)
- Select the workspace folders that belong to this project
- Open the Dashboard (click the status bar item or run
ContextManager: Open Dashboard)
Your project is now active. ContextManager will capture knowledge from all future Copilot interactions in this workspace.
ContextManager auto-discovers .github/copilot-instructions.md and README.md and includes them in project context.
Step 2 β (One-time) Register the Hook
To capture responses from all chat participants, register the VS Code agent hook once:
- Open the Dashboard β Settings tab
- Expand the πͺ Agent Hooks section
- Click Install Hooks β this copies
capture.ps1to~/.contextmanager/scripts/and writeshooks.jsonto.github/hooks/
Without the hook, intelligence still accumulates from auto-capture during your active chat sessions. With the hook, every Copilot Chat, @workspace, and background agent response is also captured automatically.
Step 3 β Chat Normally
Just use Copilot as you normally would:
What does the AuthController class do?
How is the error handling pipeline structured?
Explain the retry logic in NetworkClient.
ContextManager captures intelligence silently in the background:
| Whatβs captured | How |
|---|---|
| Conventions | LLM extracts coding patterns from responses |
| Tool Hints | Learned search terms that work for your codebase |
| Working Notes | Code relationships and insights discovered during exploration |
| Card Candidates | High-confidence knowledge staged in the Card Queue for review |
No commands. No setup. It just runs.
If you have multiple ContextManager projects, open the Dashboard β Sessions tab and bind each tracked chat session to the right project. Unbound sessions queue their captures until you assign them.
Step 4 β Review the Queue (Once a Week)
AI responses accumulate in the Card Queue. When you have a few:
- Open the Dashboard β Knowledge tab β π¬ Card Queue subtab
- Click π€ Distill into Cards β one LLM call synthesizes all queued items into card proposals
- Review proposals: click β Add for ones worth keeping (or Approve All)
- If a similar card already exists, a merge picker appears β merge is the default action
You donβt need to review the queue every session. Weekly or per-feature review is plenty.
Step 5 β Sessions Start Informed
From now on, every new Copilot session automatically receives context two ways:
copilot-instructions.mdmanaged block: ContextManager auto-syncs a managed section into your.github/copilot-instructions.mdcontaining#ctxtool usage instructions and pinned card titles. VS Code always includes this file, so every agent starts informed.#ctxtool: Available to all agents for on-demand search, list, learn, getCard, and explicit card queue review across all project knowledge.
The AI knows your architecture, conventions, and recent discoveries without you repeating yourself.
The Flywheel
graph TD
A[Work with Copilot normally] --> B[Knowledge captured in background]
B --> C[Queue: review and approve cards]
C --> D[Cards injected into every future session]
D --> E[Copilot starts informed]
E --> A
style A fill:#1f6feb,stroke:#388bfd,color:#fff
style B fill:#1158c7,stroke:#388bfd,color:#fff
style C fill:#238636,stroke:#3fb950,color:#fff
style D fill:#1158c7,stroke:#388bfd,color:#fff
style E fill:#1f6feb,stroke:#388bfd,color:#fff
Each session builds on everything that came before it.
LM Tools Reference
5 Language Model Tools available to all agents:
#ctx β unified search, list, learn, getCard, queue review, distillQueue, clearQueue
#getCard β read a specific knowledge card by ID
#saveCard β save a new knowledge card
#editCard β edit an existing card
#organizeCards β organize cards into folders
If multiple ContextManager projects exist, add project:"Exact Project Name" or the exact project ID/root path to every LM tool call.
Optional: Custom Workflows
Once you have knowledge accumulating, you can automate recurring AI tasks:
- Open the Dashboard β Intelligence tab β Custom Workflows
- Click + New Workflow and define a prompt template using `` placeholders
- Choose a trigger β manual, auto-queue, or event-based (convention-learned, card-created, etc.)
- Set the output action β create card, update card, or append to a collector card
Workflows run against your project data and can either generate markdown with AI or save rendered templates directly. See Custom Workflows for details.