🧠 Copilot Memory

Persistent, two-layer memory for GitHub Copilot. Copilot Memory indexes your
codebase, watches your work in the background, and remembers decisions, bug
fixes and architecture across days, weeks and months — with zero
configuration and no manual "save" step required.
✨ 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, and personal notes are saved as you chat |
| 👀 Observes your activity |
A background AI pass reviews file saves, terminal commands and git commits, and saves anything worth remembering — even if you never ask Copilot to |
| 🔄 Re-indexes on file changes |
Keeps memory up to date as you code |
| 🧹 Cleans up after itself |
Near-duplicate memories are merged, and proven-useful ones rank higher in future searches |
| 📊 Shows status |
Bottom status bar: 🧠 1,234 memories |
📦 Installation
From the Marketplace — search for "Copilot Mem" in the Extensions panel, or:
ext install JoseGallardoCasanova.copilot-mem
From a .vsix file — drag it onto the Extensions panel, or:
code --install-extension copilot-mem-<version>.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)
👁️ Background Observer (automatic capture)
On top of the protocol above, the extension runs its own background AI pass —
independent of your chat conversations — that periodically looks at recent
activity (file saves, terminal commands, git commits) and saves anything worth
remembering on its own. This uses your Copilot request quota, so it's
conservative by default:
copilotMem.observerEnabled (default: true) — turn off to save memory manually only
copilotMem.observerIntervalMinutes (default: 5) — how often it checks, only when there's new activity
Memory is also self-cleaning: near-duplicate observations are periodically
merged (copilot-mem consolidate), and memories that turn out to actually be
useful rank higher in future searches.
Requirements
- VS Code 1.90+
- GitHub Copilot extension
- Node.js 20+