Persistent two-layer memory for GitHub Copilot. Auto-indexes your codebase and captures decisions, bug fixes and session knowledge  saving up to 90% of tokens in large projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Persistent two-layer memory for GitHub Copilot. Automatically indexes your codebase and captures session knowledge — so Copilot remembers context across days, weeks and months.
What it does automatically
After installing, with zero configuration:
Indexes your code — every file in the workspace becomes searchable context for Copilot
Captures session memory — decisions, bug fixes, personal notes (Copilot is instructed to save them)
Re-indexes on file changes — keeps memory up to date as you code
Shows status in the bottom status bar: 🧠 1,234 memories
Installation
Drag the .vsix file onto the VS Code Extensions panel, or:
code --install-extension copilot-mem-1.0.0.vsix
Restart VS Code. Everything else is automatic.
Usage
Start chatting with Copilot as normal — it will search and save memory automatically
Ctrl+Shift+M — Save selected text to memory manually
Command Palette → Copilot Memory: Show Memory Status
Command Palette → Copilot Memory: Index Workspace (manual re-index)
Memory protocol
The extension creates .github/copilot-instructions.md with instructions that tell Copilot to:
Search memory at the start of every conversation
Save personal information immediately (no prompting needed)
Save architectural decisions, bug fixes, and observations automatically
Use memory instead of re-reading source files (saves tokens)