GitHub Copilot memory: instructions, repo facts, and the gaps
GitHub has been adding real memory to Copilot: repository facts, personal preferences, and instruction files. It is still bound to one ecosystem and one repository.
GitHub. Sources checked 2026-09-25.
How Copilot handles memory today
Copilot reads repository custom instructions from .github/copilot-instructions.md and path-specific files under .github/instructions/. Copilot Memory stores repository-level facts like conventions, build commands, and architectural decisions, plus user-level preferences, with controls for reviewing and curating both.
Agent-mode clients like VS Code can also connect remote MCP servers, which is the supported way to give Copilot a memory that is not GitHub-bound.
What GitHub Copilot forgets
Copilot memory is a strong default inside GitHub. It is not portable, and it is not the whole story.
- Everything outside GitHub. Work you do in a terminal agent, a chat product, or a local editor does not feed Copilot memory.
- The reasoning in a session that never produced a commit or a comment.
- Cross-repository context. Memory is tied to a repository, so two services that talk to each other hold separate facts.
- Anything you decide with another assistant, which stays in that assistant.
The fix with MemoryRouter
VS Code agent mode supports remote MCP servers. Connect MemoryRouter there and the same vault you use with Claude Code and Codex becomes available to Copilot.
- 1
Add the server in VS Code
Use MCP server configuration in VS Code, pointing at the MemoryRouter remote endpoint. Remote HTTP servers with OAuth are supported; the exact file location depends on your VS Code version, and the menu path is command palette, then MCP: Add Server.
mcp.json (VS Code)
{ "servers": { "memoryrouter": { "type": "http", "url": "https://mcp.memoryrouter.ai/mcp" } } } - 2
Sign in when prompted
VS Code opens the OAuth flow. Approve the connection and pick the vault.
- 3
Keep copilot-instructions.md lean
Instructions stay the place for how your team works. Let the vault hold decisions and session context so the instruction file does not grow into an archive.
Use it with Copilot agent mode and every other tool you connect. 14-day free trial.
Related
GitHub Copilot memory FAQ
Sources
- GitHub Copilot Memory concepts
- Adding repository custom instructions for Copilot
- VS Code MCP servers docs
Sources checked 2026-09-25. Tool behavior changes; check the vendor docs before relying on a detail.