Cody memory: repository context per chat, and the enterprise flag
Cody is strongest when the codebase is the context. Its blind spot is everything you decided outside the codebase, which resets with each chat.
Sourcegraph. Sources checked 2026-09-25.
How Cody handles memory today
Cody grounds answers in your repositories and, on enterprise deployments, can fetch context from external tools through its agentic context feature. That external tooling is gated: the agentic-context MCP support requires a Sourcegraph Enterprise instance with the feature flag enabled.
On Cody Free or Pro without an enterprise instance, there is no supported path to an external memory server, so each chat starts from scratch.
What Sourcegraph Cody forgets
Repository context is not project memory, and a chat boundary erases the difference.
- Conversation history at the end of the chat, including the constraints you explained along the way.
- Any memory outside the repository. Decisions live in people and in tools like Claude Code, not in code comments.
- Cross-tool continuity, and in the default setup, cross-chat continuity too.
- External context on non-enterprise plans, where MCP tooling is not available at all.
The fix with MemoryRouter
Where Cody can call MCP tools, bridge it to MemoryRouter with mcp-remote and the vault becomes another source of grounded context.
- 1
Confirm the enterprise requirement
MCP support in Cody runs through agentic context fetching, which needs a Sourcegraph Enterprise instance with the agentic-context-mcp-enabled flag on. Verify first; there is no user-level switch for this.
- 2
Add the bridge to VS Code settings
settings.json (JetBrains uses cody_settings.json)
{ "cody.mcpServers": { "memoryrouter": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.memoryrouter.ai/mcp"] } } } - 3
Verify with a recall
Ask Cody to search memory for a fact you stored from another tool, which also confirms the OAuth bridge is signed in.
The Cody page explains the enterprise requirement and what to use when it is not available. 14-day free trial.
Related
Full Sourcegraph Cody guide
The Cody page explains the enterprise requirement and what to use when it is not available. 14-day free trial.
GitHub Copilot memory
Repository instructions plus Copilot memory, and where a portable vault fits.
Continue memory
Rules for behavior plus a shared vault over MCP for agent sessions.
Best memory for Claude Code in 2026
Compare the field with MemoryRouter.
Sourcegraph Cody memory FAQ
Sources
Sources checked 2026-09-25. Tool behavior changes; check the vendor docs before relying on a detail.