duo-agents 0.0.0-stage → 1.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CORE_VERSION +1 -0
- package/INSTALL.md +73 -0
- package/LICENSE +21 -0
- package/README.md +140 -2
- package/VERSION +1 -0
- package/bin/__pycache__/duocpython-310.pyc +0 -0
- package/bin/__pycache__/duocpython-313.pyc +0 -0
- package/bin/duo +486 -0
- package/engine/__init__.py +1 -0
- package/engine/__main__.py +8 -0
- package/engine/__pycache__/__init__.cpython-310.pyc +0 -0
- package/engine/__pycache__/__init__.cpython-313.pyc +0 -0
- package/engine/__pycache__/__main__.cpython-310.pyc +0 -0
- package/engine/__pycache__/__main__.cpython-313.pyc +0 -0
- package/engine/__pycache__/active_runtime.cpython-313.pyc +0 -0
- package/engine/__pycache__/agent_failures.cpython-313.pyc +0 -0
- package/engine/__pycache__/agents.cpython-310.pyc +0 -0
- package/engine/__pycache__/agents.cpython-313.pyc +0 -0
- package/engine/__pycache__/antigravity_models.cpython-313.pyc +0 -0
- package/engine/__pycache__/bounds.cpython-310.pyc +0 -0
- package/engine/__pycache__/bounds.cpython-313.pyc +0 -0
- package/engine/__pycache__/broker.cpython-313.pyc +0 -0
- package/engine/__pycache__/build_workflow.cpython-313.pyc +0 -0
- package/engine/__pycache__/check_policy.cpython-313.pyc +0 -0
- package/engine/__pycache__/cli_adapters.cpython-313.pyc +0 -0
- package/engine/__pycache__/clone_agent.cpython-310.pyc +0 -0
- package/engine/__pycache__/clone_agent.cpython-313.pyc +0 -0
- package/engine/__pycache__/codex_config.cpython-313.pyc +0 -0
- package/engine/__pycache__/codex_guard.cpython-313.pyc +0 -0
- package/engine/__pycache__/codex_worker.cpython-313.pyc +0 -0
- package/engine/__pycache__/command_policy.cpython-313.pyc +0 -0
- package/engine/__pycache__/completion_summary.cpython-313.pyc +0 -0
- package/engine/__pycache__/components.cpython-310.pyc +0 -0
- package/engine/__pycache__/components.cpython-313.pyc +0 -0
- package/engine/__pycache__/config.cpython-310.pyc +0 -0
- package/engine/__pycache__/config.cpython-313.pyc +0 -0
- package/engine/__pycache__/coreapi.cpython-310.pyc +0 -0
- package/engine/__pycache__/coreapi.cpython-313.pyc +0 -0
- package/engine/__pycache__/coremgr.cpython-310.pyc +0 -0
- package/engine/__pycache__/coremgr.cpython-313.pyc +0 -0
- package/engine/__pycache__/decide.cpython-310.pyc +0 -0
- package/engine/__pycache__/decide.cpython-313.pyc +0 -0
- package/engine/__pycache__/delivery.cpython-313.pyc +0 -0
- package/engine/__pycache__/extensions.cpython-313.pyc +0 -0
- package/engine/__pycache__/features.cpython-310.pyc +0 -0
- package/engine/__pycache__/features.cpython-313.pyc +0 -0
- package/engine/__pycache__/feedback.cpython-310.pyc +0 -0
- package/engine/__pycache__/feedback.cpython-313.pyc +0 -0
- package/engine/__pycache__/goal_loop.cpython-313.pyc +0 -0
- package/engine/__pycache__/guard_hook.cpython-313.pyc +0 -0
- package/engine/__pycache__/handoff.cpython-313.pyc +0 -0
- package/engine/__pycache__/harness.cpython-310.pyc +0 -0
- package/engine/__pycache__/harness.cpython-313.pyc +0 -0
- package/engine/__pycache__/helper.cpython-310.pyc +0 -0
- package/engine/__pycache__/helper.cpython-313.pyc +0 -0
- package/engine/__pycache__/history.cpython-310.pyc +0 -0
- package/engine/__pycache__/history.cpython-313.pyc +0 -0
- package/engine/__pycache__/insights.cpython-310.pyc +0 -0
- package/engine/__pycache__/insights.cpython-313.pyc +0 -0
- package/engine/__pycache__/jobs.cpython-313.pyc +0 -0
- package/engine/__pycache__/memory.cpython-310.pyc +0 -0
- package/engine/__pycache__/memory.cpython-313.pyc +0 -0
- package/engine/__pycache__/model_catalog.cpython-313.pyc +0 -0
- package/engine/__pycache__/model_discovery.cpython-313.pyc +0 -0
- package/engine/__pycache__/model_policy.cpython-313.pyc +0 -0
- package/engine/__pycache__/models.cpython-310.pyc +0 -0
- package/engine/__pycache__/models.cpython-313.pyc +0 -0
- package/engine/__pycache__/network_policy.cpython-313.pyc +0 -0
- package/engine/__pycache__/notify.cpython-310.pyc +0 -0
- package/engine/__pycache__/notify.cpython-313.pyc +0 -0
- package/engine/__pycache__/orchestration.cpython-313.pyc +0 -0
- package/engine/__pycache__/pane.cpython-313.pyc +0 -0
- package/engine/__pycache__/panes.cpython-313.pyc +0 -0
- package/engine/__pycache__/personal.cpython-310.pyc +0 -0
- package/engine/__pycache__/personal.cpython-313.pyc +0 -0
- package/engine/__pycache__/phases.cpython-310.pyc +0 -0
- package/engine/__pycache__/phases.cpython-313.pyc +0 -0
- package/engine/__pycache__/plan_discussion.cpython-313.pyc +0 -0
- package/engine/__pycache__/project_handoff.cpython-313.pyc +0 -0
- package/engine/__pycache__/protocol.cpython-310.pyc +0 -0
- package/engine/__pycache__/protocol.cpython-313.pyc +0 -0
- package/engine/__pycache__/readiness.cpython-313.pyc +0 -0
- package/engine/__pycache__/references.cpython-310.pyc +0 -0
- package/engine/__pycache__/references.cpython-313.pyc +0 -0
- package/engine/__pycache__/relay.cpython-313.pyc +0 -0
- package/engine/__pycache__/repeat_defect.cpython-313.pyc +0 -0
- package/engine/__pycache__/reply_examples.cpython-313.pyc +0 -0
- package/engine/__pycache__/research_workflow.cpython-313.pyc +0 -0
- package/engine/__pycache__/review.cpython-310.pyc +0 -0
- package/engine/__pycache__/review.cpython-313.pyc +0 -0
- package/engine/__pycache__/roleflow.cpython-313.pyc +0 -0
- package/engine/__pycache__/routing.cpython-310.pyc +0 -0
- package/engine/__pycache__/routing.cpython-313.pyc +0 -0
- package/engine/__pycache__/rubrics.cpython-310.pyc +0 -0
- package/engine/__pycache__/rubrics.cpython-313.pyc +0 -0
- package/engine/__pycache__/run_chat.cpython-313.pyc +0 -0
- package/engine/__pycache__/run_pool.cpython-313.pyc +0 -0
- package/engine/__pycache__/sandbox.cpython-310.pyc +0 -0
- package/engine/__pycache__/sandbox.cpython-313.pyc +0 -0
- package/engine/__pycache__/security.cpython-310.pyc +0 -0
- package/engine/__pycache__/security.cpython-313.pyc +0 -0
- package/engine/__pycache__/selfdev.cpython-310.pyc +0 -0
- package/engine/__pycache__/selfdev.cpython-313.pyc +0 -0
- package/engine/__pycache__/server.cpython-310.pyc +0 -0
- package/engine/__pycache__/server.cpython-313.pyc +0 -0
- package/engine/__pycache__/session.cpython-310.pyc +0 -0
- package/engine/__pycache__/session.cpython-313.pyc +0 -0
- package/engine/__pycache__/session_index.cpython-313.pyc +0 -0
- package/engine/__pycache__/sessionlog.cpython-310.pyc +0 -0
- package/engine/__pycache__/sessionlog.cpython-313.pyc +0 -0
- package/engine/__pycache__/settings.cpython-310.pyc +0 -0
- package/engine/__pycache__/settings.cpython-313.pyc +0 -0
- package/engine/__pycache__/shots.cpython-310.pyc +0 -0
- package/engine/__pycache__/shots.cpython-313.pyc +0 -0
- package/engine/__pycache__/skill_inventory.cpython-313.pyc +0 -0
- package/engine/__pycache__/ste.cpython-310.pyc +0 -0
- package/engine/__pycache__/ste.cpython-313.pyc +0 -0
- package/engine/__pycache__/store.cpython-310.pyc +0 -0
- package/engine/__pycache__/store.cpython-313.pyc +0 -0
- package/engine/__pycache__/summary_agent.cpython-313.pyc +0 -0
- package/engine/__pycache__/task_context.cpython-313.pyc +0 -0
- package/engine/__pycache__/task_output.cpython-313.pyc +0 -0
- package/engine/__pycache__/tmux.cpython-310.pyc +0 -0
- package/engine/__pycache__/tmux.cpython-313.pyc +0 -0
- package/engine/__pycache__/token_ledger.cpython-313.pyc +0 -0
- package/engine/__pycache__/triage.cpython-313.pyc +0 -0
- package/engine/__pycache__/trust.cpython-310.pyc +0 -0
- package/engine/__pycache__/trust.cpython-313.pyc +0 -0
- package/engine/__pycache__/userspace.cpython-310.pyc +0 -0
- package/engine/__pycache__/userspace.cpython-313.pyc +0 -0
- package/engine/__pycache__/vshots.cpython-310.pyc +0 -0
- package/engine/__pycache__/vshots.cpython-313.pyc +0 -0
- package/engine/__pycache__/workers.cpython-313.pyc +0 -0
- package/engine/active_runtime.py +33 -0
- package/engine/agent_failures.py +134 -0
- package/engine/agents.py +252 -0
- package/engine/antigravity_models.py +43 -0
- package/engine/bounds.py +69 -0
- package/engine/broker.py +772 -0
- package/engine/build_workflow.py +281 -0
- package/engine/check_policy.py +3 -0
- package/engine/cli_adapters.py +164 -0
- package/engine/clone_agent.py +413 -0
- package/engine/codex_config.py +84 -0
- package/engine/codex_guard.py +49 -0
- package/engine/codex_worker.py +220 -0
- package/engine/command_policy.py +381 -0
- package/engine/completion_summary.py +228 -0
- package/engine/components.py +108 -0
- package/engine/config.py +124 -0
- package/engine/coreapi.py +264 -0
- package/engine/coremgr.py +395 -0
- package/engine/delivery.py +68 -0
- package/engine/extensions.py +128 -0
- package/engine/features.py +378 -0
- package/engine/feedback.py +156 -0
- package/engine/goal_loop.py +473 -0
- package/engine/guard_hook.py +28 -0
- package/engine/handoff.py +168 -0
- package/engine/harness.py +209 -0
- package/engine/helper.py +144 -0
- package/engine/history.py +35 -0
- package/engine/insights.py +102 -0
- package/engine/jobs.py +346 -0
- package/engine/memory.py +17 -0
- package/engine/migrations/__init__.py +1 -0
- package/engine/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- package/engine/model_catalog.py +79 -0
- package/engine/model_discovery.py +261 -0
- package/engine/model_policy.py +40 -0
- package/engine/models.py +43 -0
- package/engine/network_policy.py +16 -0
- package/engine/notify.py +20 -0
- package/engine/orchestration.py +189 -0
- package/engine/pane.py +109 -0
- package/engine/panes.py +153 -0
- package/engine/personal.py +283 -0
- package/engine/phases.py +184 -0
- package/engine/project_handoff.py +96 -0
- package/engine/protocol.py +107 -0
- package/engine/readiness.py +41 -0
- package/engine/relay.py +34 -0
- package/engine/repeat_defect.py +21 -0
- package/engine/research_workflow.py +464 -0
- package/engine/review.py +80 -0
- package/engine/roleflow.py +144 -0
- package/engine/run_chat.py +134 -0
- package/engine/run_pool.py +147 -0
- package/engine/sandbox.py +174 -0
- package/engine/security.py +360 -0
- package/engine/selfdev.py +194 -0
- package/engine/server.py +787 -0
- package/engine/session.py +2555 -0
- package/engine/session_index.py +77 -0
- package/engine/sessionlog.py +119 -0
- package/engine/settings.py +89 -0
- package/engine/shots.py +51 -0
- package/engine/skill_inventory.py +93 -0
- package/engine/ste.py +81 -0
- package/engine/store.py +213 -0
- package/engine/summary_agent.py +180 -0
- package/engine/task_context.py +139 -0
- package/engine/task_output.py +346 -0
- package/engine/tmux.py +76 -0
- package/engine/token_ledger.py +57 -0
- package/engine/triage.py +33 -0
- package/engine/trust.py +140 -0
- package/engine/userspace.py +290 -0
- package/engine/vshots.py +87 -0
- package/engine/workers.py +77 -0
- package/install.sh +78 -0
- package/npm/cli.js +94 -0
- package/package.json +36 -3
- package/rubrics/agent-roles.json +46 -0
- package/rubrics/command-policy.json +3511 -0
- package/rubrics/security.json +131 -0
- package/scripts/desktop_launcher.py +25 -0
- package/scripts/install_core.py +37 -0
- package/scripts/update_desktop_launcher.py +43 -0
- package/skills/duo/SKILL.md +27 -0
- package/tests/__init__.py +29 -0
- package/tests/contract/__init__.py +0 -0
- package/tests/contract/__pycache__/__init__.cpython-310.pyc +0 -0
- package/tests/contract/__pycache__/__init__.cpython-313.pyc +0 -0
- package/tests/contract/__pycache__/test_contract.cpython-310.pyc +0 -0
- package/tests/contract/__pycache__/test_contract.cpython-313.pyc +0 -0
- package/tests/contract/test_contract.py +106 -0
- package/web/features.js +108 -0
- package/web/index.html +1753 -0
- package/web/notifications.js +80 -0
- package/web/research-evidence.js +44 -0
- package/web/task-map.css +38 -0
- package/web/task-map.js +273 -0
package/CORE_VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.19.5
|
package/INSTALL.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Install Duo
|
|
2
|
+
|
|
3
|
+
Duo makes your AI coding CLIs (Claude Code, Codex, Antigravity) plan, review and check each other's work
|
|
4
|
+
from one task. It runs on your computer and uses the CLIs you are already signed in to. It needs no API keys.
|
|
5
|
+
|
|
6
|
+
## What you need first
|
|
7
|
+
|
|
8
|
+
1. **At least one agent CLI, signed in.** Install Claude Code, Codex or Antigravity yourself, open it once in
|
|
9
|
+
a terminal and sign in. Duo never installs these for you.
|
|
10
|
+
2. **Node 18 or newer.** Check with `node -v`. Get it from https://nodejs.org if it is missing.
|
|
11
|
+
3. **Python 3.13 or newer.** Check with `python3 --version`.
|
|
12
|
+
- macOS: `brew install python@3.13`
|
|
13
|
+
- Ubuntu/Linux: `sudo apt install python3.13`, or
|
|
14
|
+
`curl -LsSf https://astral.sh/uv/install.sh | sh && uv python install 3.13`
|
|
15
|
+
4. **tmux 3.2 or newer.**
|
|
16
|
+
- macOS: `brew install tmux`
|
|
17
|
+
- Ubuntu/Linux: `sudo apt install tmux`
|
|
18
|
+
|
|
19
|
+
**Windows:** Duo runs inside WSL. In PowerShell run `wsl --install -d Ubuntu`, restart, open the **Ubuntu**
|
|
20
|
+
app, and do everything below inside it. Install and sign in to the agent CLIs inside Ubuntu too.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx duo-agents
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
This installs Duo into `~/Duo`, adds the `duo` command, starts it and opens http://127.0.0.1:8787 in your
|
|
29
|
+
browser. If Python or tmux is missing, it prints the exact command to run; run `npx duo-agents` again after.
|
|
30
|
+
Open a new terminal window once so the `duo` command is on your PATH.
|
|
31
|
+
|
|
32
|
+
From a source checkout instead: `git clone https://github.com/kkkarthik6/duo && cd duo && sh install.sh`.
|
|
33
|
+
|
|
34
|
+
## Use it
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
duo # open Duo
|
|
38
|
+
duo "add a dark mode toggle" # start a task
|
|
39
|
+
duo doctor # check what Duo can find
|
|
40
|
+
duo models # show the models your CLIs report
|
|
41
|
+
duo quit # stop Duo and close its agents
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Small tasks run on one agent. Bigger ones go plan, plan review, build, code review. Watch progress in the
|
|
45
|
+
browser. With two or more CLIs installed, Duo has them review each other's work.
|
|
46
|
+
|
|
47
|
+
To use Duo from inside Claude Code or Codex, add the skill and say "run this through Duo":
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx skills add kkkarthik6/duo@duo
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Heads-up
|
|
54
|
+
|
|
55
|
+
Duo's agents run in auto-approve mode: they can edit files and run commands in your project without asking.
|
|
56
|
+
Use it on projects under git and keep backups. `duo quit` stops running agents, so do not run it mid-task.
|
|
57
|
+
|
|
58
|
+
## Update
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npx duo-agents setup
|
|
62
|
+
duo core go-back # return to the previous version if something breaks
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## If something goes wrong
|
|
66
|
+
|
|
67
|
+
- `duo doctor` shows what Duo can and cannot find.
|
|
68
|
+
- A CLI shows as signed out: open it once in a normal terminal and sign in again.
|
|
69
|
+
- The page does not load: run `duo` again.
|
|
70
|
+
- Codex will not start: `duo repair-codex` shows the problem; add `--apply` to fix it.
|
|
71
|
+
- Windows: make sure you run every command inside the Ubuntu (WSL) window, not PowerShell.
|
|
72
|
+
|
|
73
|
+
Source and issues: https://github.com/kkkarthik6/duo
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Duo contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,141 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Duo
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Duo makes the AI coding CLIs you already have check each other's work.
|
|
4
|
+
|
|
5
|
+
Give it one task. A large model writes a plan, a second large model critiques the plan, a smaller model
|
|
6
|
+
builds it, and a third pass reviews the code. Each step is a fresh session, so no model grades its own
|
|
7
|
+
work. Small asks skip all of that and run on one agent, the way the CLI would on its own.
|
|
8
|
+
|
|
9
|
+
Duo works with **Claude Code**, **Codex** and **Google Antigravity**. It uses the CLIs you have installed
|
|
10
|
+
and signed in to. It never installs them and never asks for API keys.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npx duo-agents
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
You need:
|
|
19
|
+
|
|
20
|
+
| | macOS | Linux | Windows |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| Node 18+ | yes | yes | inside WSL |
|
|
23
|
+
| Python 3.13+ | `brew install python@3.13` | `sudo apt install python3.13` (or `uv python install 3.13`) | inside WSL |
|
|
24
|
+
| tmux | `brew install tmux` | `sudo apt install tmux` | inside WSL |
|
|
25
|
+
| At least one agent CLI, signed in | `claude`, `codex` or `agy` | same | inside WSL |
|
|
26
|
+
|
|
27
|
+
Windows runs Duo inside WSL (Ubuntu): `wsl --install -d Ubuntu`, open Ubuntu, then run `npx duo-agents`.
|
|
28
|
+
If something is missing, the installer says which command to run.
|
|
29
|
+
|
|
30
|
+
Step-by-step guide: [INSTALL.md](INSTALL.md).
|
|
31
|
+
|
|
32
|
+
The installer puts Duo in `~/Duo`, adds a `duo` command, starts the engine and opens
|
|
33
|
+
http://127.0.0.1:8787 in your browser. From a source checkout, run `sh install.sh` instead.
|
|
34
|
+
|
|
35
|
+
## Use
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
duo # start Duo and open it in the browser
|
|
39
|
+
duo "add a dark mode toggle to settings"
|
|
40
|
+
duo doctor # show what Duo can find and what is missing
|
|
41
|
+
duo models # show the models each CLI reports
|
|
42
|
+
duo quit # stop the engine and close all agents
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
On a Mac, `duo setup` can also build an optional desktop app (needs Xcode tools and Rust).
|
|
46
|
+
|
|
47
|
+
**From inside an agent.** Install the skill, then say "run this through Duo":
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx skills add kkkarthik6/duo@duo
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## How a task runs
|
|
54
|
+
|
|
55
|
+
Duo first sizes the task.
|
|
56
|
+
|
|
57
|
+
- **Quick path.** A short, single-part ask (about 90 words or fewer, no words like "architecture",
|
|
58
|
+
"migrate" or "refactor") goes to one agent using the CLI's default model. There is no plan or review
|
|
59
|
+
step. If it is not finished after two rounds or it stalls, Duo escalates to the full pipeline on its own.
|
|
60
|
+
- **Full pipeline.**
|
|
61
|
+
1. A large model inspects the project and writes a plan with checks you can observe.
|
|
62
|
+
2. A fresh large model critiques the plan and lists every required fix in one pass.
|
|
63
|
+
3. A smaller model builds the approved plan and records real check results.
|
|
64
|
+
4. A fresh medium model reviews the changes. Required fixes go back to the builder.
|
|
65
|
+
|
|
66
|
+
A reviewer is never a weaker tier than the author. When you have two CLIs, Duo reviews across providers,
|
|
67
|
+
which is what catches an author's blind spots. With one CLI it works, and tells you reviews share a provider.
|
|
68
|
+
|
|
69
|
+
Models are matched to roles by tier (large, medium, small) from what your CLIs report. If a model has no
|
|
70
|
+
tier, Duo uses the nearest tier, then the CLI's own default. Failures are tracked, so a model that is out of
|
|
71
|
+
quota or signed out is skipped and the work moves to another one. Saved work is kept.
|
|
72
|
+
|
|
73
|
+
Each handoff is a short brief generated from the run's state: the ask, constraints, open defects, changed
|
|
74
|
+
files and who does what next. Older turns collapse to counts, so context stays small without losing work.
|
|
75
|
+
|
|
76
|
+
Up to four runs can work at once, in different projects. Runs in the same project wait their turn.
|
|
77
|
+
The Insights panel shows time and estimated tokens for each turn.
|
|
78
|
+
|
|
79
|
+
## Safety
|
|
80
|
+
|
|
81
|
+
**By default Duo's agents run with their CLIs' automatic-approval modes, so they can edit files and run
|
|
82
|
+
commands in the project without asking you.** Use it on projects under version control and keep backups.
|
|
83
|
+
Each run works in its own project folder, but Duo is not a sandbox. Native CLI safeguards stay on, and
|
|
84
|
+
agents ask you when they are missing information. See the [approval policy](docs/duo-approval-policy.md)
|
|
85
|
+
and [command policy](docs/duo-command-policy.md).
|
|
86
|
+
|
|
87
|
+
Duo runs Codex with `exec --ephemeral`, so its runs do not appear in your Codex history.
|
|
88
|
+
See [session privacy](docs/duo-session-privacy.md).
|
|
89
|
+
|
|
90
|
+
## Settings
|
|
91
|
+
|
|
92
|
+
Duo reads `~/Duo/config.json`. Useful keys:
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{"triage": "auto", "max_rounds": 100, "max_active_runs": 4, "quick_review": false, "fast_close": true}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- `triage`: `auto` sizes each task; `full` always runs the whole pipeline.
|
|
99
|
+
- `quick_review`: add one independent review to quick tasks.
|
|
100
|
+
- `fast_close`: end approved, verified work without extra summary turns.
|
|
101
|
+
|
|
102
|
+
The app's Defaults and Features screens expose the rest. Assign a role to a specific model with
|
|
103
|
+
`role_models`; see [generic agents](docs/duo-generic-agents.md) and
|
|
104
|
+
[model discovery](docs/dynamic-model-catalog.md).
|
|
105
|
+
|
|
106
|
+
## Updating and recovery
|
|
107
|
+
|
|
108
|
+
Duo installs as sealed, versioned cores in `~/Duo/core`.
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
npx duo-agents setup # install the newest published version
|
|
112
|
+
duo update --from <folder|file.tgz> # test a new core, check your features, then switch
|
|
113
|
+
duo core go-back # return to the previous core
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Your features and settings live outside the core and survive updates.
|
|
117
|
+
|
|
118
|
+
## Troubleshooting
|
|
119
|
+
|
|
120
|
+
- `duo doctor` lists what Duo can find: Python, tmux, each agent CLI and the engine.
|
|
121
|
+
- A CLI shows as signed out: open it once in a normal terminal and sign in, then rescan in Duo.
|
|
122
|
+
- Codex will not start after a crash: `duo repair-codex` shows the problem; add `--apply` to fix it.
|
|
123
|
+
- The page does not load: run `duo` again. Quitting the app or closing the terminal that started the
|
|
124
|
+
engine stops it.
|
|
125
|
+
- tmux must be 3.2 or newer.
|
|
126
|
+
|
|
127
|
+
## Develop
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
python3.13 -m unittest discover -s tests -t . # unit tests, about 25 seconds
|
|
131
|
+
python3.13 -m unittest discover -s tests/integration -t . # real tmux with fake agents
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
The engine uses only the Python standard library. More detail: [multiple runs](docs/duo-multiple-runs.md),
|
|
135
|
+
[goal loop](docs/duo-goal-loop.md), [job monitoring](docs/duo-job-monitoring.md),
|
|
136
|
+
[delivery recovery](docs/duo-delivery-recovery.md), [UI extensions](docs/duo-ui-extensions.md),
|
|
137
|
+
[network access](docs/duo-network-access.md), [native worker setup](docs/duo-native-worker-setup.md).
|
|
138
|
+
|
|
139
|
+
## License
|
|
140
|
+
|
|
141
|
+
MIT. See [LICENSE](LICENSE).
|
package/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
r8
|
|
Binary file
|
|
Binary file
|