Share context between Claude Code and Codex in one repo
- Level Beginner
- Setup~30 min (estimated)
- Evidence Anecdotal
- CostNot stated in source
- No-codeNo
What they did
A developer running Claude Code and Codex on the same codebase stopped them clobbering each other with one shared instruction file, a git worktree per agent, and a handoff file instead of re-explaining context.
How it went
Personal write-up; says the win is minutes per task, not magic
Worth knowing
- Personal write-up; says the win is minutes per task, not magic.
Prompt
Cleaned version rewritten from the source — not a direct quote.
Set up this repo for two coding agents: merge CLAUDE.md and AGENTS.md into one shared instruction file (symlink the other), create a separate git worktree for each agent, and add HANDOFF.md where whoever finishes a task writes what changed, what's left and which commands to run.
Recommended
Try it in Grok Bot
- Copy the prompt (button below).
- Open Grok Bot chat and paste it. Replace any [bracketed] placeholders.
- Connect the listed tools (as needed) as connectors when Grok Bot asks.
- If the task repeats, ask: "Make this a daily routine."
Alternatives: the same prompt works in Claude Code, Codex, Claude, ChatGPT Agent, OpenClaw.
Set it up
Stack: Claude Code + Codex
- Read the original source for full context.
- Connect the tools your agent needs.
- Paste the prompt and replace [bracketed] placeholders.
- Run once manually and check the output before scheduling it.
Generic suggested steps, not from the source.
Evidence
Personal write-up; says the win is minutes per task, not magic
Source: Web · Verified by us: not yet · Report broken or outdated