Let Codex and Claude Code check each other’s work
AgentDuo connects the two coding CLIs you already use. Codex writes the plan and reviews the diff; Claude Code critiques the plan and implements it. You see every handoff and make the calls that need a person.
Plan and agree
- PlanCodex
- CritiqueClaude Code
- FinalizeCodex
changes requested: back to Plan
the final plan goes to the implementer
Build and review
- ImplementClaude Code
- Verifyyour gates
- ReviewCodex
findings: back to Implement
Approved, no blocking finding, required gates pass: done. You review and commit.
- Codex
- Claude Code
- your commands (optional)
- A plan before any codeCodex writes goals, scope, steps, acceptance criteria and risks. Claude Code checks that the plan can be built before a file changes, and Codex signs off the final version.
- A second reader for every diffThe reviewer gets the real diff of your workspace between snapshots, not the implementer’s summary of it, and reports findings by severity.
- Your checks, not the agents’ wordAdd your own commands as gates (
npm test, a linter). They run after each implementation round and their results go to the reviewer. - You decide what a person should decideWhen a round limit is reached, an agent blocks, or a critical finding appears, the run stops and asks you: resume, revise with a note, or abort.
- No new rules to trustAgentDuo passes only the flags its protocol needs. What each agent may do comes from its own CLI settings and your repository’s
AGENTS.mdorCLAUDE.md. - Nothing is committed for youThe changes stay in your working tree. Review them with
git diffor the diff view, then commit them yourself.
A pipeline run has two stages. In the first, the agents agree on a plan; in the second, one builds it and the other reviews it until the review approves.
Plan and agree. Codex (the planner) writes a plan. Claude Code (the plan critic) checks it against the repository and either approves it or requests changes. Codex revises and, once the critic approves, finalizes it. If they do not agree within limits.max_planning_rounds rounds (4 by default), the run asks you.
Build and review. Claude Code (the implementer) builds the final plan. Your gates run, if you configured any. Codex (the code reviewer) reviews the diff; Claude Code fixes the findings, round after round, for up to limits.max_review_rounds rounds (5 by default).
Each agent is a real CLI process with your settings, run by AgentDuo in your workspace. Which CLI plays which role is configurable: you can make Codex implement and Claude Code review. Read how AgentDuo works.
The desktop app, the terminal command and the VS Code extension run the same engine, read the same configuration files and keep runs in the same folder, so a run stopped in one can be resumed in another.
Desktop app
A window with your projects and conversations, the three-way chat, an inspector for the plan, the diff and the checks, and Settings. Chat without opening a folder; open a project when you want to work on code.
Needs Claude Code and Codex installed and signed in. No Node installation of its own.
Terminal: duo
The chat in your terminal with a live view of both agents, plus commands for scripts and CI: duo "<task>", duo resume, duo status.
Needs Node.js 22.12 or later: npm i -g agentduo.
VS Code extension
Each conversation in an editor tab, decisions and permission prompts above the composer, and the run’s changes in VS Code’s diff editor.
Needs VS Code 1.95 or later and Node.js 22.12 or later.
Ask either agent a question, let both discuss it, then hand the task to the pipeline. This is the terminal chat; the desktop app and the extension show the same conversation.
duo
› /claude What would it take to add refresh tokens here?
… Claude Code answers, with the whole conversation in context …
› Is that plan safe for the existing sessions?
… Codex answers, with Claude's answer in its context …
› /discuss Should refresh tokens rotate on every use?
… one answers, the other reviews until they agree; Codex sums up …
› /pipeline Add refresh tokens as discussed
… Codex plans, Claude critiques, Claude implements, Codex reviews …The live view of a run (from the repository README)
● PLAN r1 Codex (planner) 32s · 33k tok
└ Codex → Claude Plan v1 "Add subtraction" · 3 steps
● PLAN_REVIEW r1 Claude (plan critic) 48s · $0.17
└ Claude → Codex approved · 2 suggestion(s)
PLAN ✓ › CRITIQUE ✓ › FINALIZE ✓ › IMPLEMENT ● r1 › VERIFY › REVIEWMessages go to the agent named under the input. /claude and /codex pick who answers, /discuss has both work out one answer, and /pipeline runs the full workflow. Learn the chat.
| You need | Why |
|---|---|
| Claude Code CLI, signed in | Claude Code is one of the two agents. AgentDuo runs your installed CLI with your account. |
| Codex CLI, signed in | Codex is the other agent, also run as your installed CLI with your account. |
| A Claude and an OpenAI plan or API access | AgentDuo includes no subscription and no API credit. Each agent’s usage counts against your own plan or key. |
| Git, for the pipeline | A pipeline run snapshots and diffs your files, so the workspace must be inside a Git repository. Chat and discussions work in any folder. |
| Node.js 22.12 or later, for the terminal and VS Code | The desktop app brings its own runtime for the engine; the npm package and the extension use your Node. |