Guide

How do you give coding agents a memory of your project decisions?

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:

Start for free No credit card needed

What does each coding tool remember on its own?

ToolInstruction fileWhat it saves itself
Claude CodeCLAUDE.md files in the project and your home folder; it reads AGENTS.md when there is no CLAUDE.mdAutomatic memory per repository, stored on your machine
CodexAGENTS.md files in the repository and in your Codex folderLocal memories on your machine, off until you turn them on
CursorProject rules in .cursor/rules, or an AGENTS.md fileIts docs describe no memory it writes for itself; it relies on rules
GitHub CopilotA copilot-instructions.md file in .githubMemory 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.

What do instruction files not carry?

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.

What should you save with each technical decision?

  • Write the decision in one sentence, with its date.
  • Give the reason: what tipped it, and which alternatives were rejected.
  • Set the review condition: when to look at it again.
  • Record what was tried and failed, so it is not tried twice.
  • Add the client and regulatory constraints that shape the design.

How does a tool find a decision made a year ago?

Claude
You

We rejected moving to a managed database service: three times the cost. Revisit if we pass 50,000 users.

Claude

Saved.

Saved to memory · Database decision
One memory
Cursor
You

A new engineer suggests moving to a managed service. Have we discussed this before?

With Memory Bridge

Yes. 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 decision

Illustrative example

What does a shared memory add?

  • The tool reads a decision when it needs it, rather than carrying it every session.
  • Context crosses tools: what you discussed in ChatGPT reaches Claude Code.
  • Context crosses repositories: one convention holds across all your projects.
  • Earlier versions show you when a decision changed.
  • Your memory is on any machine you use, not tied to one computer.

What do you ask your tools months later?

WhenThe questionWhat 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

How do you start?

  1. 1

    Keep the instruction file short

    Commands and conventions go there; decisions and their reasons go to memory.

  2. 2

    Save the decision when it is made

    At the end of the discussion, tell your tool: "Save this decision, its reason and its review date."

  3. 3

    Connect your coding tools

    So Claude Code, Cursor or Codex reads the decision before suggesting something that contradicts it. See Claude Code, Cursor and Codex.

Common questions

Does memory replace CLAUDE.md or AGENTS.md?

No. The file is for conventions read every session; memory is for what gets looked up when needed. They work together.

Does memory increase token usage?

Only what the request needs is retrieved. That is lighter than a long instruction file read in full every session.

How is this different from decision records in the repository?

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.

Does it work for a team?

Memory Bridge is built for personal use today. You keep your own decisions and your projects' decisions; team memory is not available yet.

Keep reading

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.

Cursor

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

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.

One memory. Every tool you use.

Start for free, no credit card needed. Your account arrives within minutes.

Start for free

No credit card needed · No commitment