Switch between Claude Code, Codex and Cursor without re-explaining your repo

You are in the middle of a bug when Claude Code says stop. You open Codex and explain the repo as if it were a new hire. Or Cursor suggests exactly what you decided against two weeks ago. The tools do not share chats, but they do read the same files.

Updated 23 November 2026

A note card passed from a laptop with the Claude logo to a second laptop

Which file each tool reads

  • Codex reads AGENTS.md before any work: one from the Codex home (~/.codex) and one per folder from the project root down to where you are. The files are joined, and the nearest comes last.
  • Claude Code loads CLAUDE.md when the session starts. It reads AGENTS.md by itself only when there is no CLAUDE.md.
  • Cursor reads AGENTS.md in the root and in subfolders, and Project Rules in .cursor/rules as .mdc files.

One rules file for all three

Write the rules in AGENTS.md, and let CLAUDE.md hold one line: @AGENTS.md. Then Codex, Cursor and Claude Code read the same thing, and you avoid three copies drifting apart.

It matters: Anthropic writes that when two files give different guidance for the same behavior, Claude may pick one arbitrarily.

A handoff note when the limit comes

Each tool resumes its own sessions, with /resume in Claude Code and codex resume in Codex, but none moves a session to another tool. Ask the agent to update a HANDOFF.md before the limit:

  • the bug, and how to reproduce it
  • what was tried, and what did not work
  • the files you suspect
  • the next step

Read more: Claude limit reached: how to keep working without losing the thread

Decisions belong in the rules

“Tailwind only, no component library” said only in a chat does not exist for the next tool. Write choices like that into AGENTS.md with a date, and all three read them.

Read more: Claude Code forgets your repo after /clear: how to keep the context

Questions people ask

Does Claude Code read AGENTS.md?

Yes, recent versions read AGENTS.md when there is no CLAUDE.md. If you have both, put the line @AGENTS.md in CLAUDE.md and it is imported.

Can Cursor use AGENTS.md?

Yes. Cursor reads AGENTS.md in the project root and in subfolders, next to Project Rules in .cursor/rules. The more specific instructions win.

Where does Codex look for AGENTS.md?

Codex reads one file from the Codex home, usually ~/.codex, then one per folder from the project root down to where you are. Together they can be 32 KiB by default.

In Marshi

In Marshi, decisions live in one place

Marshi does not move a coding session between tools. Claude Code, Codex and Cursor can each connect to the same Marshi project over MCP and read its brand, the project and the decisions saved there.

  1. Decide once. A project in Marshi keeps what was decided, with the date, once you press Save on the card.
  2. Every tool reads the same thing. Claude Code, Codex and Cursor can connect to the same project and read the decisions from there, so you do not copy them between tools.

Your AI work starts here.

Start in Marshi

Free to start. No AI expertise required.

Ask your preferred AI

about Marshi