Skip to main content

duet

A second opinion for your AI coding work.

Duet runs two coding agents in alternating turns: one reviews or plans, the other implements or challenges the result. Each keeps its own conversation, and you get a saved transcript to inspect.

Pair Claude and Codex, or use two models through one CLI. Gemini, Copilot, and OpenCode are also supported.

Watch the 80-second review workflow demo

An edited replay using a public toy fixture. Playback and source.

A real example

A supplied work audit describes a proposed fix that accidentally stopped hiding sensitive values. The other agent challenged it, and the first revised both the code and a test that had accepted the incorrect output.

Read the anonymized cases and their limits.

Quick start

You need Python 3.9+ and the CLIs for your chosen pair, installed and signed in. Only have Codex? Run two Codex models. For the Claude + Codex pair, run this from a Git repository:

pipx install duet-cli
duet --recipe review

This starts a review and fix loop with the coder in a separate Git worktree. Inspect the changes before merging; agent agreement does not prove correctness.

Already working inside an agent? Follow the plugin guide for Claude Code, Codex, or OpenCode.

Go further

One Python file. Stdlib-only runtime; YAML support is optional. MIT licensed.

Contributing: project guidance, Codex notes, and merge checks.

Metadata

Release files for duet-cli 0.2.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duet-cli 0.2.13
File Size Uploaded Provenance Actions
duet_cli-0.2.13.tar.gz 134.4 kB With provenance Details for duet_cli-0.2.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for duet-cli 0.2.13
File Interpreter ABI Platform Actions
duet_cli-0.2.13-py3-none-any.whl Python 3 none any Details for duet_cli-0.2.13-py3-none-any.whl

Total release size: 220.4 kB

Release files / duet_cli-0.2.13.tar.gz

Download URL duet_cli-0.2.13.tar.gz
Size 134.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2fde56f0f1f5966d59f6b34cac3422765bf622ec813dcd882e5c28ca0a277f8c
BLAKE2b-256 checksum
How to use checksums
d64538bc64d2725ca2dca788bd1ed0e28e0dae7eddbe4c3f95a888c21159473f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release files / duet_cli-0.2.13-py3-none-any.whl

Download URL duet_cli-0.2.13-py3-none-any.whl
Size 86.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b47ee06a7873b5fe2678c95b26bf480be9ddeffc01912a2e7a43dc41881bd06
BLAKE2b-256 checksum
How to use checksums
ce1f0a3e7bc9c4c4e6c1e400cbeaf5b47d5efba691405dc93ca195837fe379ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Security for duet-cli 0.2.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for duet_cli-0.2.13.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page