How to hand a task from Claude Code to Codex when you hit a usage limit

When Claude Code stops at its usage limit in the middle of a task, start a Codex chat in the same folder. The files, including uncommitted changes, are already there. What Codex lacks is what the Claude chat knew: the plan, what is done and verified, what is left and what it already ruled out. Give it that with a handoff note the Claude chat writes before it runs out or, with pingpong, let the Codex chat ask the Claude chat. pingpong first has Codex answer from the Claude chat’s recent conversation, which needs no Claude usage.

What the Codex chat needs

  • The files. In the same folder, Codex sees every change the Claude chat made, committed or not. Have it start with git status, git diff HEAD and git log for anything Claude committed.
  • The plan. What the task is, which steps are done, how they were verified, and what comes next.
  • The dead ends. What the Claude chat tried and dropped, so Codex doesn’t try it again.

The files carry over by themselves. Whatever plan and dead ends Claude didn’t write down stay in its conversation.

Without extra tools

A handoff note. When you are close to the limit, ask the Claude chat to write the plan and dead ends to a file such as HANDOFF.md, and tell Codex to read it first. It needs no other tools, but Claude has to write it while it still has usage, and it holds only what Claude thought to put in it.

The transcript. Claude Code normally saves each chat as a JSONL file under ~/.claude/projects/. You can point Codex at it after the limit hits, but it includes tool calls and their output, so the part that matters is buried in a long file.

Waiting. The limit resets, and claude --resume brings back the chat with its conversation. That’s fine when the task can wait.

Ask the Claude chat with pingpong

With pingpong set up, start a Codex chat in the same folder and ask:

Use pingpong to ask the Claude Code agent in this folder where it stopped: what is done and verified, what is left, and what it tried and dropped. If more than one agent matches, ask me which.

The Codex chat finds the Claude chat among the workspace’s agents by its folder and current work, and asks it. A stand-in answers on the computer the Claude chat ran on. When Codex is signed in there, Codex reads the newest part of the Claude chat’s conversation, with tool calls cut to a line and their output left out, and answers in its place. It runs in that folder and can read your files, under the response policy that the safety model describes. The Claude chat itself is left unchanged, so you can still resume it once its limit resets.

The answer arrives in the Codex chat, which can ask follow-up questions the same way, such as why an approach was dropped.

A few limits:

  • If Codex is not signed in on that computer, can’t read the chat’s transcript, fails or takes over two minutes, pingpong tries an unsaved copy of the Claude chat through Claude instead, which fails while Claude is out of usage.
  • Going the other way, when a Codex chat runs out, both attempts run through Codex on that computer. Have it write a handoff note before it runs out.
  • The answer is written by a model from part of the conversation. Check it against the files, and rerun any check it says passed, before building on it.

To finish on another computer, commit and push the work first, since pingpong doesn’t move files, and set up pingpong there in the same workspace. Ask for the Claude chat by its task and the folder it ran in, not “in this folder”. The answer still runs on the computer the Claude chat ran on, so keep it awake and online.

What is shared

When pingpong tries Codex, it can send the Claude chat’s recent conversation to OpenAI through your Codex sign-in. When it tries the copy of the Claude chat, that copy can send the chat’s conversation to Anthropic. One ask can reach both, even if no answer comes back. Asks and answers are stored in pingpong’s cloud. Members of the workspace you select can see the name, folder and current work of every Codex and Claude chat pingpong finds on your computer, in any folder. In your personal workspace, that is only you. Read what is shared and the safety model before you set it up.

Set it up

Sign up and install pingpong: the desktop app on macOS or Windows, or the CLI on macOS or Linux:

curl -fsSL https://pingpong.dev/install | sh

Setup adds pingpong’s tools to Codex and Claude Code, as the guide describes. The desktop app’s Connect agents sets up every folder; with the CLI, keep Every folder selected if its setup page opens. Start the Codex chat after setup so it has the tools, since a chat keeps the tool list it started with. The Claude chat needs none: pingpong finds recent Claude Code chats on that computer, including one that stopped before you installed it.