Black Friday: 30% off Pro for life · until Tue 1 DecBlack Friday 30% off Pro · until 1 Dec
For creatorsMake videos about AI coding? Earn 50% for life.Earn 50% for life.Become a Morphy creatorJoin →
morphy

Claude hit its limit mid-turn: how to hand the work to Codex

Claude Code stopped at its usage limit mid-change? What Codex gets and what it doesn't, and a handover that works: AGENTS.md, a short note, git diff.

Short answer: when Claude Code stops at its limit halfway through a task, Codex can carry on, but it only knows what's in your folder and what you hand it. The files are there as Claude left them, half-finished edits included. The conversation, where the turn stopped, Claude's to-do list and its checkpoints are not. So before you start Codex: stop Claude from continuing by itself at the reset, look at git status and git diff, write a five-line handover note, and make sure Codex reads your project rules from AGENTS.md.

I build Morphy, where a chat can hand its work to another AI; how that works today is near the end. The steps before it work in any setup.

What happened to me

On November 30 I asked my agent a plain question: if Claude stops mid-turn, can Codex really pick it up? It read the code of Morphy's own handover and told me what it carries: the conversation as text, plus a note to look at the files as they are now. Not which files Claude changed, which commands ran and failed, or the step it was in the middle of. (Since Morphy 0.2.3 on December 4, it hands those over too; more near the end.)

That gap isn't special to Morphy: whatever you use, the next AI gets the story, not where the work stopped, unless you tell it. And something I learned the hard way six days earlier: when I moved my chats to my second Claude account, six agents' video renders that were running in the background died in the switch, one at frame 900 of 1,304. Anything running in the background is part of where the work stopped too.

What Codex gets, and what it doesn't

Does it reach Codex?
Files on diskYes, as they are now, half-finished edits included
The conversationOnly if you bring it: a note, an export, or Codex's /import
Where the turn stoppedNo: you find it with git status and git diff
Claude's task listNo: it's Claude Code's own checklist (Ctrl+T shows it)
Claude's checkpoints (/rewind)No: they belong to Claude's conversation, and files only another tool changed aren't tracked
Your CLAUDE.mdNo: Codex reads AGENTS.md unless you tell it otherwise
Background jobs (a dev server, a render, a test run)Check: they may have stopped with the session
Codex reads your project folder: the files as Claude left them, half-finished edits included, and AGENTS.md first. CLAUDE.md is skipped unless you point Codex to it, and a HANDOVER.md is there if you write one. The conversation, where the turn stopped, Claude's task list and its checkpoints for /rewind stay in Claude's session. Background jobs like a dev server or a render may have stopped with the session.
Codex shares your folder with Claude, not Claude's session.

First: do you need to switch at all?

Claude Code has three ways of its own to get past a limit, and they're worth knowing before you move anything:

  • It waits and continues by itself. Since version 2.1.234, in an interactive session signed in with a Claude plan, Claude Code waits in the open session and "continues the task on its own after the limit resets". It doesn't resend your message; it asks Claude to pick up where it stopped. Keep the session open.
  • It may get a few extra steps. If the 5-hour limit hits mid-response, Anthropic's wrap-up allowance can keep Claude working briefly "so it can reach a reasonable stopping point rather than stopping mid-step". You'll see Usage limit reached · wrapping up. It's small, it counts toward your weekly limit, and it's still rolling out.
  • An Opus or Sonnet limit isn't the end. Those limits only apply to that model family, so /model to another family keeps you working. The 5-hour and weekly limits cover every model.

If the reset is hours away and the work can't wait, hand it over.

When Claude stops mid-task, first ask whether only the Opus or Sonnet limit was hit: if so, use /model to switch to another model family. If it's the 5-hour or weekly limit and the work can wait, keep the session open and Claude continues by itself at the reset. If it can't wait, hand it to Codex with the six steps below.
Before you move anything: switch model, wait for the reset, or hand the work over.

Hand the work to Codex, step by step

1. Stop Claude from continuing at the reset

If Claude Code is waiting to continue by itself, press Esc at an empty prompt, or run /rate-limit-options and pick Don't continue automatically. Otherwise Claude may wake up at the reset and edit the same files Codex is working on.

2. Find where it stopped

git status
git diff --stat

That's the real state: which files changed and how much. Run your tests once, so you know whether the half-finished change builds. Then save that state, so you can always get back to it:

git add -A
git commit -m "wip: Claude stopped here"

Claude's /rewind doesn't track files that only another tool changed, so this commit is your undo for whatever Codex does next.

3. Write a short handover note

You can't ask Claude to write it: it's out of usage. Five lines are enough. Save them as HANDOVER.md in the project:

Goal: add CSV export to the reports page.
Done: the export button and the API route (see the wip commit).
Stopped in: src/reports/csv.ts, the date formatting is half written.
Last check: npm test, 2 failures in csv.test.ts.
Next: finish csv.ts, make the tests pass, don't touch the API route.

Want the whole conversation too? In Claude Code, /export handover-chat.txt saves it as plain text.

4. Make sure Codex reads your project rules

Codex reads AGENTS.md before it does any work. If your rules live in CLAUDE.md, pick one:

  • Import once: in the Codex CLI, type /import and choose Claude Code. Your instruction files become AGENTS.md, and your MCP servers, skills and up to 50 recent chats from the last 30 days come along.
  • Point Codex at it: add project_doc_fallback_filenames = ["CLAUDE.md"] to ~/.codex/config.toml.
  • For next time: keep the rules in AGENTS.md, and put the line @AGENTS.md in your CLAUDE.md. Claude Code then reads the same file.

5. Start Codex in the same folder

Open Codex in the project folder and start with something like:

Claude stopped mid-task at its usage limit. Read HANDOVER.md, then run
git status and git diff to see the files as they are now. Tell me in one
line what you're picking up, then do "Next". Don't redo what's done.

6. Check before you trust it

In Codex, /diff shows every change since your wip commit, including new files. Run the tests again. If it went the wrong way, git stash -u sets all of Codex's changes aside, new files included, and you're back at the commit from step 2.

Going back to Claude

When the limit resets, claude --continue in the same folder opens the most recent conversation there. Claude doesn't know what Codex did, so tell it in one line ("Codex finished csv.ts; read the git diff") before you ask for more. If you exited Claude Code, its automatic continue doesn't come back with it: you send the next message yourself.

In Morphy

Morphy is my app, so weigh this part with that in mind. When a turn stops at a plan's limit, the chat shows a card with, among others:

  • Continue with Codex (or any other AI you've connected): opens a new chat beside this one, in the same folder, and hands it the conversation so far, so it carries on with your last request. Since Morphy 0.2.3 (December 4), when the turn stopped partway, it also hands over where it stopped: the steps it took, the files it changed (with lines added and removed, and any file it was still changing), its to-do list and what it had written. The first chat stays as it was.
  • Switch to … another Claude account you keep in Morphy, which sends your message again in every chat that limit stopped.
  • Send when it resets, with the Send later plugin (Pro).

You can also switch any chat's AI yourself: click the model button, point at Provider and pick Codex. Your next message brings the conversation along (the newest 24 messages at most), and if you switch back, Claude only gets what happened since.

Neither hands over the diff itself, so I still run step 2 after a switch. See When you hit a usage limit and Switch to another AI.

Questions

Can Codex continue a task Claude Code started? Yes, in the same folder. It sees the files as Claude left them, but not the conversation or where the turn stopped unless you give it a note or the git diff.

Can I move my Claude Code conversation to Codex? In the Codex CLI, /import brings up to 50 Claude Code chats from the last 30 days. Or export one with /export in Claude Code and give Codex the file.

Does Claude Code continue by itself after the limit resets? Yes, since version 2.1.234, if the session stays open and you're signed in with a Claude plan. It stops after three automatic continuations in a row.

Does Codex stop mid-turn at its limit too? OpenAI says that if you reach your limits during an active turn, "the agent will be able to continue working on that turn, subject to fair use limits."

References