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.
Files changed (233) hide show
  1. package/CORE_VERSION +1 -0
  2. package/INSTALL.md +73 -0
  3. package/LICENSE +21 -0
  4. package/README.md +140 -2
  5. package/VERSION +1 -0
  6. package/bin/__pycache__/duocpython-310.pyc +0 -0
  7. package/bin/__pycache__/duocpython-313.pyc +0 -0
  8. package/bin/duo +486 -0
  9. package/engine/__init__.py +1 -0
  10. package/engine/__main__.py +8 -0
  11. package/engine/__pycache__/__init__.cpython-310.pyc +0 -0
  12. package/engine/__pycache__/__init__.cpython-313.pyc +0 -0
  13. package/engine/__pycache__/__main__.cpython-310.pyc +0 -0
  14. package/engine/__pycache__/__main__.cpython-313.pyc +0 -0
  15. package/engine/__pycache__/active_runtime.cpython-313.pyc +0 -0
  16. package/engine/__pycache__/agent_failures.cpython-313.pyc +0 -0
  17. package/engine/__pycache__/agents.cpython-310.pyc +0 -0
  18. package/engine/__pycache__/agents.cpython-313.pyc +0 -0
  19. package/engine/__pycache__/antigravity_models.cpython-313.pyc +0 -0
  20. package/engine/__pycache__/bounds.cpython-310.pyc +0 -0
  21. package/engine/__pycache__/bounds.cpython-313.pyc +0 -0
  22. package/engine/__pycache__/broker.cpython-313.pyc +0 -0
  23. package/engine/__pycache__/build_workflow.cpython-313.pyc +0 -0
  24. package/engine/__pycache__/check_policy.cpython-313.pyc +0 -0
  25. package/engine/__pycache__/cli_adapters.cpython-313.pyc +0 -0
  26. package/engine/__pycache__/clone_agent.cpython-310.pyc +0 -0
  27. package/engine/__pycache__/clone_agent.cpython-313.pyc +0 -0
  28. package/engine/__pycache__/codex_config.cpython-313.pyc +0 -0
  29. package/engine/__pycache__/codex_guard.cpython-313.pyc +0 -0
  30. package/engine/__pycache__/codex_worker.cpython-313.pyc +0 -0
  31. package/engine/__pycache__/command_policy.cpython-313.pyc +0 -0
  32. package/engine/__pycache__/completion_summary.cpython-313.pyc +0 -0
  33. package/engine/__pycache__/components.cpython-310.pyc +0 -0
  34. package/engine/__pycache__/components.cpython-313.pyc +0 -0
  35. package/engine/__pycache__/config.cpython-310.pyc +0 -0
  36. package/engine/__pycache__/config.cpython-313.pyc +0 -0
  37. package/engine/__pycache__/coreapi.cpython-310.pyc +0 -0
  38. package/engine/__pycache__/coreapi.cpython-313.pyc +0 -0
  39. package/engine/__pycache__/coremgr.cpython-310.pyc +0 -0
  40. package/engine/__pycache__/coremgr.cpython-313.pyc +0 -0
  41. package/engine/__pycache__/decide.cpython-310.pyc +0 -0
  42. package/engine/__pycache__/decide.cpython-313.pyc +0 -0
  43. package/engine/__pycache__/delivery.cpython-313.pyc +0 -0
  44. package/engine/__pycache__/extensions.cpython-313.pyc +0 -0
  45. package/engine/__pycache__/features.cpython-310.pyc +0 -0
  46. package/engine/__pycache__/features.cpython-313.pyc +0 -0
  47. package/engine/__pycache__/feedback.cpython-310.pyc +0 -0
  48. package/engine/__pycache__/feedback.cpython-313.pyc +0 -0
  49. package/engine/__pycache__/goal_loop.cpython-313.pyc +0 -0
  50. package/engine/__pycache__/guard_hook.cpython-313.pyc +0 -0
  51. package/engine/__pycache__/handoff.cpython-313.pyc +0 -0
  52. package/engine/__pycache__/harness.cpython-310.pyc +0 -0
  53. package/engine/__pycache__/harness.cpython-313.pyc +0 -0
  54. package/engine/__pycache__/helper.cpython-310.pyc +0 -0
  55. package/engine/__pycache__/helper.cpython-313.pyc +0 -0
  56. package/engine/__pycache__/history.cpython-310.pyc +0 -0
  57. package/engine/__pycache__/history.cpython-313.pyc +0 -0
  58. package/engine/__pycache__/insights.cpython-310.pyc +0 -0
  59. package/engine/__pycache__/insights.cpython-313.pyc +0 -0
  60. package/engine/__pycache__/jobs.cpython-313.pyc +0 -0
  61. package/engine/__pycache__/memory.cpython-310.pyc +0 -0
  62. package/engine/__pycache__/memory.cpython-313.pyc +0 -0
  63. package/engine/__pycache__/model_catalog.cpython-313.pyc +0 -0
  64. package/engine/__pycache__/model_discovery.cpython-313.pyc +0 -0
  65. package/engine/__pycache__/model_policy.cpython-313.pyc +0 -0
  66. package/engine/__pycache__/models.cpython-310.pyc +0 -0
  67. package/engine/__pycache__/models.cpython-313.pyc +0 -0
  68. package/engine/__pycache__/network_policy.cpython-313.pyc +0 -0
  69. package/engine/__pycache__/notify.cpython-310.pyc +0 -0
  70. package/engine/__pycache__/notify.cpython-313.pyc +0 -0
  71. package/engine/__pycache__/orchestration.cpython-313.pyc +0 -0
  72. package/engine/__pycache__/pane.cpython-313.pyc +0 -0
  73. package/engine/__pycache__/panes.cpython-313.pyc +0 -0
  74. package/engine/__pycache__/personal.cpython-310.pyc +0 -0
  75. package/engine/__pycache__/personal.cpython-313.pyc +0 -0
  76. package/engine/__pycache__/phases.cpython-310.pyc +0 -0
  77. package/engine/__pycache__/phases.cpython-313.pyc +0 -0
  78. package/engine/__pycache__/plan_discussion.cpython-313.pyc +0 -0
  79. package/engine/__pycache__/project_handoff.cpython-313.pyc +0 -0
  80. package/engine/__pycache__/protocol.cpython-310.pyc +0 -0
  81. package/engine/__pycache__/protocol.cpython-313.pyc +0 -0
  82. package/engine/__pycache__/readiness.cpython-313.pyc +0 -0
  83. package/engine/__pycache__/references.cpython-310.pyc +0 -0
  84. package/engine/__pycache__/references.cpython-313.pyc +0 -0
  85. package/engine/__pycache__/relay.cpython-313.pyc +0 -0
  86. package/engine/__pycache__/repeat_defect.cpython-313.pyc +0 -0
  87. package/engine/__pycache__/reply_examples.cpython-313.pyc +0 -0
  88. package/engine/__pycache__/research_workflow.cpython-313.pyc +0 -0
  89. package/engine/__pycache__/review.cpython-310.pyc +0 -0
  90. package/engine/__pycache__/review.cpython-313.pyc +0 -0
  91. package/engine/__pycache__/roleflow.cpython-313.pyc +0 -0
  92. package/engine/__pycache__/routing.cpython-310.pyc +0 -0
  93. package/engine/__pycache__/routing.cpython-313.pyc +0 -0
  94. package/engine/__pycache__/rubrics.cpython-310.pyc +0 -0
  95. package/engine/__pycache__/rubrics.cpython-313.pyc +0 -0
  96. package/engine/__pycache__/run_chat.cpython-313.pyc +0 -0
  97. package/engine/__pycache__/run_pool.cpython-313.pyc +0 -0
  98. package/engine/__pycache__/sandbox.cpython-310.pyc +0 -0
  99. package/engine/__pycache__/sandbox.cpython-313.pyc +0 -0
  100. package/engine/__pycache__/security.cpython-310.pyc +0 -0
  101. package/engine/__pycache__/security.cpython-313.pyc +0 -0
  102. package/engine/__pycache__/selfdev.cpython-310.pyc +0 -0
  103. package/engine/__pycache__/selfdev.cpython-313.pyc +0 -0
  104. package/engine/__pycache__/server.cpython-310.pyc +0 -0
  105. package/engine/__pycache__/server.cpython-313.pyc +0 -0
  106. package/engine/__pycache__/session.cpython-310.pyc +0 -0
  107. package/engine/__pycache__/session.cpython-313.pyc +0 -0
  108. package/engine/__pycache__/session_index.cpython-313.pyc +0 -0
  109. package/engine/__pycache__/sessionlog.cpython-310.pyc +0 -0
  110. package/engine/__pycache__/sessionlog.cpython-313.pyc +0 -0
  111. package/engine/__pycache__/settings.cpython-310.pyc +0 -0
  112. package/engine/__pycache__/settings.cpython-313.pyc +0 -0
  113. package/engine/__pycache__/shots.cpython-310.pyc +0 -0
  114. package/engine/__pycache__/shots.cpython-313.pyc +0 -0
  115. package/engine/__pycache__/skill_inventory.cpython-313.pyc +0 -0
  116. package/engine/__pycache__/ste.cpython-310.pyc +0 -0
  117. package/engine/__pycache__/ste.cpython-313.pyc +0 -0
  118. package/engine/__pycache__/store.cpython-310.pyc +0 -0
  119. package/engine/__pycache__/store.cpython-313.pyc +0 -0
  120. package/engine/__pycache__/summary_agent.cpython-313.pyc +0 -0
  121. package/engine/__pycache__/task_context.cpython-313.pyc +0 -0
  122. package/engine/__pycache__/task_output.cpython-313.pyc +0 -0
  123. package/engine/__pycache__/tmux.cpython-310.pyc +0 -0
  124. package/engine/__pycache__/tmux.cpython-313.pyc +0 -0
  125. package/engine/__pycache__/token_ledger.cpython-313.pyc +0 -0
  126. package/engine/__pycache__/triage.cpython-313.pyc +0 -0
  127. package/engine/__pycache__/trust.cpython-310.pyc +0 -0
  128. package/engine/__pycache__/trust.cpython-313.pyc +0 -0
  129. package/engine/__pycache__/userspace.cpython-310.pyc +0 -0
  130. package/engine/__pycache__/userspace.cpython-313.pyc +0 -0
  131. package/engine/__pycache__/vshots.cpython-310.pyc +0 -0
  132. package/engine/__pycache__/vshots.cpython-313.pyc +0 -0
  133. package/engine/__pycache__/workers.cpython-313.pyc +0 -0
  134. package/engine/active_runtime.py +33 -0
  135. package/engine/agent_failures.py +134 -0
  136. package/engine/agents.py +252 -0
  137. package/engine/antigravity_models.py +43 -0
  138. package/engine/bounds.py +69 -0
  139. package/engine/broker.py +772 -0
  140. package/engine/build_workflow.py +281 -0
  141. package/engine/check_policy.py +3 -0
  142. package/engine/cli_adapters.py +164 -0
  143. package/engine/clone_agent.py +413 -0
  144. package/engine/codex_config.py +84 -0
  145. package/engine/codex_guard.py +49 -0
  146. package/engine/codex_worker.py +220 -0
  147. package/engine/command_policy.py +381 -0
  148. package/engine/completion_summary.py +228 -0
  149. package/engine/components.py +108 -0
  150. package/engine/config.py +124 -0
  151. package/engine/coreapi.py +264 -0
  152. package/engine/coremgr.py +395 -0
  153. package/engine/delivery.py +68 -0
  154. package/engine/extensions.py +128 -0
  155. package/engine/features.py +378 -0
  156. package/engine/feedback.py +156 -0
  157. package/engine/goal_loop.py +473 -0
  158. package/engine/guard_hook.py +28 -0
  159. package/engine/handoff.py +168 -0
  160. package/engine/harness.py +209 -0
  161. package/engine/helper.py +144 -0
  162. package/engine/history.py +35 -0
  163. package/engine/insights.py +102 -0
  164. package/engine/jobs.py +346 -0
  165. package/engine/memory.py +17 -0
  166. package/engine/migrations/__init__.py +1 -0
  167. package/engine/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
  168. package/engine/model_catalog.py +79 -0
  169. package/engine/model_discovery.py +261 -0
  170. package/engine/model_policy.py +40 -0
  171. package/engine/models.py +43 -0
  172. package/engine/network_policy.py +16 -0
  173. package/engine/notify.py +20 -0
  174. package/engine/orchestration.py +189 -0
  175. package/engine/pane.py +109 -0
  176. package/engine/panes.py +153 -0
  177. package/engine/personal.py +283 -0
  178. package/engine/phases.py +184 -0
  179. package/engine/project_handoff.py +96 -0
  180. package/engine/protocol.py +107 -0
  181. package/engine/readiness.py +41 -0
  182. package/engine/relay.py +34 -0
  183. package/engine/repeat_defect.py +21 -0
  184. package/engine/research_workflow.py +464 -0
  185. package/engine/review.py +80 -0
  186. package/engine/roleflow.py +144 -0
  187. package/engine/run_chat.py +134 -0
  188. package/engine/run_pool.py +147 -0
  189. package/engine/sandbox.py +174 -0
  190. package/engine/security.py +360 -0
  191. package/engine/selfdev.py +194 -0
  192. package/engine/server.py +787 -0
  193. package/engine/session.py +2555 -0
  194. package/engine/session_index.py +77 -0
  195. package/engine/sessionlog.py +119 -0
  196. package/engine/settings.py +89 -0
  197. package/engine/shots.py +51 -0
  198. package/engine/skill_inventory.py +93 -0
  199. package/engine/ste.py +81 -0
  200. package/engine/store.py +213 -0
  201. package/engine/summary_agent.py +180 -0
  202. package/engine/task_context.py +139 -0
  203. package/engine/task_output.py +346 -0
  204. package/engine/tmux.py +76 -0
  205. package/engine/token_ledger.py +57 -0
  206. package/engine/triage.py +33 -0
  207. package/engine/trust.py +140 -0
  208. package/engine/userspace.py +290 -0
  209. package/engine/vshots.py +87 -0
  210. package/engine/workers.py +77 -0
  211. package/install.sh +78 -0
  212. package/npm/cli.js +94 -0
  213. package/package.json +36 -3
  214. package/rubrics/agent-roles.json +46 -0
  215. package/rubrics/command-policy.json +3511 -0
  216. package/rubrics/security.json +131 -0
  217. package/scripts/desktop_launcher.py +25 -0
  218. package/scripts/install_core.py +37 -0
  219. package/scripts/update_desktop_launcher.py +43 -0
  220. package/skills/duo/SKILL.md +27 -0
  221. package/tests/__init__.py +29 -0
  222. package/tests/contract/__init__.py +0 -0
  223. package/tests/contract/__pycache__/__init__.cpython-310.pyc +0 -0
  224. package/tests/contract/__pycache__/__init__.cpython-313.pyc +0 -0
  225. package/tests/contract/__pycache__/test_contract.cpython-310.pyc +0 -0
  226. package/tests/contract/__pycache__/test_contract.cpython-313.pyc +0 -0
  227. package/tests/contract/test_contract.py +106 -0
  228. package/web/features.js +108 -0
  229. package/web/index.html +1753 -0
  230. package/web/notifications.js +80 -0
  231. package/web/research-evidence.js +44 -0
  232. package/web/task-map.css +38 -0
  233. 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
- # Temporary Holding Version
1
+ # Duo
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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