A regular AI chat keeps everything inside that one window. Close it or switch apps and the context is gone.
Coding agents like Claude Code and Codex are different: they work on the real files on your computer. So if a project lives in its own folder, both tools can open that same folder and see the exact same work. Nothing needs to be copied across.
Desktop/my-landing-page. Always open Claude Code inside that folder, either by choosing it in the desktop app or by running cd ~/Desktop/my-landing-page and then claude in the terminal.cd ~/Desktop/my-landing-page and then codex. Same folder is the whole trick.Find my last Claude Code session for this folder and tell me where we left off. Claude Code saves its session transcripts as .jsonl files in ~/.claude/projects/, in a subfolder named after this project's path. Open the most recent one for this folder and read it. Then tell me: 1. What we were building and why. 2. The last thing that was actually done (files changed, commands run). 3. What is still unfinished or broken. 4. The single next step you would take. Don't change any files yet. Wait for me to say go.
~/.codex/sessions. When Codex runs out, open Claude Code in the same folder and ask it to read your latest Codex session from there.Claude Code reads a file called CLAUDE.md in your project folder. Codex reads AGENTS.md. These are where your instructions live: how you like things named, what not to touch, how to test. Put the same instructions in both and the two models work like one brain.
The easiest way to keep them in sync is one shared file:
CLAUDE.md say @AGENTS.md. Claude Code then loads the shared file, and you can add any Claude-only notes underneath (Claude Code memory docs).I want Claude Code and Codex to follow the same instructions in this project. 1. Read my current CLAUDE.md (if there is one) and any notes you have about how I work in this folder. 2. Move every project rule that isn't Claude-specific into a new AGENTS.md in this folder: naming, folder layout, what never to touch, how to test, and how I like updates. 3. Replace the top of CLAUDE.md with the line @AGENTS.md so you load the shared file, and keep only Claude-specific notes below it. 4. Show me both files before you save them.
When you can see you're close to your limit, ask Claude to write a short handoff file. Then whichever model opens the folder next has a clean summary instead of a long transcript.
I'm about to run out of usage. Write a file called HANDOFF.md in this folder that another AI coding agent could pick up from. Include: what we're building, what's done, what's half done (with file names), any errors we hit and what we tried, the exact next 3 steps, and anything I've told you not to change. Keep it short and specific. Overwrite the old HANDOFF.md if there is one.
AGENTS.md and sits in the project folder, then start a fresh Codex session so it reloads.Build AI systems with me through recorded lessons you can follow at your own pace. Join the waitlist for first access and the founding price.