Claude Code Usage Limit Mid-Task: Continue in Codex on the Same Worktree

A developer whose Claude Code session hit a usage limit mid-refactor can hand the same git worktree to OpenAI's Codex and keep working. Because Codex starts in the same folder, it also inherits ignored files such as .env and node_modules, which is why reusing the worktree is preferred over creating a new one. The conversation history and Claude's auto-generated memory do not transfer, so the plan and dead ends must be written down. The article recommends moving project rules from CLAUDE.md into AGENTS.md, which Codex reads, and importing that file back into CLAUDE.md. It also provides a handoff.sh script that generates a Markdown summary of commits, changed files, TODOs and test status for the next agent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in