duet-agents
Runs Claude Code, Codex CLI, Kimi CLI, and OpenCode as a leaderless mesh of agents in tmux or psmux panes that message each other directly.
At a Glance
duet-agents core installer and mesh tooling released under the MIT License; free to use, copy, modify and distribute.
Engagement
Available On
Listed Nov 2026
About duet-agents
duet-agents is an open-source tool by JonathanRosado that runs Claude Code, Codex CLI, Kimi CLI, and OpenCode side by side as a visible mesh of agents in tmux (macOS/Linux) or psmux (Windows). Any agent can message any other by name or broadcast to all, and an npx installer adds a duet command to each selected CLI.
What It Is
Duet is a multi-agent coordination layer for terminal coding agents. The CLI you start inside tmux or psmux becomes the initiator, and you choose a worker roster such as codex=6 claude=6. A session has one initiator plus one to twelve workers, with panes sharded across multiplexer windows at five per window. There is no leader or election; the agent that received the task coordinates by convention.
How Message Delivery Works
Instead of scraping pane output, a send publishes a message to a per-recipient FIFO inbox, and one delivery daemon per session injects it into the recipient's prompt. Delivery is at-least-once with message-ID deduplication. Messages end up delivered, rejected, or the recipient is flagged dead or blocked. On Windows, an envelope is archived only after a named UI proof. Kimi peers can be steered mid-turn on Windows, while POSIX steering parity is described as a later phase.
Install and Session Setup
Installation runs through npx github:JonathanRosado/duet-agents install, which sets up a Claude Code plugin and skills for Codex, Kimi, and OpenCode. Update and uninstall commands are provided. Status, doctor, and unblock scripts help diagnose a session. Model and permission overrides are set through environment variables, and new harnesses can be added through adapter scripts.
Resume and Rejoin
On macOS/Linux, Claude, Codex, and Kimi sessions can be paired and rejoined from recorded native session IDs. Windows has a resume script that verifies members from captured pane renders, but re-creating missing panes is not implemented. Rosters containing OpenCode are diagnostic only and always start fresh. A crashed or wedged session is discarded rather than repaired.
Community Discussions
Be the first to start a conversation about duet-agents
Share your experience with duet-agents, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
duet-agents core installer and mesh tooling released under the MIT License; free to use, copy, modify and distribute.
- MIT-licensed core
- npx installer for Claude Code, Codex CLI, Kimi CLI, and OpenCode
- Runs on macOS/Linux (Bash + tmux) and Windows (PowerShell + psmux)
- Underlying agent CLI subscriptions/API costs are external and not sold by this tool
Capabilities
Key Features
- Leaderless mesh of Claude Code, Codex CLI, Kimi CLI, and OpenCode agents
- Direct agent-to-agent and broadcast messaging
- Per-recipient FIFO inboxes with at-least-once delivery and deduplication
- Single delivery daemon per session
- Rosters of up to twelve workers plus the initiator
- Automatic sharding across multiplexer windows
- Native session pairing and rejoin on macOS/Linux
- Windows resume with pane-render verification
- Status, doctor, and unblock diagnostics
- Model and permission overrides via environment variables
- Extensible harness adapters
- npx installer with install, update, and uninstall
