Workflows
Refine a plan with Codex
Use the Claude-vs-Codex debate loop to pressure-test and refine an implementation plan.
/code:plan-with-codex runs a debate loop where Claude drafts an implementation plan and Codex reviews it, iterating until Codex approves or you hit the round budget. Run it in Claude Code in your terminal, not in the Desktop app or the web app.
Requirements
codexCLI installed and onPATH.- an existing plan or a prompt to generate one.
Command
/code:plan-with-codex [--max-rounds N] [--plan-file PATH] [--codex-model MODEL] "<prompt>"Defaults:
--max-rounds 15--plan-file ./debate-plan.md--codex-model gpt-5.3-codex
Session resume is supported via a {stem}.state sidecar file tracking round and Codex session ID.
When to use it
- when the plan touches unfamiliar territory and a second-model pressure test is valuable
- before launching a large loop, to avoid burning iterations on a flawed plan
After the plan is approved, hand it to /code:code --plan <file> in Claude Code to execute it.