Skip to content

Guides

Keep coding when Claude Code or Codex cuts you off: hand the task to the other tool

Checked on 6 November 2026 against the sources below.

If you pay for both Claude Code and Codex, hand the task to the other one with a short note. Before the window runs out, or as soon as you have allowance again in the tool you are leaving, ask the agent to write HANDOFF.md: the goal, what is done, what is left, the decisions made and why, the files it touched, and the command that checks the work. Then open the other tool in the same folder and ask it to read the note and carry on.

We tried this both ways on small real tasks. Each time, the second tool picked the work up from the note alone and finished it, with every test passing. A fresh session reading a short note also costs far less than carrying a long conversation forward, which is most of what empties a window.

1. Before you stop: ask for the note

Paste this into the tool you are leaving. If it has already run out, use it as the first message when the window comes back, or skip to step 2 and let the other tool read the work as it stands.

Prompt
Stop here. Before you stop, write HANDOFF.md in the project root for another coding agent that has not seen this conversation. Include the goal, what is done, what is left, any decisions made and why, the files you touched, and the exact command to check the work. Keep it under 40 lines.

2. In the other tool: carry on from the note

Open Claude Code or Codex in the same folder and paste:

Prompt
Read HANDOFF.md and continue the work from where it stops. Check it with the command it gives.

When your first tool's window comes back, the same two steps hand the work back the other way.

What happened when we tried it

Two small tasks, each a Node.js module with three functions and tests, run from scratch folders on one machine:

  • Claude Code to Codex. Claude Code wrote the first function with 8 tests, then the note: the goal, what was left, why money was held as whole cents, which inputs it rejected, and npm test as the check. Codex read only the note, wrote the other two functions with their tests, and all 14 tests passed. Codex used about 12,000 tokens to finish.
  • Codex to Claude Code. Codex wrote the first function with its tests, using about 18,500 tokens, and a note listing its decisions, such as removing accents. Claude Code read only the note, finished the other two functions, and all 16 tests passed, in seven turns and about half a minute. It then updated the note itself to say the work was done.

What made the notes work was the "decisions and why" part: the second tool kept the choices the note explained, such as holding money as whole cents. Where a note left a question open, the second tool made its own call. Claude Code's note asked whether negative amounts should be allowed when formatting, and Codex decided to allow them. So read the second tool's summary before you carry on.

What it costs

On subscriptions, handing over costs only allowance in the second tool, which you already pay for. In money, the first step of our test, writing one function with 8 tests on Opus 5.5, came to about 27 cents at Anthropic's API prices, which is what it would cost if you paid by the token:

TokensCountPrice per millionCost
New input10$4under $0.001
Cache writes (one-hour)21,037$8$0.168
Cache reads186,579$0.20$0.037
Output3,281$20$0.066
Total$0.271

Claude Code's own figure for the same run was $0.27. The reason to hand over with a note rather than drag a long session along is the size of what gets re-sent. On the machine we tested, the largest requests of the week each re-read close to a million tokens of history. At $0.20 per million for a cache read, that is about 19 cents a turn; if the cache has expired and the history is written again at the five-minute rate of $5 per million, it is about $4.85 for one turn. A fresh session with a forty-line note starts near zero.

Things to watch

  • Hand over between steps, not in the middle of one. A half-written file is harder to describe than a finished one.
  • Commit, or at least note, what is done before you switch, so you can see exactly what the second tool changed.
  • The other tool has its own limits. Codex on ChatGPT Plus has its own 5-hour window, and what you can do now has both tools' reset rules.
  • Codex reads project instructions from AGENTS.md. Claude Code reads CLAUDE.md, and can also read AGENTS.md. If your instructions live only in CLAUDE.md, Codex will not see them, so mention them in the note or keep them in AGENTS.md.
  • Some people keep several accounts with the same vendor and move between them instead. That may break the vendor's terms of service, and this page does not explain how.

Seeing both tools in one place

Once you work across both tools, neither vendor's screen shows the whole picture. OpenReason Intel, a dashboard for Claude Code and Codex usage, keeps both tools' 5-hour and weekly windows side by side over time, from every machine you use, with each turn's estimated share of the window.

It shows you what happened; it does not hand work over for you, it does not stop a session as you work, and it cannot change either vendor's limits.

What to do next

  1. See what used up your limit

    Session Forensics is a free page that reads the Claude Code and Codex session files already on your computer, in your browser. It lists the limits you hit and the turns that used each one up. There is nothing to install and no sign-up, and your files are never uploaded. For Claude Code its 5-hour figure is an estimate, because Claude Code's files do not record the meter.

    Would you rather have your own agent do it? Paste this prompt into Claude Code or Codex.

    Open Session Forensics (opens in a new tab)
  2. Get an email when the limits change

    Get an email when Claude Code or Codex limits change. One email per change, at most one a week, from OpenReason. Unsubscribe from any email in one click.

  3. Track it over time

    Sign up with Google, no card, then run one command on Mac, Windows or Linux. OpenReason Intel then keeps your Claude Code and Codex 5-hour and weekly windows side by side, with each turn's estimated share of the window. It is free for small teams.

    It shows you what happened; it does not stop a session as you work, and it cannot change your vendor's limits.

    Sign up free with Google

Questions people ask

How do I keep coding after hitting my Claude Code limit?
If you also pay for Codex, ask Claude Code to write a short HANDOFF.md before it stops, then open Codex in the same folder and ask it to read the note and continue. We tried it both ways on real tasks and the second tool finished the work each time. Otherwise, wait for the reset or pay for usage past the limit.
What should a handoff note contain?
The goal, what is done, what is left, the decisions made and why, the files touched, and the exact command that checks the work, in under 40 lines.
Can Codex continue work that Claude Code started?
Yes, from a handoff note. In our test Codex read only the note Claude Code wrote, finished the remaining functions, and all 14 tests passed.

Sources

Every figure on this page was read from these pages on 6 November 2026. Limits and prices change; if a vendor page now says something different, the vendor page is right and this one is out of date.