npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

duo-agents

v1.19.17

Published

Duo: plan, review, build and review again across your Claude, Codex and Antigravity CLIs.

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-agents

You 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 agents

On 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@duo

How 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.
    1. A large model inspects the project and writes a plan with checks you can observe.
    2. A fresh large model critiques the plan and lists every required fix in one pass.
    3. The builder implements the approved plan. Final verification checks the requested behavior.
    4. 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: auto sizes each task; full always 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 core

Your features and settings live outside the core and survive updates.

Troubleshooting

  • duo doctor lists 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-codex shows the problem; add --apply to fix it.
  • The page does not load: run duo again. 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 agents

The 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.