Published 2 December 2026. File names, paths and settings checked against the Anthropic, Cursor and OpenAI documentation on 2 December 2026.
Your coding agent and your chat assistant do not share a memory, and as of 2 December 2026 none of the big ones can read what the others have learned. Claude Code keeps CLAUDE.md files plus an auto memory folder on your machine; Cursor keeps rules and reads AGENTS.md, and has had no memory store of its own since version 2.1; Codex reads AGENTS.md and can keep optional local memories that OpenAI says are separate from ChatGPT's; and ChatGPT and Claude each keep a memory about you that no coding agent reads. So a decision you settle with Claude Code at 11pm is unknown to ChatGPT the next morning, and the constraint you explained to ChatGPT never reaches Cursor. What does work today is one shared AGENTS.md for repository rules, a personal decisions file you wire into every tool by hand, or one memory layer that every tool connects to over MCP.
Suppose you spend an evening in Claude Code moving a small SaaS backend from polling a payments API to receiving webhooks, and you decide that retries stop after five attempts and that refunds are never automated. Claude Code may well save that in its auto memory. The next day you open ChatGPT to draft the changelog and a reply to a customer asking about refunds, and it knows none of it. You paste the decision in, it writes a good answer, and the clarification it gave you about idempotency keys now lives only in that chat. Two days later Cursor suggests automating refunds. Nothing here is a bug; each tool is doing exactly what its memory was built to do, which is remember things for itself.
What each tool remembers today
Putting the five memories side by side shows the seams fastest. Everything in this table comes from each vendor's own documentation, read on 2 December 2026.
| Tool | What it keeps | Where it lives | Who writes it | Can another tool read it? |
|---|---|---|---|---|
| Claude Code | CLAUDE.md instruction files, plus auto memory (MEMORY.md index and topic files) | Repo, ~/.claude/CLAUDE.md, and ~/.claude/projects/<project>/memory/ on your machine | You (CLAUDE.md), Claude (auto memory) | Only as plain files on disk; nothing reads auto memory by design |
| Cursor | Project Rules, User Rules, Team Rules and AGENTS.md | .cursor/rules/, AGENTS.md in the repo, User Rules in Cursor's settings | You | Repo files yes; User Rules no |
| Codex | AGENTS.md, plus optional Codex memories (off by default) | Repo and ~/.codex/; memories under ~/.codex/memories_v2/ or ~/.codex/memories/ | You (AGENTS.md), Codex (memories) | AGENTS.md yes; memories are local generated state |
| ChatGPT | Saved memories and reference chat history, project-only memory inside projects | OpenAI's servers | ChatGPT and you | No coding agent reads it |
| Claude app | Memory topics and chat search, project knowledge | Anthropic's servers | Claude and you | Claude Code does not read it today |
Only one file crosses tools, AGENTS.md, and it only crosses coding tools. Nothing in the table moves a fact from a coding agent to a chat assistant, or back, without you carrying it.
Claude Code: CLAUDE.md plus auto memory
Claude Code has two kinds of memory, according to Anthropic's memory page. CLAUDE.md files are instructions you write: a project file at ./CLAUDE.md or ./.claude/CLAUDE.md, a personal file for every project at ~/.claude/CLAUDE.md, and a private per-project file, CLAUDE.local.md, that you keep out of git. They can pull in other files with an @path/to/file import. Auto memory is notes Claude writes for itself, in four types: user (your role and preferences), feedback (corrections you gave it), project (ongoing work, deadlines and decisions it cannot work out from the code), and reference (where to find things outside the repo).
Auto memory lives at ~/.claude/projects/<project>/memory/, with a MEMORY.md index whose first 200 lines or 25KB load at the start of each session. It is on by default in local sessions, you toggle it from /memory (which saves autoMemoryEnabled to ~/.claude/settings.json), and CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 turns it off. One sentence in Anthropic's docs matters most here: "Auto memory is machine-local." It is keyed to the git repository, shared across that repository's worktrees on one machine, and "not shared across machines or cloud environments." A decision Claude saved on your laptop is not in Claude Code on your desktop, let alone in ChatGPT. For the full picture of how each coding agent stores memory, including subagent memory and compaction, see our guide to Claude Code memory.
Cursor: rules and AGENTS.md, no memory store since 2.1
If you are asking how to make Cursor remember, the answer changed just over a year ago. Cursor once had a Memories feature that saved facts from your chats. On 25 November 2025 a reply on Cursor's forum confirmed "The Memories feature was intentionally removed starting from version 2.1.x," and pointed users to the Export memories command, which writes them to an .mdc file you can add as a rule. Guides that tell you to switch Memories on describe a version that no longer ships.
What Cursor keeps now is rules, all of them written by you. Its rules documentation lists four kinds: Project Rules as .mdc files in .cursor/rules/, with modes for always applying, letting the agent decide, matching file globs or applying only when you @-mention them; User Rules, global preferences set under Customize > Rules that apply across all projects; Team Rules on Team and Enterprise plans; and AGENTS.md, a plain markdown file in the project root or in subdirectories, where nested files combine with their parents. One oddity worth knowing: Cursor was acquired by SpaceX in August 2026, and on 2 December 2026 the cursor.com documentation links redirected to docs.grok.com, where the same page is labelled Grok Build while the paths still say .cursor. The file names have not changed.
Codex: AGENTS.md, and memories that stay on your machine
OpenAI's AGENTS.md guide says Codex reads a global AGENTS.md (or AGENTS.override.md) from ~/.codex, then walks from the project root down to your current folder, taking at most one file per directory and stopping when the combined size reaches 32 KiB, the default for project_doc_max_bytes. Files closer to where you are working appear later and so take precedence.
Codex also has its own learned memory. Codex memories are off by default; you turn them on with Enable Codex memories under Settings > Personalization in the desktop app, or with memories = true under [features] in config.toml. They are stored locally under ~/.codex/memories_v2/ on a fresh setup (an existing ~/.codex/memories/ stays the default where it already exists). OpenAI is direct about the boundary: "ChatGPT web uses ChatGPT memory, while local Codex clients use a separate local memory store and controls." One company and one account still give you two memories.
ChatGPT and the Claude app: memory about you, on their servers
ChatGPT keeps saved memories ("details that you explicitly ask ChatGPT to remember") and, if Reference chat history is on, draws on past conversations too; both sit under Settings > Personalization > Memory, per OpenAI's memory help page. ChatGPT projects add files, project instructions and an optional project-only memory, in which "your previously saved memories are not referenced in project chats." We cover the settings in detail in our ChatGPT memory guide.
The Claude app keeps memory topics and chat search, explained in our Claude memory guide, and Claude projects add knowledge files and project instructions. Claude Code does not read your claude.ai memory today. On 30 November 2026 TestingCatalog reported a hidden Claude setting for per-app memory permissions with Claude Code as the only app listed and a read-only option, with no release date. Until it ships, Anthropic's own chat app and coding agent remember you separately.
Four gaps no native memory covers
Four gaps cause most of the "it forgot" moments when you work across these tools.
Repository rules versus personal context. AGENTS.md and CLAUDE.md are good at "we use pnpm and never touch the generated folder". They are a poor home for "I am pricing this at $29 and the launch is on the 14th", which is not about the repo and which you would not commit.
Coding agent to chat. Auto memory and Codex memories are local files that only their own agent reads. ChatGPT and Claude cannot see them, so the decisions you make while coding never reach the place where you write the changelog or the support reply.
Chat to coding agent. The reverse is just as closed. A constraint you worked out with ChatGPT lives in ChatGPT's memory or in a chat transcript, and no coding agent reads either.
Machine-local memory. Claude Code's auto memory and Codex memories are both machine-local, so even the same agent forgets between your laptop and your desktop. Rule files travel only if they are in git or you sync them.
Who owns your memory, and how to move it between assistants, is covered in our post on AI memory portability. Four bridges close these gaps, from cheapest to most complete.
Bridge 1: one AGENTS.md for every coding agent
For repository rules, write one AGENTS.md at the root and let every coding agent read it. Cursor and Codex read it directly. Claude Code now does too, which is newer than many guides; some posts from August 2026 still say it does not. Anthropic's page says Claude Code "can read AGENTS.md as your project instructions" from v2.1.277, but by default only when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in your working directory or above it.
That default has a trap. Anthropic notes that "adding one to keep your own uncommitted instructions in a project that relies on AGENTS.md stops Claude from reading AGENTS.md for you." If you have a personal CLAUDE.local.md or a team CLAUDE.md, put an import at the top of it so the shared file always loads:
@AGENTS.md
## Claude-specific notes
- Use the test runner in scripts/test.sh
Anthropic says keeping that import "never makes Claude read AGENTS.md twice", so it is safe to leave in place after you upgrade. The alternative is the Project instructions setting in /config, where claude-md-and-agents-md loads both. A symlink (ln -s AGENTS.md CLAUDE.md) also works, but Anthropic warns that Windows clones may check it out as a one-line text file.
Bridge 1 gives Claude Code, Cursor and Codex the same project context. It does nothing for ChatGPT or Claude, and nothing for decisions that do not belong in the repo.
Bridge 2: a personal decisions file you wire into every tool
For context that is yours rather than the repo's, keep one markdown file outside any project, for example ~/notes/decisions.md, and add a dated line each time you settle something:
# Decisions (newest first)
- 2026-12-02 Payments: webhooks replace polling. Retries stop after 5 attempts.
- 2026-12-02 Refunds are never automated; they go to a human.
- 2026-11-28 Pricing page shows annual first.
Then point each tool at it:
| Tool | How to load the file |
|---|---|
| Claude Code | Add @~/notes/decisions.md to ~/.claude/CLAUDE.md. Imports in user-level files load without the approval prompt Claude Code shows for external imports in project files |
| Codex | Codex reads ~/.codex/AGENTS.md on every run. Copy the decisions into it, or symlink it to your file and check that Codex picks it up on your setup |
| Cursor | Paste the current list into User Rules under Customize > Rules, which apply across all projects |
| ChatGPT | Upload the file to a ChatGPT project, or paste it into that project's instructions |
| Claude app | Add the file to a Claude project's knowledge |
I would start with this bridge, because it costs nothing and makes you write decisions down, which has value even if no AI ever reads them. Its limits are real, though. Every update means re-pasting into Cursor, ChatGPT and Claude by hand, so the copies drift. Size matters too: Anthropic suggests keeping each CLAUDE.md under 200 lines, and Codex stops adding instruction files once they reach 32 KiB combined, so a decisions log that grows for a year needs pruning. And nothing writes to the file except you.
Bridge 3: carrying a decision back from the chat window
Bridge 2 covers terminal to chat. The opposite direction needs a habit more than a file. When a chat settles something, ask the assistant to "write this decision as one dated line for my decisions file," and paste that line in. Writing it as a single line with a date keeps it short enough to survive the size limits and makes stale entries easy to spot.
Two native shortcuts help if you live mostly in one vendor's tools. On Anthropic's side, Anthropic's MCP page says that when you log in to Claude Code with a claude.ai account, the MCP servers you added in claude.ai (which Anthropic calls connectors) are automatically available in Claude Code. On OpenAI's side, the Codex MCP guide says "The ChatGPT desktop app, Codex CLI, and IDE extension share this configuration." Neither shares memory; they share tool connections. On Anthropic's side that means a memory connector you add once in claude.ai is also reachable from Claude Code, and on OpenAI's side an MCP server you set up once for Codex works across those Codex clients.
Bridge 4: one memory that every tool connects to
A complete fix is one memory store that every tool reads from and writes to, connected over MCP (Model Context Protocol, the open standard these tools use to call outside tools and data). Each coding agent registers MCP servers in its own place:
- Claude Code:
claude mcp add --scope user <name> ...makes a server available in all your projects; it is stored in~/.claude.json. - Cursor:
~/.cursor/mcp.jsonfor every project, or.cursor/mcp.jsonin one project, per Cursor's MCP documentation. - Codex:
codex mcp add <name> -- <command>, or a[mcp_servers.<name>]table in~/.codex/config.toml.
Connecting many MCP servers costs less context than it used to; Anthropic says Claude Code's tool search loads "only tool names and server instructions" at session start and fetches full tool definitions when needed.
You can run an open-source memory server yourself and register it in all of the above; the Claude Code memory guide linked earlier walks through a reference setup with hooks for recall and capture. What a self-hosted server does not give you is the chat side, because ChatGPT and the Claude app need a remote connector with sign-in, and the decisions you make there still have to be captured.
That two-sided gap is what we built Maximem Vity for. Running npx @maximem/vity setup connects Claude Code, Cursor and Codex in one command, with a separate API key for each tool; a status command shows the setup, and uninstall removes it and revokes the keys. On the chat side, you add Maximem Vity as a connector in ChatGPT (web and desktop) or in claude.ai and Claude desktop, sign in and allow access, with no key to copy. All of them share one memory, so a decision saved from Claude Code shows up when you open ChatGPT, and the reverse. Every memory shows the app it came from and a link to the original chat, and you can edit or delete it.
What belongs in a repo file, a decisions file or a shared memory
Not everything belongs in a shared memory, and the table below gives each kind of context its most useful home.
| Kind of context | Best home |
|---|---|
| Build commands, code style, folders not to touch | AGENTS.md in the repo |
| Your own editor preferences across projects | ~/.claude/CLAUDE.md, Cursor User Rules, ~/.codex/AGENTS.md |
| Decisions with a date: pricing, scope, architecture choices, things you ruled out | A decisions file or a shared memory layer |
| Who you are and how you like answers | Chat memory, or a shared memory layer so coding agents see it too |
| API keys, passwords, customer data | None of these. Use a secrets manager |
A quick test: if the fact would be wrong in six weeks, it should carry a date; if a teammate needs it, it belongs in git; if it is about you rather than the code, it belongs outside the repo.
Frequently asked questions
Does Cursor have memory?
Not a memory store of its own. Cursor removed its Memories feature in version 2.1, according to a reply on Cursor's forum on 25 November 2025. It now keeps context through Project Rules, User Rules, Team Rules and AGENTS.md, all written by you. To make Cursor remember a decision, add it to a rule or to AGENTS.md, or connect a memory server over MCP.
How do I make Cursor remember things between chats?
Put lasting project context in AGENTS.md or a Project Rule in .cursor/rules/ set to always apply, and personal preferences in User Rules under Customize > Rules. If you still have memories from before 2.1, run Export memories from the command palette and add the resulting .mdc file to your rules.
What is Claude Code auto memory, and where is it stored?
Auto memory is notes Claude Code writes for itself about your preferences, your corrections, ongoing project decisions and where to find things. It is stored at ~/.claude/projects/<project>/memory/, with a MEMORY.md index whose first 200 lines or 25KB load at each session start. Toggle it with /memory.
Is Claude Code auto memory synced across machines?
No. Anthropic's documentation says auto memory is machine-local and its files "are not shared across machines or cloud environments." Worktrees of the same repository on one machine share it.
Can ChatGPT see my CLAUDE.md or AGENTS.md?
No. ChatGPT reads only its own memory, your chats and what you upload or connect. To give ChatGPT your project decisions, upload the file to a ChatGPT project, paste it, or use a memory layer that ChatGPT connects to.
Does Codex share memory with ChatGPT?
No. OpenAI's Codex documentation says ChatGPT web uses ChatGPT memory, while local Codex clients use a separate local memory store with separate controls. Codex memories are also off by default.
Do Claude Code and the Claude app share memory?
Not as of 2 December 2026: Claude Code uses CLAUDE.md files and local auto memory; the Claude app keeps its own memory on Anthropic's servers. A per-app memory setting that would let Claude Code read Claude memory was reported in testing on 30 November 2026 and has not shipped. Connectors you add in claude.ai do appear in Claude Code when you log in with a claude.ai account.
Should I use AGENTS.md or CLAUDE.md?
If more than one coding agent touches the repo, write AGENTS.md and add @AGENTS.md at the top of any CLAUDE.md or CLAUDE.local.md you keep. Claude Code reads AGENTS.md directly from v2.1.277, but only when no CLAUDE.md file is present, so the import is what keeps it loading.
Give your terminal and your chat window the same memory
If your decisions start in Claude Code or Cursor and end up in ChatGPT or Claude, Maximem Vity keeps one memory across them: one command for your coding tools, a connector for your chat apps, and a Chrome extension for the AI sites you use in the browser.
Sources
All pages read 2 December 2026.
- Anthropic, How Claude remembers your project (Claude Code)
- Anthropic, Connect Claude Code to tools via MCP
- Anthropic, What are projects?
- Cursor, Rules (cursor.com/docs/rules redirects here)
- Cursor, MCP integrations
- Cursor forum, Are my memories gone?, 25 November 2025
- Cursor, Cursor is joining SpaceX, 14 August 2026
- OpenAI, Custom instructions with AGENTS.md (Codex)
- OpenAI, Memories (Codex)
- OpenAI, Model Context Protocol (Codex)
- OpenAI, Memory in ChatGPT
- OpenAI, Using projects in ChatGPT
- TestingCatalog, Anthropic prepares new memory controls for Claude, 30 November 2026



