Claude Code
Claude Code remembers CLAUDE.md and its auto memory on your machine. Connect Memory Bridge and every session starts with what you decided in your other tools.
Guide
Keep each project decision with its reason and date in a shared memory your coding agents all read, and leave commands and conventions to the instruction file.
Instruction files and a tool's automatic memory belong to one repository and one tool, and what you decide outside the editor never reaches them.
By Musab Alrakhis · Last reviewed:
| Tool | Instruction file | What it saves itself |
|---|---|---|
| Claude Code | CLAUDE.md files in the project and your home folder; it reads AGENTS.md when there is no CLAUDE.md | Automatic memory per repository, stored on your machine |
| Codex | AGENTS.md files in the repository and in your Codex folder | Local memories on your machine, off until you turn them on |
| Cursor | Project rules in .cursor/rules, or an AGENTS.md file | Its docs describe no memory it writes for itself; it relies on rules |
| GitHub Copilot | A copilot-instructions.md file in .github | Memory of repository facts and your preferences, in public preview, deleted after 28 days unused |
Checked in October 2026 against the official docs for Claude Code, Codex, Cursor and GitHub Copilot. These tools change monthly, so check there.
The instruction file is the right place for commands and conventions: how to run tests, how to name files. Keep it short, because it is read in every session.
Why a library was rejected, and what was tried and failed, belong in memory. Put them in the file and it grows, goes stale, and stops being updated.
We rejected moving to a managed database service: three times the cost. Revisit if we pass 50,000 users.
ClaudeSaved.
Saved to memory · Database decisionA new engineer suggests moving to a managed service. Have we discussed this before?
With Memory BridgeYes. You rejected it because it costs three times as much, and agreed to revisit at 50,000 users. Until you reach that number, the decision stands.
From memory · Database decisionIllustrative example
| When | The question | What comes back |
|---|---|---|
| When a new engineer joins | "Why did we choose this design?" | The decision, its reasons and its date |
| Six months on | "Which decisions are due for review?" | Decisions with their review conditions |
| During an incident | "Have we hit this problem before?" | What was tried and what worked |
Commands and conventions go there; decisions and their reasons go to memory.
At the end of the discussion, tell your tool: "Save this decision, its reason and its review date."
So Claude Code, Cursor or Codex reads the decision before suggesting something that contradicts it. See Claude Code, Cursor and Codex.
No. The file is for conventions read every session; memory is for what gets looked up when needed. They work together.
Only what the request needs is retrieved. That is lighter than a long instruction file read in full every session.
Records in the repository are read by whoever opens them. Memory is read by your tools when needed, and covers what was decided outside the code.
Memory Bridge is built for personal use today. You keep your own decisions and your projects' decisions; team memory is not available yet.
Claude Code remembers CLAUDE.md and its auto memory on your machine. Connect Memory Bridge and every session starts with what you decided in your other tools.
Cursor rules describe how to write code; the reasons behind decisions live elsewhere. Connect Memory Bridge and Cursor reads them from one shared memory.
Codex reads AGENTS.md, and its memories are off until you turn them on. Connect it to Memory Bridge and it reads your project decisions before every task.
Start for free, no credit card needed. Your account arrives within minutes.
No credit card needed · No commitment