duo-agents
v1.19.17
Published
Duo: plan, review, build and review again across your Claude, Codex and Antigravity CLIs.
Maintainers
Readme
Duo
Duo helps you build a working feature from one request. It coordinates the coding tools you already use: Claude Code, Codex, and Google Antigravity. Duo uses the command-line tools you have installed and signed in to.
Why use Duo?
Duo aims for a one-shot build. You describe the outcome once, and Duo gives the builder enough detail to attempt the whole feature. One request can take several agent turns. Duo carries the requirements and review findings between turns so you can focus on what the feature should do.
Built with Duo: Clementine
Clementine started with a question:
Can you build all the UI screens that would be required for a modern nutrition tracking mobile app?
The screenshots below come from the second version of the working app. Follow one breakfast entry from the daily overview to the saved diary.
| Choose breakfast | Set the serving | Check the diary | | --- | --- | --- | | | | |
Clementine saves the journal in the browser. You can reopen it, change a serving, or undo the last addition. The same journal also supports custom foods and recipes.
How Duo supports a build
- Give the builder a complete brief. For larger tasks, Duo asks the planner to inspect the project and name each required behavior. The builder gets the files, interfaces, dependencies, order of work, and checks for completion in one prompt.
- Build the whole feature before final testing. The builder can compile or start the app while editing. Duo schedules final verification after implementation so the builder can finish connected changes before testing them together.
- Keep independent work moving. If one part needs a credential, file, or decision, Duo records what it needs. Other parts whose requirements are met can proceed within the run budget.
- See why a run finished. A fresh goal checker compares the original request with saved files and check results. If a requirement remains open, Duo can assign another build pass or show what blocks progress. How Duo checks a goal
Install
npx duo-agentsYou need:
| | macOS | Linux | Windows |
|---|---|---|---|
| Node 18+ | yes | yes | inside WSL |
| Python 3.13+ | brew install [email protected] | sudo apt install python3.13 (or uv python install 3.13) | inside WSL |
| tmux | brew install tmux | sudo apt install tmux | inside WSL |
| At least one agent CLI, signed in | claude, codex or agy | same | inside WSL |
Windows runs Duo inside WSL (Ubuntu): wsl --install -d Ubuntu, open Ubuntu, then run npx duo-agents.
If something is missing, the installer says which command to run.
Step-by-step guide: INSTALL.md.
The installer puts Duo in ~/Duo, adds a duo command, starts the engine and opens
http://127.0.0.1:8787 in your browser. From a source checkout, run sh install.sh instead.
Use
duo # start Duo and open it in the browser
duo "Build a mobile nutrition journal where I can log breakfast, edit a serving, and see my daily totals."
duo doctor # show what Duo can find and what is missing
duo models # show the models each CLI reports
duo quit # stop the engine and close all agentsOn a Mac, duo setup can also build an optional desktop app (needs Xcode tools and Rust).
From inside an agent. Install the skill, then say "run this through Duo":
npx skills add kkkarthik6/duo@duoHow a task runs
Duo first sizes the task.
- Quick path. A small, direct edit can go straight to one agent. You can turn on an independent review with
quick_review. If the work stalls or needs more rounds, Duo can move it to the full pipeline. - Full pipeline.
- A large model inspects the project and writes a plan with checks you can observe.
- A fresh large model critiques the plan and lists every required fix in one pass.
- The builder implements the approved plan. Final verification checks the requested behavior.
- A fresh medium model reviews the changes. Required fixes go back to the builder.
A reviewer is never a weaker tier than the author. When you have two CLIs, Duo reviews across providers, which is what catches an author's blind spots. With one CLI it works, and tells you reviews share a provider.
Models are matched to roles by tier (large, medium, small) from what your CLIs report. If a model has no tier, Duo uses the nearest tier, then the CLI's own default. Failures are tracked, so a model that is out of quota or signed out is skipped and the work moves to another one. Saved work is kept.
Open What this run contributed in the task map to see the latest reported result for each named outcome. Expand Build review history to compare cycles and open their evidence. Quick runs show the builder's report. When a build package needs an external input, Duo can finish independent packages within the existing run budget. The task map shows which items must wait.
For a UI reference task, ask Duo to create a PNG mockup. Open Recent images on Home, or see Images at the top of the run’s task map. Select an image to open it at full size. Previews support PNG, JPEG, WebP, and GIF files up to 24 MiB each.
For a follow-up, name the saved project file, link, or product in the request. For example:
“Build me an app like this: references/reading-list.png. Find a comparable reading list,
explain what works and what you would change, and test adding a book.”
Each handoff is a short brief generated from the run's state: the ask, constraints, open defects, changed files and who does what next. Older turns collapse to counts, so context stays small without losing work.
Up to four runs can work at once, in different projects. Runs in the same project wait their turn. The Insights panel shows time and estimated tokens for each turn.
Safety
By default Duo's agents run with their CLIs' automatic-approval modes, so they can edit files and run commands in the project without asking you. Use it on projects under version control and keep backups. Each run works in its own project folder, but Duo is not a sandbox. Native CLI safeguards stay on, and agents ask you when they are missing information. See the approval policy and command policy.
Duo runs Codex with exec --ephemeral, so its runs do not appear in your Codex history.
See session privacy.
Settings
Duo reads ~/Duo/config.json. Useful keys:
{"triage": "auto", "max_rounds": 100, "max_active_runs": 4, "quick_review": false, "fast_close": true}triage:autosizes each task;fullalways runs the whole pipeline.quick_review: add one independent review to quick tasks.fast_close: end approved, verified work without extra summary turns.
The app's Defaults and Features screens expose the rest. Assign a role to a specific model with
role_models; see generic agents and
model discovery.
Updating and recovery
Duo installs as sealed, versioned cores in ~/Duo/core.
npx duo-agents setup # install the newest published version
duo update --from <folder|file.tgz> # test a new core, check your features, then switch
duo core go-back # return to the previous coreYour features and settings live outside the core and survive updates.
Troubleshooting
duo doctorlists what Duo can find: Python, tmux, each agent CLI and the engine.- A CLI shows as signed out: open it once in a normal terminal and sign in, then rescan in Duo.
- Codex will not start after a crash:
duo repair-codexshows the problem; add--applyto fix it. - The page does not load: run
duoagain. Quitting the app or closing the terminal that started the engine stops it. - tmux must be 3.2 or newer.
Develop
python3.13 -m unittest discover -s tests -t . # unit tests, about 25 seconds
python3.13 -m unittest discover -s tests/integration -t . # real tmux with fake agentsThe engine uses only the Python standard library. More detail: multiple runs, goal loop, job monitoring, delivery recovery, UI extensions, network access, native worker setup.
License
MIT. See LICENSE.
