duolog pairs Claude Code and Codex in one project. Roles select the agent and model; sessions exchange short messages on a file bus.
The gate checks every worker command
against the project rules. The bus in
.duolog/ carries messages, asks and results.
In our November 2026 study, a lead that gave a whole feature to the
planner on Codex cost 38-45% less
than one Opus session, with the same test results, on two tasks. See the
study.
Run one line in your project folder. It gives Claude Code a short install prompt; Claude installs duolog and asks whether to set it up for this folder.
On macOS, Linux or WSL:
claude "$(curl -fsSL https://github.com/lorem-dev/duolog/releases/latest/download/install-prompt.md)"In Windows PowerShell:
claude (irm https://github.com/lorem-dev/duolog/releases/latest/download/install-prompt.md)To install with Codex, write codex in place of claude. Then start a new
session in your project; that session is the lead. Local telemetry is on by
default; turn it off with duolog telemetry off.
To install by hand, from source or at a set version, see Getting started.
Each turn re-reads the whole context, so a long session costs more per turn. duolog makes Claude compact the lead and every Claude worker at a size set by your plan, instead of at Claude's own default, which on Opus can be the whole 1M-token context.
| Compacts at | Set by duolog for | Opus cost per turn to re-read the context* |
|---|---|---|
| 300k tokens | Pro | 0.06 USD |
| 500k tokens | Max, and Ultra while Claude reports it as Max | 0.10 USD |
| 700k tokens | Ultra | 0.14 USD |
| 1M tokens | (Claude's default on Opus) | 0.20 USD |
* An estimate at the Opus cache price of 0.20 USD per million tokens, as of
November 2026: near 1M tokens a turn costs about three times what it costs at
300k. A smaller window is no cheaper: each compaction makes the lead read the
code again, and a 150k window cost 26 to 31% more in our
compact window study. Our
hand-over study measured what
whole tasks cost. To change the size, see
workers.compact_window in
Configuration.
Getting started shows
the task format. Write a task file, such as .duolog/task.md, and send it to
a role from the lead session:
duolog delegate review_intermediate --task .duolog/task.mdduolog uses the Apache License 2.0.
- Getting started: install, set up and send a task
- Glossary: lead, worker, planner, peer and other words
- Hand-over study: what each way of handing work over cost
- Compact window study: what compacting the lead earlier or later cost
- Configuration: roles, models, defaults and limits
- Permissions: how duolog decides for a worker
- Rex: a live second session
- Budgets: cost targets and what we measured
- Telemetry: the local history and how to turn it off
- Contributing: the writing rules