The goal

A single coding agent plans, writes and judges its own work. AgentDuo splits those jobs between two agents from different vendors, so that the plan is checked before it is built and the diff is read by an agent that did not write it.

It does this without adding a layer of its own rules. Permissions, sandboxes and conventions stay where you already keep them: in each CLI’s configuration and in your repository’s AGENTS.md or CLAUDE.md. AgentDuo reports what the agents did, warns about unexpected changes, and leaves decisions and commits to you.

How it works

AgentDuo starts each agent as a subprocess: codex exec for Codex and claude -p for Claude Code, in the workspace folder. It passes the flags its protocol needs (streaming JSON output, the output schema for the role, the prompt on standard input) plus the arguments you configure, and reads the agent’s event stream to show tools and messages as they happen.

In a pipeline run, every role answers with JSON that must match a schema: a plan, a critique, an approval, an implementation report, a review. AgentDuo validates it, saves it under the run’s folder, and hands it to the next role. Between implementation rounds it snapshots your working tree with Git, so the reviewer sees the exact diff of that round.

In a conversation there is no schema: you talk with both agents, each sees the conversation so far, and /pipeline hands a task from the conversation to the workflow. How AgentDuo works goes through the details.

Default roles

Who does what by default
RoleDefault agentWhat it does
PlannerCodexWrites the plan: goals, scope, steps, acceptance criteria, risks. Revises it after critique and signs off the final version.
Plan criticClaude CodeChecks that the plan is feasible against the repository; approves it or lists blocking issues.
ImplementerClaude CodeBuilds the final plan, then fixes the reviewer’s findings round by round.
Code reviewerCodexReviews the diff between snapshots with the gate results, and approves or reports findings by severity.

Each role can be given to either agent with the agents keys of the configuration. In /discuss, Codex always writes the final synthesis. Roles in the pipeline.

Three interfaces, one engine

The three interfaces
InterfaceWhat it isEngine runs on
Desktop app (AgentDuo)An Electron app for macOS, Windows and Linux: projects and conversations in a sidebar, the chat, an inspector, Settings.The Node.js inside Electron; no Node installation needed
duo / agentduoThe npm package: the terminal chat with a live view, and commands for scripts and CI.Your Node.js 22.12 or later
VS Code extensionThe chat as editor tabs, with an Account & Usage view and VS Code’s diff editor.Your Node.js 22.12 or later (VS Code’s own Node is not used)

All three read the same configuration (~/.config/agentduo/config.yaml and the workspace’s .agentduo/config.yaml) and keep runs in the same runs folder, guarded by the same lock. A run started in the terminal can be resumed in the desktop app or VS Code, and the other way round.

What AgentDuo does not do

  • It does not include Claude Code, Codex, a subscription or API credit. You install both CLIs and sign in with your own accounts.
  • It does not grant permissions. Claude Code and Codex decide what they may do from their own settings; AgentDuo only relays Claude’s permission prompts to you when someone can answer them.
  • It does not commit, push or deploy. Your changes stay in the working tree.
  • It sends nothing to a server of its own. The agents talk to their providers as they always do; the website you are reading has no analytics.

Source code and license

AgentDuo is open source under the MIT license. The source of all three interfaces is in one repository: github.com/HaiTrieu247/agentduo. Report problems in its issue tracker; Build and contribute explains how to build from source and send a change.

AgentDuo is an independent project and is not affiliated with Anthropic or OpenAI. Claude Code and Codex are their products and trademarks.