@staix/agent-hub 0.51.0 → 0.52.0

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 (299) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +1 -1
  3. package/docs/adding-an-ai-tool.md +24 -2
  4. package/docs/agent-notes/adapters.md +1 -0
  5. package/docs/agent-notes/budget.md +8 -2
  6. package/docs/agent-notes/daemon.md +13 -8
  7. package/docs/agent-notes/security-review.md +6 -5
  8. package/docs/agent-notes/tasks.md +5 -2
  9. package/docs/agent-notes/tests.md +4 -3
  10. package/docs/cooperbench.md +1 -1
  11. package/docs/design/adapters.md +4 -0
  12. package/docs/design/cli-output-inventory.md +162 -152
  13. package/docs/design/cli-output.md +4 -3
  14. package/docs/design/guidance-probes.md +1 -0
  15. package/docs/design/roadmap.md +2 -0
  16. package/docs/design/task-board.md +1 -0
  17. package/docs/dogfood.md +14 -0
  18. package/docs/events.md +4 -2
  19. package/docs/memory.md +5 -3
  20. package/docs/operations.md +210 -16
  21. package/docs/quickstart.md +12 -2
  22. package/docs/roles.md +1 -1
  23. package/docs/sdlc.md +26 -3
  24. package/docs/security.md +11 -5
  25. package/docs/specs/2026-09-19-agent-hub-design.md +43 -0
  26. package/docs/specs/2026-09-19-multi-project-design.md +4 -0
  27. package/docs/specs/2026-09-20-upgrade-recovery-design.md +17 -0
  28. package/docs/specs/mcp-endpoint.md +63 -0
  29. package/docs/verification/2026-11-30-capability-listing-shape-1808.md +45 -0
  30. package/docs/verification/2026-11-30-upgrade-keep-1807.md +174 -0
  31. package/docs/verification/2026-12-01-1811-confirmation-receipt.md +19 -0
  32. package/docs/verification/2026-12-01-1811-orca-agent-list.md +20 -0
  33. package/docs/verification/2026-12-01-1811-orca-pane-key.md +21 -0
  34. package/docs/verification/2026-12-02-1819-claude-process-after-renewal.md +54 -0
  35. package/docs/verification/2026-12-02-agy-1.5.21.md +74 -0
  36. package/docs/verification/2026-12-02-claude-implementer-2.1.334.md +44 -0
  37. package/docs/verification/2026-12-02-cli-import-graph.md +33 -0
  38. package/docs/verification/2026-12-03-0.52.0.md +150 -0
  39. package/docs/verification/2026-12-03-codex-0173-reviewer-isolation.md +53 -0
  40. package/docs/verification/2026-12-03-codex-0173-reviewer-tool-call.md +34 -0
  41. package/docs/verification/2026-12-03-jcode-1.3.0.md +25 -0
  42. package/docs/verification/agy/README.md +17 -0
  43. package/docs/verification/agy/cli-surface.ts +68 -0
  44. package/docs/verification/agy/interactive-bridge.ts +92 -0
  45. package/docs/verification/agy/interactive-session.ts +131 -0
  46. package/docs/verification/agy/launcher-nonce.ts +215 -0
  47. package/docs/verification/agy/native-hooks.ts +210 -0
  48. package/docs/verification/agy/originals/agent-hub-681/cli-surface.ts +87 -0
  49. package/docs/verification/agy/originals/agent-hub-681/native-hooks-adapted.ts +91 -0
  50. package/docs/verification/agy/originals/agent-hub-681/tui-actual.ts +200 -0
  51. package/docs/verification/agy/originals/agent-hub-684/probe.ts +107 -0
  52. package/docs/verification/agy/originals.json +25 -0
  53. package/docs/verification/agy/permission-new-functions.ts +128 -0
  54. package/docs/verification/agy/run-probe.py +108 -0
  55. package/docs/verification/agy/runtime.ts +171 -0
  56. package/docs/verification/agy/tmux-helper-control.ts +6 -0
  57. package/docs/verification/agy/tmux-session.ts +235 -0
  58. package/docs/verified.json +82 -41
  59. package/package.json +3 -3
  60. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  61. package/plugins/agent-hub/compat.json +157 -0
  62. package/plugins/agent-hub/kimi-hook.js +621 -865
  63. package/plugins/agent-hub/server.js +17423 -32962
  64. package/src/adapters/agy/definition.ts +7 -24
  65. package/src/adapters/channel-peer.ts +3 -1
  66. package/src/adapters/claude-channel.ts +38 -257
  67. package/src/adapters/claude-implementer.ts +3 -1
  68. package/src/adapters/codex-appserver.ts +77 -15
  69. package/src/adapters/compat.ts +74 -11
  70. package/src/adapters/configured-acp.ts +23 -163
  71. package/src/adapters/configured-adapter-policy.ts +160 -0
  72. package/src/adapters/configured-pull-entry.ts +53 -0
  73. package/src/adapters/configured-pull.ts +38 -0
  74. package/src/adapters/conformance/fakes/app-server.ts +9 -2
  75. package/src/adapters/declaration-catalog.ts +25 -0
  76. package/src/adapters/declaration-data.ts +342 -0
  77. package/src/adapters/declaration-resolution.ts +53 -0
  78. package/src/adapters/definitions/builtin-metadata.ts +61 -83
  79. package/src/adapters/definitions/jcode-launch.ts +13 -0
  80. package/src/adapters/definitions/native-adapter-policy.ts +390 -0
  81. package/src/adapters/definitions/native-cli-claude-launch.ts +3 -2
  82. package/src/adapters/definitions/native-cli-codex-launch.ts +2 -1
  83. package/src/adapters/definitions/native-cli-entry-jcode.ts +4 -2
  84. package/src/adapters/definitions/native-cli-entry-types.ts +9 -2
  85. package/src/adapters/definitions/native-cli-launch-common.ts +2 -2
  86. package/src/adapters/definitions/native-cli-retained.ts +1 -1
  87. package/src/adapters/definitions/native-configuration.ts +18 -0
  88. package/src/adapters/definitions/native-help.ts +24 -0
  89. package/src/adapters/definitions/native-launch-declarations.ts +34 -0
  90. package/src/adapters/definitions/native-launch-policy.ts +4 -0
  91. package/src/adapters/definitions/native-launch-settings.ts +72 -0
  92. package/src/adapters/definitions/native-light-cli.ts +18 -0
  93. package/src/adapters/definitions/native-light-preview.ts +10 -0
  94. package/src/adapters/definitions/native-wrapper-launch.ts +10 -0
  95. package/src/adapters/definitions/qwen.ts +6 -29
  96. package/src/adapters/definitions/reviewer-variants.ts +7 -8
  97. package/src/adapters/external-declarations.ts +31 -0
  98. package/src/adapters/external-modules.ts +4 -29
  99. package/src/adapters/jcode.ts +3 -12
  100. package/src/adapters/native-capabilities.ts +18 -8
  101. package/src/adapters/native-proof-ports.ts +1 -1
  102. package/src/adapters/presets.ts +136 -0
  103. package/src/adapters/qwen-dual.ts +2 -2
  104. package/src/adapters/registry-types.ts +3 -0
  105. package/src/adapters/registry.ts +20 -81
  106. package/src/adapters/reviewer-print.ts +26 -9
  107. package/src/adapters/role-eligibility.ts +2 -1
  108. package/src/cli/accounts-import.ts +72 -0
  109. package/src/cli/agents-latest-table.ts +88 -0
  110. package/src/cli/agents-latest.ts +22 -0
  111. package/src/cli/agents-output.ts +10 -0
  112. package/src/cli/agents-presets.ts +100 -0
  113. package/src/cli/agents.ts +1 -1
  114. package/src/cli/attention.ts +3 -2
  115. package/src/cli/autonomy-homes.ts +7 -2
  116. package/src/cli/budget-renew-guidance.ts +129 -0
  117. package/src/cli/claude-homes.ts +9 -5
  118. package/src/cli/command-context.ts +3 -0
  119. package/src/cli/command-table.ts +123 -0
  120. package/src/cli/commands/accounts.ts +8 -0
  121. package/src/cli/commands/agents.ts +18 -0
  122. package/src/cli/commands/answer.ts +28 -0
  123. package/src/cli/commands/ask.ts +17 -0
  124. package/src/cli/commands/autonomy.ts +83 -0
  125. package/src/cli/commands/backlog.ts +46 -0
  126. package/src/cli/commands/bench.ts +60 -0
  127. package/src/cli/commands/board.ts +48 -0
  128. package/src/cli/commands/broker.ts +9 -0
  129. package/src/cli/commands/budget.ts +96 -0
  130. package/src/cli/commands/capabilities.ts +12 -0
  131. package/src/cli/commands/check-path.ts +55 -0
  132. package/src/cli/commands/completion.ts +8 -0
  133. package/src/cli/commands/console.ts +12 -0
  134. package/src/cli/commands/daemon.ts +8 -0
  135. package/src/cli/commands/deliverables.ts +25 -0
  136. package/src/cli/commands/doctor.ts +249 -0
  137. package/src/cli/commands/down.ts +3 -0
  138. package/src/cli/commands/export.ts +15 -0
  139. package/src/cli/commands/facts.ts +15 -0
  140. package/src/cli/commands/goal.ts +22 -0
  141. package/src/cli/commands/guidance.ts +102 -0
  142. package/src/cli/commands/help.ts +17 -0
  143. package/src/cli/commands/host.ts +45 -0
  144. package/src/cli/commands/init.ts +121 -0
  145. package/src/cli/commands/instructed.ts +19 -0
  146. package/src/cli/commands/instruction-hook.ts +15 -0
  147. package/src/cli/commands/intake.ts +24 -0
  148. package/src/cli/commands/kill.ts +15 -0
  149. package/src/cli/commands/learn.ts +23 -0
  150. package/src/cli/commands/lineage.ts +30 -0
  151. package/src/cli/commands/logs.ts +21 -0
  152. package/src/cli/commands/manager.ts +15 -0
  153. package/src/cli/commands/memory.ts +21 -0
  154. package/src/cli/commands/model.ts +25 -0
  155. package/src/cli/commands/models.ts +40 -0
  156. package/src/cli/commands/native.ts +39 -0
  157. package/src/cli/commands/pause.ts +5 -0
  158. package/src/cli/commands/peer.ts +32 -0
  159. package/src/cli/commands/permission.ts +26 -0
  160. package/src/cli/commands/permit.ts +12 -0
  161. package/src/cli/commands/pet.ts +24 -0
  162. package/src/cli/commands/projects.ts +49 -0
  163. package/src/cli/commands/queue.ts +70 -0
  164. package/src/cli/commands/recovery-run.ts +13 -0
  165. package/src/cli/commands/recovery.ts +130 -0
  166. package/src/cli/commands/release.ts +23 -0
  167. package/src/cli/commands/releases.ts +9 -0
  168. package/src/cli/commands/remember.ts +6 -0
  169. package/src/cli/commands/report.ts +27 -0
  170. package/src/cli/commands/research.ts +53 -0
  171. package/src/cli/commands/reset.ts +89 -0
  172. package/src/cli/commands/restart.ts +5 -0
  173. package/src/cli/commands/results.ts +31 -0
  174. package/src/cli/commands/resume.ts +5 -0
  175. package/src/cli/commands/review.ts +24 -0
  176. package/src/cli/commands/roadmap.ts +21 -0
  177. package/src/cli/commands/role.ts +34 -0
  178. package/src/cli/commands/roles.ts +30 -0
  179. package/src/cli/commands/room.ts +14 -0
  180. package/src/cli/commands/roster.ts +48 -0
  181. package/src/cli/commands/route.ts +9 -0
  182. package/src/cli/commands/say.ts +21 -0
  183. package/src/cli/commands/schedule.ts +17 -0
  184. package/src/cli/commands/sdlc.ts +321 -0
  185. package/src/cli/commands/settings.ts +148 -0
  186. package/src/cli/commands/setup.ts +89 -0
  187. package/src/cli/commands/shared-refusals.ts +25 -0
  188. package/src/cli/commands/smoke.ts +44 -0
  189. package/src/cli/commands/source.ts +64 -0
  190. package/src/cli/commands/specs.ts +13 -0
  191. package/src/cli/commands/status.ts +28 -0
  192. package/src/cli/commands/stop.ts +17 -0
  193. package/src/cli/commands/structure.ts +60 -0
  194. package/src/cli/commands/study.ts +39 -0
  195. package/src/cli/commands/tail.ts +19 -0
  196. package/src/cli/commands/task.ts +114 -0
  197. package/src/cli/commands/title.ts +17 -0
  198. package/src/cli/commands/turns.ts +10 -0
  199. package/src/cli/commands/ui.ts +47 -0
  200. package/src/cli/commands/undo.ts +77 -0
  201. package/src/cli/commands/up.ts +39 -0
  202. package/src/cli/commands/upgrade.ts +5 -0
  203. package/src/cli/commands/usage.ts +33 -0
  204. package/src/cli/commands/version.ts +5 -0
  205. package/src/cli/commands/watch.ts +30 -0
  206. package/src/cli/commands/worktrees.ts +31 -0
  207. package/src/cli/console-state.ts +5 -138
  208. package/src/cli/console-versions.ts +1 -1
  209. package/src/cli/help.ts +37 -15
  210. package/src/cli/identity.ts +23 -4
  211. package/src/cli/launch-check.ts +1 -2
  212. package/src/cli/launch.ts +13 -82
  213. package/src/cli/light-dispatch.ts +29 -0
  214. package/src/cli/main.js +8 -1
  215. package/src/cli/main.ts +233 -2816
  216. package/src/cli/orca-probe.ts +119 -0
  217. package/src/cli/output.ts +31 -2
  218. package/src/cli/preview.ts +10 -5
  219. package/src/cli/recovery-version-preflight.ts +28 -9
  220. package/src/cli/replace-process.ts +22 -0
  221. package/src/cli/report-layout.ts +142 -0
  222. package/src/cli/roadmap-usage.ts +16 -0
  223. package/src/cli/roadmap.ts +3 -16
  224. package/src/cli/sdlc-doctor.ts +27 -0
  225. package/src/cli/sdlc-output.ts +55 -1
  226. package/src/cli/setup-homes.ts +1 -1
  227. package/src/cli/start-agents-run.ts +1 -1
  228. package/src/cli/statusline-tee.ts +25 -4
  229. package/src/cli/terminal-recovery.ts +53 -10
  230. package/src/cli/upgrade-interactive.ts +1 -0
  231. package/src/cli/upgrade-runtime.ts +11 -0
  232. package/src/cli/upgrade.ts +4 -15
  233. package/src/hub/accounts.ts +148 -0
  234. package/src/hub/addons.ts +20 -0
  235. package/src/hub/agent-drift.ts +2 -1
  236. package/src/hub/budget-projection.ts +39 -7
  237. package/src/hub/budget.ts +231 -16
  238. package/src/hub/channel-project.ts +3 -3
  239. package/src/hub/conductor-peer.ts +24 -0
  240. package/src/hub/conductor.ts +2 -21
  241. package/src/hub/config-apply.ts +24 -13
  242. package/src/hub/config-edit.ts +1 -1
  243. package/src/hub/config-tier.ts +2 -0
  244. package/src/hub/config.ts +31 -14
  245. package/src/hub/control-client.ts +48 -0
  246. package/src/hub/daemon.ts +421 -61
  247. package/src/hub/events.ts +3 -0
  248. package/src/hub/home-tag.ts +12 -0
  249. package/src/hub/host.ts +217 -0
  250. package/src/hub/hub-tools.ts +2 -1
  251. package/src/hub/instance-budget.ts +2 -2
  252. package/src/hub/instance-config.ts +15 -126
  253. package/src/hub/instances.ts +22 -6
  254. package/src/hub/instruction-receipt.ts +2 -2
  255. package/src/hub/kimi-usage.ts +38 -11
  256. package/src/hub/lifecycle.ts +86 -4
  257. package/src/hub/mcp-bridge-core.ts +98 -0
  258. package/src/hub/mcp-channel-push.ts +20 -0
  259. package/src/hub/mcp-endpoint-serve.ts +178 -0
  260. package/src/hub/mcp-endpoint.ts +226 -0
  261. package/src/hub/mcp-tool-call.ts +181 -0
  262. package/src/hub/operational-settings.ts +2 -0
  263. package/src/hub/orca-env.ts +6 -0
  264. package/src/hub/orca-state.ts +84 -0
  265. package/src/hub/peers.ts +5 -1
  266. package/src/hub/permission-mode.ts +2 -1
  267. package/src/hub/project.ts +20 -0
  268. package/src/hub/protocol-window.ts +58 -0
  269. package/src/hub/quota-origin.ts +20 -0
  270. package/src/hub/registry.ts +36 -2
  271. package/src/hub/report.ts +1 -1
  272. package/src/hub/research.ts +1 -1
  273. package/src/hub/review-brief.ts +47 -2
  274. package/src/hub/roster.ts +6 -3
  275. package/src/hub/routing.ts +9 -2
  276. package/src/hub/sdlc-check.ts +205 -0
  277. package/src/hub/sdlc-sync.ts +146 -0
  278. package/src/hub/sdlc.ts +33 -4
  279. package/src/hub/settings.ts +7 -4
  280. package/src/hub/start-agents.ts +1 -1
  281. package/src/hub/start-mode.ts +11 -4
  282. package/src/hub/structure-budget.ts +131 -0
  283. package/src/hub/structure-scan.ts +149 -0
  284. package/src/hub/tasks-experiment.ts +455 -0
  285. package/src/hub/tasks-guidance.ts +606 -0
  286. package/src/hub/tasks-roadmap-plan.ts +419 -0
  287. package/src/hub/tasks-roadmap.ts +491 -0
  288. package/src/hub/tasks-study.ts +661 -0
  289. package/src/hub/tasks-survey.ts +192 -0
  290. package/src/hub/tasks.ts +319 -2548
  291. package/src/hub/terminal-open.ts +5 -3
  292. package/src/hub/tooling.ts +3 -19
  293. package/src/hub/usage-rollup.ts +9 -3
  294. package/src/local/tools.ts +5 -0
  295. package/src/ui/index.html +1 -1
  296. package/src/ui/needs.ts +17 -5
  297. package/src/ui/peer-palette.ts +2 -4
  298. package/templates/presets/agents.json +60 -0
  299. package/templates/presets/confirmation-matrix.json +8 -8
@@ -5,135 +5,166 @@ Snapshot recorded 2026-11-25 for #1654 T1.
5
5
  Generated from the built-in dispatch table, adapter entries and HELP. Width is measured in terminal cells on color-off help at 80 columns.
6
6
  Overview summaries are recorded verbatim for the T2 grammar pass. Help-only entries include global forms.
7
7
 
8
- Overview width: 79 cells. Dispatch entries: 91. Help command words: 93.
8
+ Overview width: 79 cells. Dispatch entries: 94. Help command words: 96.
9
9
 
10
10
  | Command | Dispatch | Help width | Overview summary (cells) | Example | Flags | Observed help deviations |
11
11
  | --- | --- | ---: | --- | --- | --- | --- |
12
12
  | --live-test | Help only | 76 | Projects / user-authorized console delegation (person only) (48) | Yes | --project | Repeated forms |
13
13
  | --project | Help only | 44 | Projects / run a command against another project (37) | Yes | - | Repeated forms |
14
- | --version | main.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
15
- | agents | main.ts | 79 | Daemon and runtime / show each agent CLI's version and verdict (41) | Yes | --json --revoke | Repeated forms |
14
+ | --version | commands/version.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
15
+ | accounts | commands/accounts.ts | 73 | Daemon and runtime / print an accounts block from Orca (person only) (47) | No | --from | Repeated forms |
16
+ | agents | commands/agents.ts | 80 | Daemon and runtime / show each agent CLI's version and verdict (41) | Yes | --json --latest --revoke --as --pull | Repeated forms |
16
17
  | agy | adapter | 80 | Agents / start optional Antigravity CLI in this terminal (47) | Yes | --print-command --dry-run | Repeated forms |
17
- | answer | main.ts | 80 | Messages and approvals / list and answer open hub_ask questions (38) | Yes | --other --instructed --json --color | Repeated forms |
18
- | ask | main.ts | 79 | Tasks and review / answer from the board, memory and the log (41) | Yes | --remember | Repeated forms |
19
- | autonomy | main.ts | 80 | Messages and approvals / apply the autonomy preset (25) | Yes | --all-projects --yes --json | Repeated forms |
20
- | backlog | main.ts | 80 | Daemon and runtime / return accepted untouched work to the backlog (45) | Yes | --reserved --unreserve --json --color --full | Repeated forms |
21
- | bench | main.ts | 80 | History and reports / run a benchmark suite against attached peers (44) | Yes | --arm --repeat --tasks --addon --memory --json --suite --mixed --format | Repeated forms |
22
- | board | main.ts | 80 | Tasks and review / show the task board, import open issues (39) | Yes | --label --milestone --repo --ready --columns --release --release-id --handoffs --json --full --color | Repeated forms |
23
- | broker | main.ts | 80 | Tasks and review / run the ciphertext relay for rooms (34) | Yes | --hostname --port --public-url --owner --state-dir --yes | Repeated forms |
24
- | budget | main.ts | 80 | Budget / quota windows per peer and why one is paused (44) | Yes | --json --full --color --resets-in --window --reason | Repeated forms |
25
- | capabilities | main.ts | 80 | Tasks and review / list the skills each attached peer offers (41) | Yes | --json --color | Repeated forms |
26
- | check-path | main.ts | 76 | History and reports / other owners' open tasks that claim a file (42) | Yes | --peer --hook | Repeated forms |
18
+ | answer | commands/answer.ts | 80 | Messages and approvals / list and answer open hub_ask questions (38) | Yes | --other --instructed --json --color | Repeated forms |
19
+ | ask | commands/ask.ts | 79 | Tasks and review / answer from the board, memory and the log (41) | Yes | --remember | Repeated forms |
20
+ | autonomy | commands/autonomy.ts | 80 | Messages and approvals / apply the autonomy preset (25) | Yes | --all-projects --yes --json | Repeated forms |
21
+ | backlog | commands/backlog.ts | 80 | Daemon and runtime / return accepted untouched work to the backlog (45) | Yes | --reserved --unreserve --json --color --full | Repeated forms |
22
+ | bench | commands/bench.ts | 80 | History and reports / run a benchmark suite against attached peers (44) | Yes | --arm --repeat --tasks --addon --memory --json --suite --mixed --format | Repeated forms |
23
+ | board | commands/board.ts | 80 | Tasks and review / show the task board, import open issues (39) | Yes | --label --milestone --repo --ready --columns --release --release-id --handoffs --json --full --color | Repeated forms |
24
+ | broker | commands/broker.ts | 80 | Tasks and review / run the ciphertext relay for rooms (34) | Yes | --hostname --port --public-url --owner --state-dir --yes | Repeated forms |
25
+ | budget | commands/budget.ts | 80 | Budget / quota windows per peer and why one is paused (44) | Yes | --json --full --color --reset --switched --resets-in --window --reason | Repeated forms |
26
+ | capabilities | commands/capabilities.ts | 80 | Tasks and review / list the skills each attached peer offers (41) | Yes | --json --color | Repeated forms |
27
+ | check-path | commands/check-path.ts | 76 | History and reports / other owners' open tasks that claim a file (42) | Yes | --peer --hook | Repeated forms |
27
28
  | claude | adapter | 73 | Agents / launch Claude Code with the hub channel (39) | Yes | --print-command --unattended --as | Repeated forms |
28
29
  | codex | adapter | 73 | Agents / start the Codex adapter and attach the TUI (42) | Yes | --print-command --unattended --as | Repeated forms |
29
- | completion | main.ts | 78 | Projects / print a shell completion script (31) | Yes | - | Repeated forms |
30
- | console | main.ts | 79 | Daemon and runtime / open the human console (22) | Yes | --panels --color --no-pet | Repeated forms |
31
- | daemon | main.ts | 74 | Daemon and runtime / internal: the detached hub process (34) | No | --unattended | Internal, Repeated forms |
32
- | deliverables | main.ts | 80 | Tasks and review / what each task delivered and a reviewer approved (48) | Yes | --task --approved --check --json --color | Repeated forms |
33
- | doctor | main.ts | 80 | Daemon and runtime / check tools, daemon, plugin, models and memory (46) | Yes | --json --full --ascii --color --stale-anchors --orphans --kill | Repeated forms |
34
- | down | main.ts | 73 | Daemon and runtime / stop this project's hub (same as kill) (38) | Yes | - | Repeated forms |
35
- | export | main.ts | 75 | History and reports / events as JSON lines (20) | Yes | --since | Repeated forms |
36
- | facts | main.ts | 79 | Hooks / Claude hook for turn-free facts (31) | No | --hook | Internal, Repeated forms |
37
- | goal | main.ts | 80 | History and reports / long-term tasks and who holds them (34) | Yes | --all --json --milestone --depends --shared --force | Repeated forms |
38
- | guidance | main.ts | 80 | History and reports / guidance declarations and the probe lifecycle (45) | Yes | --file --json --id --revision --variant --task --task-created --cursor | Repeated forms |
39
- | help | main.ts | 57 | Projects / this overview, or one command's usage (37) | Yes | --ascii | Repeated forms |
40
- | init | main.ts | 80 | Projects / write .agenthub/config.json and the AGENTS.md block (51) | Yes | --profile --agents --sdlc --required-checks --coordination --memory --no-memory --research --no-research --snapshots --no-snapshots --pi --no-pi --specs --no-specs --spec-review --conductor --planner --reviewer --track-config --no-track-config --no-jcode-home --autonomy --shadow --release-guard --yes --dry-run --json | Repeated forms |
41
- | instructed | main.ts | 78 | Projects / run a confirmed exact or intent instruction (43) | Yes | - | Repeated forms |
42
- | instruction-hook | main.ts | 76 | Projects / internal Claude prompt and Stop hook (36) | No | - | Repeated forms |
43
- | intake | main.ts | 80 | Tasks and review / turn a plain request into a draft backlog card (46) | Yes | --source --json --color | Repeated forms |
30
+ | completion | commands/completion.ts | 78 | Projects / print a shell completion script (31) | Yes | - | Repeated forms |
31
+ | console | commands/console.ts | 79 | Daemon and runtime / open the human console (22) | Yes | --panels --color --no-pet | Repeated forms |
32
+ | daemon | commands/daemon.ts | 74 | Daemon and runtime / internal: the detached hub process (34) | No | --unattended | Internal, Repeated forms |
33
+ | deliverables | commands/deliverables.ts | 80 | Tasks and review / what each task delivered and a reviewer approved (48) | Yes | --task --approved --check --json --color | Repeated forms |
34
+ | doctor | commands/doctor.ts | 80 | Daemon and runtime / check tools, daemon, plugin, models and memory (46) | Yes | --json --full --ascii --color --stale-anchors --orphans --kill | Repeated forms |
35
+ | down | commands/down.ts | 73 | Daemon and runtime / stop this project's hub (same as kill) (38) | Yes | - | Repeated forms |
36
+ | export | commands/export.ts | 75 | History and reports / events as JSON lines (20) | Yes | --since | Repeated forms |
37
+ | facts | commands/facts.ts | 79 | Hooks / Claude hook for turn-free facts (31) | No | --hook | Internal, Repeated forms |
38
+ | goal | commands/goal.ts | 80 | History and reports / long-term tasks and who holds them (34) | Yes | --all --json --milestone --depends --shared --force | Repeated forms |
39
+ | guidance | commands/guidance.ts | 80 | History and reports / guidance declarations and the probe lifecycle (45) | Yes | --file --json --id --revision --variant --task --task-created --cursor | Repeated forms |
40
+ | help | commands/help.ts | 57 | Projects / this overview, or one command's usage (37) | Yes | --ascii | Repeated forms |
41
+ | host | commands/host.ts | 77 | Daemon and runtime / internal: the shared per-runtime host process (45) | No | --runtime --add-current --unattended | Internal, Repeated forms |
42
+ | init | commands/init.ts | 80 | Projects / write .agenthub/config.json and the AGENTS.md block (51) | Yes | --profile --agents --sdlc --required-checks --coordination --memory --no-memory --research --no-research --snapshots --no-snapshots --pi --no-pi --specs --no-specs --spec-review --conductor --planner --reviewer --track-config --no-track-config --no-jcode-home --autonomy --shadow --release-guard --yes --dry-run --json | Repeated forms |
43
+ | instructed | commands/instructed.ts | 78 | Projects / run a confirmed exact or intent instruction (43) | Yes | - | Repeated forms |
44
+ | instruction-hook | commands/instruction-hook.ts | 76 | Projects / internal Claude prompt and Stop hook (36) | No | - | Repeated forms |
45
+ | intake | commands/intake.ts | 80 | Tasks and review / turn a plain request into a draft backlog card (46) | Yes | --source --json --color | Repeated forms |
44
46
  | jcode | adapter | 80 | Agents / start optional Jcode, in its TUI or headless (44) | Yes | --mode --model --provider-profile --session-id --print-command --as | Repeated forms |
45
- | kill | main.ts | 25 | Daemon and runtime / stop this project's hub (23) | Yes | - | Repeated forms |
47
+ | kill | commands/kill.ts | 25 | Daemon and runtime / stop this project's hub (23) | Yes | - | Repeated forms |
46
48
  | kimi | adapter | 77 | Agents / start Kimi in its own TUI, or headless over ACP (47) | Yes | --print-command --mode --model --as | Repeated forms |
47
- | learn | main.ts | 79 | Tasks and review / review recurring-criterion candidates (37) | Yes | --all --accepted --json --color | Repeated forms |
48
- | lineage | main.ts | 78 | History and reports / execution metadata and evidence strengths (41) | Yes | --task --attempt --root --task-scope --task-created --cursor --nodes --edges --bytes --json --revision --ref --from | Repeated forms, Bracket wraps |
49
+ | learn | commands/learn.ts | 79 | Tasks and review / review recurring-criterion candidates (37) | Yes | --all --accepted --json --color | Repeated forms |
50
+ | lineage | commands/lineage.ts | 78 | History and reports / execution metadata and evidence strengths (41) | Yes | --task --attempt --root --task-scope --task-created --cursor --nodes --edges --bytes --json --revision --ref --from | Repeated forms, Bracket wraps |
49
51
  | local | adapter | 73 | Agents / start the hub-native worker on self-hosted models (49) | Yes | --route --model --as | Repeated forms |
50
- | logs | main.ts | 77 | Daemon and runtime / show the hub log (16) | Yes | -f | Repeated forms |
51
- | manager | main.ts | 67 | Dashboard / internal: the dashboard manager process (39) | No | - | Internal, Repeated forms |
52
- | memory | main.ts | 80 | History and reports / the hub's own project memory (28) | Yes | --tier --kind --peer --machine --since --limit --json --ungrouped --hops --history --as-of --remote --label --db --restart --apply --days | Repeated forms |
53
- | model | main.ts | 80 | Messages and approvals / select or inspect runtime models (32) | Yes | --json | Repeated forms |
54
- | models | main.ts | 76 | Agents / inspect local model state (25) | Yes | --json --color | Repeated forms |
55
- | pause | main.ts | 54 | Messages and approvals / hold or release a peer's deliveries (35) | Yes | - | Repeated forms |
56
- | peer | main.ts | 77 | Agents / hand the attached session to a standby (38) | Yes | --json --color | Repeated forms |
57
- | permission | main.ts | 75 | Messages and approvals / inspect or set a peer's permission mode (39) | Yes | --yes | Repeated forms |
58
- | permit | main.ts | 60 | Messages and approvals / answer a permission request (27) | Yes | - | Repeated forms |
59
- | pet | main.ts | 78 | Daemon and runtime / read attention without connecting (33) | Yes | --short --window --close --palette | Repeated forms |
52
+ | logs | commands/logs.ts | 77 | Daemon and runtime / show the hub log (16) | Yes | -f | Repeated forms |
53
+ | manager | commands/manager.ts | 67 | Dashboard / internal: the dashboard manager process (39) | No | - | Internal, Repeated forms |
54
+ | memory | commands/memory.ts | 80 | History and reports / the hub's own project memory (28) | Yes | --tier --kind --peer --machine --since --limit --json --ungrouped --hops --history --as-of --remote --label --db --restart --apply --days | Repeated forms |
55
+ | model | commands/model.ts | 80 | Messages and approvals / select or inspect runtime models (32) | Yes | --json | Repeated forms |
56
+ | models | commands/models.ts | 76 | Agents / inspect local model state (25) | Yes | --json --color | Repeated forms |
57
+ | pause | commands/pause.ts | 54 | Messages and approvals / hold or release a peer's deliveries (35) | Yes | - | Repeated forms |
58
+ | peer | commands/peer.ts | 77 | Agents / hand the attached session to a standby (38) | Yes | --json --color | Repeated forms |
59
+ | permission | commands/permission.ts | 75 | Messages and approvals / inspect or set a peer's permission mode (39) | Yes | --yes | Repeated forms |
60
+ | permit | commands/permit.ts | 60 | Messages and approvals / answer a permission request (27) | Yes | - | Repeated forms |
61
+ | pet | commands/pet.ts | 78 | Daemon and runtime / read attention without connecting (33) | Yes | --short --window --close --palette | Repeated forms |
60
62
  | pi | adapter | 80 | Agents / start Pi in a terminal, or headless (35) | Yes | --print-command --mode --headless --backend --model --session-id --session-file --replace-session --as | Repeated forms |
61
- | projects | main.ts | 74 | Projects / list registered projects and live status (40) | Yes | --json --full --color --state --confirm | Repeated forms |
62
- | queue | main.ts | 80 | Messages and approvals / inspect and resolve durable deliveries (38) | Yes | --peer --all --json --full --color --action --reason --revision --state --yes | Repeated forms |
63
+ | projects | commands/projects.ts | 74 | Projects / list registered projects and live status (40) | Yes | --json --full --color --state --confirm | Repeated forms |
64
+ | queue | commands/queue.ts | 80 | Messages and approvals / inspect and resolve durable deliveries (38) | Yes | --peer --all --json --full --color --action --reason --revision --state --yes | Repeated forms |
63
65
  | qwen | adapter | 80 | Agents / start optional Qwen Code, headless or in its TUI (48) | Yes | --mode --model --session-id --print-command --as | Repeated forms |
64
- | recovery | main.ts | 80 | Daemon and runtime / inspect, resume or abort a held operation (41) | Yes | --json --color --fresh-session --reason --stop-and-archive | Repeated forms |
65
- | recovery-run | main.ts | 71 | Daemon and runtime / internal: a detached recovery runner (36) | No | - | Internal, Repeated forms |
66
- | release | main.ts | 80 | Tasks and review / plan and ship releases (22) | Yes | --json --color | Repeated forms |
67
- | releases | main.ts | 77 | Tasks and review / list and prune hub runtime copies (33) | Yes | --json --kind --older-than --apply | Repeated forms |
68
- | remember | main.ts | 44 | Tasks and review / save a note to shared memory (28) | Yes | - | Repeated forms |
69
- | report | main.ts | 79 | History and reports / turns, tokens, messages and task events (39) | Yes | --since --by --json --color --dogfood | Repeated forms |
70
- | research | main.ts | 80 | History and reports / success and rework rates per approved task (42) | Yes | --since --all --json --format --dataset | Repeated forms |
71
- | reset | main.ts | 78 | Daemon and runtime / discard queued deliveries and clear holds (41) | Yes | --all --yes | Repeated forms |
72
- | restart | main.ts | 80 | Daemon and runtime / recover this project's runtime (30) | Yes | --dry-run --yes --json --verbose --color | Repeated forms |
73
- | results | main.ts | 80 | Messages and approvals / list what your runs left behind (31) | Yes | --unread --read --read-all --unread-last --json --color | Repeated forms |
74
- | resume | main.ts | 54 | Messages and approvals / hold or release a peer's deliveries (35) | Yes | - | Repeated forms |
75
- | review | main.ts | 78 | Tasks and review / give a review verdict on a task (31) | Yes | --unmet --head --findings --security-pass | Repeated forms |
76
- | roadmap | main.ts | 80 | Tasks and review / milestones and their computed progress (38) | Yes | --json --title --outcome --horizon --order --target --parent --revision --repo --list --accept --publish --apply --confirm --write --issue | Repeated forms |
77
- | role | main.ts | 78 | Agents / read catalog guidance for a role (32) | Yes | --group | Repeated forms |
78
- | roles | main.ts | 78 | Messages and approvals / each peer's flow roles, planner and reviewers (45) | Yes | --json --color | Repeated forms |
79
- | room | main.ts | 80 | Tasks and review / encrypted rooms between hubs (person only) (42) | Yes | --broker --label --accept --name --roster --confirm --frame --action --json | Repeated forms |
80
- | roster | main.ts | 80 | Messages and approvals / every known peer and its participation (38) | Yes | --json --color --yes --now | Repeated forms |
81
- | route | main.ts | 74 | Tasks and review / why a task went where it did (28) | Yes | --class | Repeated forms |
82
- | say | main.ts | 79 | Messages and approvals / send a message as the console user (34) | Yes | - | Repeated forms |
83
- | schedule | main.ts | 80 | Tasks and review / list and run machine-local schedules (36) | Yes | --json --color | Repeated forms |
84
- | sdlc | main.ts | 80 | Daemon and runtime / read lifecycle gates and the next action (40) | Yes | --json --color --focus --profile --since --pr --dry-run --mode --required-checks --issue --repo --review --reviewers --ci | Repeated forms |
85
- | settings | main.ts | 80 | Messages and approvals / list, read and change settings (30) | Yes | --json --yes --preview --now --reason | Repeated forms |
86
- | setup | main.ts | 80 | Projects / install the plugin and hooks, choose default agents (51) | Yes | --yes --agents --research --no-research --undo | Repeated forms |
87
- | smoke | main.ts | 80 | Tasks and review / live smoke test in a temporary project (38) | Yes | --project-id --receipt --timeout-ms --json | Repeated forms |
88
- | source | main.ts | 79 | Tasks and review / register inputs as content-hashed sources (41) | Yes | --json --color | Repeated forms |
89
- | specs | main.ts | 80 | Projects / read design specs and check their freshness (43) | Yes | --json --require-fresh --base --yes | Repeated forms |
90
- | status | main.ts | 80 | Daemon and runtime / is the hub OK, and what to do next (34) | Yes | --json --full --verbose --ascii --color --all | Repeated forms |
91
- | stop | main.ts | 80 | Agents / stop a hub-owned headless peer (30) | Yes | - | Repeated forms |
92
- | study | main.ts | 80 | Tasks and review / research campaign contracts (27) | Yes | --reason --json --color --revision --task --after --campaign --attempt --events-after --plan --baseline --variant | Repeated forms |
93
- | tail | main.ts | 57 | Messages and approvals / live stream of messages and states (34) | Yes | - | Repeated forms |
94
- | task | main.ts | 80 | Tasks and review / put tasks on the board and move them along (42) | Yes | --class --owner --path --after --urgent --needs-network --needs-worktree --backlog --detail --list --sync --project --issue --task --duplicate-ok --key --json --color --full --role --revision --model --model-said --manifest --disposition --reason --superseded-by --created | Repeated forms |
95
- | title | main.ts | 77 | Messages and approvals / rename a Pi or local-worker session (35) | Yes | - | Repeated forms |
96
- | turns | main.ts | 74 | History and reports / recent turns and the files each changed (39) | Yes | --limit --json --color | Repeated forms |
97
- | ui | main.ts | 78 | Dashboard / open the local dashboard (24) | Yes | --no-open --json --settings --all --stop | Repeated forms |
98
- | undo | main.ts | 79 | History and reports / put back the files a turn changed (33) | Yes | --yes --context | Repeated forms |
99
- | up | main.ts | 80 | Daemon and runtime / start the daemon and this project's default agents (50) | Yes | --unattended --no-console --no-agents --wait --json | Repeated forms |
100
- | upgrade | main.ts | 79 | Daemon and runtime / review and upgrade this project (31) | Yes | --project --all-stopped --to --dry-run --yes --json --verbose --color | Repeated forms |
101
- | usage | main.ts | 79 | History and reports / tokens per group from the roll-up (33) | Yes | --since --by --json --color --peer --limit | Repeated forms |
102
- | version | main.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
103
- | watch | main.ts | 77 | Messages and approvals / watch a headless ACP peer's activity (36) | Yes | --no-thoughts --color | Repeated forms |
104
- | worktrees | main.ts | 78 | Projects / list worktrees, preview and confirm cleanup (43) | Yes | --json --confirm | Repeated forms |
66
+ | recovery | commands/recovery.ts | 80 | Daemon and runtime / inspect, resume or abort a held operation (41) | Yes | --json --color --fresh-session --reason --stop-and-archive | Repeated forms |
67
+ | recovery-run | commands/recovery-run.ts | 71 | Daemon and runtime / internal: a detached recovery runner (36) | No | - | Internal, Repeated forms |
68
+ | release | commands/release.ts | 80 | Tasks and review / plan and ship releases (22) | Yes | --json --color | Repeated forms |
69
+ | releases | commands/releases.ts | 77 | Tasks and review / list and prune hub runtime copies (33) | Yes | --json --kind --older-than --apply | Repeated forms |
70
+ | remember | commands/remember.ts | 44 | Tasks and review / save a note to shared memory (28) | Yes | - | Repeated forms |
71
+ | report | commands/report.ts | 79 | History and reports / turns, tokens, messages and task events (39) | Yes | --since --by --json --color --dogfood | Repeated forms |
72
+ | research | commands/research.ts | 80 | History and reports / success and rework rates per approved task (42) | Yes | --since --all --json --format --dataset | Repeated forms |
73
+ | reset | commands/reset.ts | 78 | Daemon and runtime / discard queued deliveries and clear holds (41) | Yes | --all --yes | Repeated forms |
74
+ | restart | commands/restart.ts | 80 | Daemon and runtime / recover this project's runtime (30) | Yes | --dry-run --yes --json --verbose --color | Repeated forms |
75
+ | results | commands/results.ts | 80 | Messages and approvals / list what your runs left behind (31) | Yes | --unread --read --read-all --unread-last --json --color | Repeated forms |
76
+ | resume | commands/resume.ts | 54 | Messages and approvals / hold or release a peer's deliveries (35) | Yes | - | Repeated forms |
77
+ | review | commands/review.ts | 78 | Tasks and review / give a review verdict on a task (31) | Yes | --unmet --head --findings --security-pass | Repeated forms |
78
+ | roadmap | commands/roadmap.ts | 80 | Tasks and review / milestones and their computed progress (38) | Yes | --json --title --outcome --horizon --order --target --parent --revision --repo --list --accept --publish --apply --confirm --write --issue | Repeated forms |
79
+ | role | commands/role.ts | 78 | Agents / read catalog guidance for a role (32) | Yes | --group | Repeated forms |
80
+ | roles | commands/roles.ts | 78 | Messages and approvals / each peer's flow roles, planner and reviewers (45) | Yes | --json --color | Repeated forms |
81
+ | room | commands/room.ts | 80 | Tasks and review / encrypted rooms between hubs (person only) (42) | Yes | --broker --label --accept --name --roster --confirm --frame --action --json | Repeated forms |
82
+ | roster | commands/roster.ts | 80 | Messages and approvals / every known peer and its participation (38) | Yes | --json --color --yes --now | Repeated forms |
83
+ | route | commands/route.ts | 74 | Tasks and review / why a task went where it did (28) | Yes | --class | Repeated forms |
84
+ | say | commands/say.ts | 79 | Messages and approvals / send a message as the console user (34) | Yes | - | Repeated forms |
85
+ | schedule | commands/schedule.ts | 80 | Tasks and review / list and run machine-local schedules (36) | Yes | --json --color | Repeated forms |
86
+ | sdlc | commands/sdlc.ts | 80 | Daemon and runtime / read lifecycle gates and the next action (40) | Yes | --all --json --color --write-roadmap --close-settled-issues --apply --confirm --focus --profile --since --pr --dry-run --mode --required-checks --issue --repo --review --reviewers --ci | Repeated forms |
87
+ | settings | commands/settings.ts | 80 | Messages and approvals / list, read and change settings (30) | Yes | --json --yes --preview --now --reason | Repeated forms |
88
+ | setup | commands/setup.ts | 80 | Projects / install the plugin and hooks, choose default agents (51) | Yes | --yes --agents --research --no-research --undo | Repeated forms |
89
+ | smoke | commands/smoke.ts | 80 | Tasks and review / live smoke test in a temporary project (38) | Yes | --project-id --receipt --timeout-ms --json | Repeated forms |
90
+ | source | commands/source.ts | 79 | Tasks and review / register inputs as content-hashed sources (41) | Yes | --json --color | Repeated forms |
91
+ | specs | commands/specs.ts | 80 | Projects / read design specs and check their freshness (43) | Yes | --json --require-fresh --base --yes | Repeated forms |
92
+ | status | commands/status.ts | 80 | Daemon and runtime / is the hub OK, and what to do next (34) | Yes | --json --full --verbose --ascii --color --all | Repeated forms |
93
+ | stop | commands/stop.ts | 80 | Agents / stop a hub-owned headless peer (30) | Yes | - | Repeated forms |
94
+ | structure | commands/structure.ts | 74 | Tasks and review / check file budgets and shared names (35) | Yes | --json --write | Repeated forms |
95
+ | study | commands/study.ts | 80 | Tasks and review / research campaign contracts (27) | Yes | --reason --json --color --revision --task --after --campaign --attempt --events-after --plan --baseline --variant | Repeated forms |
96
+ | tail | commands/tail.ts | 57 | Messages and approvals / live stream of messages and states (34) | Yes | - | Repeated forms |
97
+ | task | commands/task.ts | 80 | Tasks and review / put tasks on the board and move them along (42) | Yes | --class --owner --path --after --urgent --needs-network --needs-worktree --backlog --detail --list --sync --project --issue --task --duplicate-ok --key --json --color --full --role --revision --model --model-said --manifest --disposition --reason --superseded-by --created | Repeated forms |
98
+ | title | commands/title.ts | 77 | Messages and approvals / rename a Pi or local-worker session (35) | Yes | - | Repeated forms |
99
+ | turns | commands/turns.ts | 74 | History and reports / recent turns and the files each changed (39) | Yes | --limit --json --color | Repeated forms |
100
+ | ui | commands/ui.ts | 78 | Dashboard / open the local dashboard (24) | Yes | --no-open --json --settings --all --stop | Repeated forms |
101
+ | undo | commands/undo.ts | 79 | History and reports / put back the files a turn changed (33) | Yes | --yes --context | Repeated forms |
102
+ | up | commands/up.ts | 80 | Daemon and runtime / start the daemon and this project's default agents (50) | Yes | --unattended --no-console --no-agents --wait --json | Repeated forms |
103
+ | upgrade | commands/upgrade.ts | 79 | Daemon and runtime / review and upgrade this project (31) | Yes | --project --all-stopped --to --dry-run --yes --json --verbose --color | Repeated forms |
104
+ | usage | commands/usage.ts | 79 | History and reports / tokens per group from the roll-up (33) | Yes | --since --by --json --color --peer --limit | Repeated forms |
105
+ | version | commands/version.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
106
+ | watch | commands/watch.ts | 77 | Messages and approvals / watch a headless ACP peer's activity (36) | Yes | --no-thoughts --color | Repeated forms |
107
+ | worktrees | commands/worktrees.ts | 78 | Projects / list worktrees, preview and confirm cleanup (43) | Yes | --json --confirm | Repeated forms |
105
108
 
106
109
  ## Direct output call sites
107
110
 
108
- Counts come from each handler body in src/cli/main.ts. The adapter entries share one handler. These counts include machine and diagnostic branches.
111
+ Counts come from the dispatched command bodies. The adapter entries share one handler. These counts include machine and diagnostic branches.
109
112
  A delegated call needs its own renderer or a fixture before the human-view width can be measured.
110
113
 
111
114
  | Command | Direct output calls |
112
115
  | --- | --- |
116
+ | ui | fail (7), console.log (6) |
117
+ | setup | fail (7), console.log (9) |
118
+ | sdlc | printOutput (2), showToolText (3), fail (58), console.log (14), process.stdout.write (2), renderSdlcCosts (1), renderSdlcMetrics (1), renderSdlcMerge (1) |
119
+ | down | Delegated / no direct output call |
120
+ | doctor | fail (2), console.log (3), formatMemoryStaleAnchors (1), printOutput (2), renderOrphanCleanup (1), renderDoctor (1) |
121
+ | recovery | fail (12), console.error (3), console.log (15), renderOperation (1), renderBlocked (1), renderRecoveryStatus (1), renderSummary (1) |
122
+ | up | fail (1), console.error (2), process.stderr.write (1), console.log (2) |
123
+ | backlog | showToolText (1), console.log (5), printOutput (1), renderBacklog (1), fail (7), renderBacklogResult (5) |
124
+ | roadmap | fail (2), console.log (3), renderRoadmap (1) |
125
+ | structure | fail (4), printOutput (1) |
126
+ | study | fail (1), showToolText (6), renderStudyEvidence (2), renderSynthesisReadiness (1), renderExperiments (1), renderStudyShow (1), renderStudyList (1), renderStudyReceipt (1) |
127
+ | task | showToolText (3), fail (14), console.log (7), renderHandoffs (1), renderHandoffReceipt (1) |
128
+ | permission | fail (2), console.log (3) |
129
+ | autonomy | console.log (4), fail (1) |
130
+ | settings | printOutput (1), fail (17), process.stdout.write (1), console.log (2) |
131
+ | permit | fail (1) |
132
+ | answer | fail (3), console.log (2), printOutput (2), renderQuestions (1), renderAnswerReceipt (1) |
133
+ | results | fail (4), console.log (3), printOutput (3), renderAnswerReceipt (2), renderResults (1) |
134
+ | pet | fail (4), console.log (2), renderPet (1), process.stdout.write (1) |
135
+ | roles | fail (1), console.log (1), printOutput (1), renderRoles (1) |
136
+ | status | console.log (3), printOutput (1), renderStatus (1), renderStatusDefault (1), renderPet (1) |
137
+ | logs | console.log (3), fail (1) |
138
+ | export | fail (1), console.log (2) |
139
+ | bench | console.log (7), formatBenchReport (2), formatRuns (2), fail (5), formatCompare (1), process.stdout.write (1) |
140
+ | memory | fail (3), console.log (2), formatMemoryProfileCheck (1) |
141
+ | goal | fail (2), console.log (1) |
142
+ | research | console.log (4), fail (3), process.stdout.write (1), formatAddons (1), formatResearch (1) |
143
+ | report | fail (2), console.log (2), formatDogfood (1), printOutput (1), renderReport (1) |
144
+ | specs | Delegated / no direct output call |
145
+ | worktrees | fail (3), console.log (3), printOutput (3), renderWorktrees (1), renderTidyPreview (1), renderTidyResult (1) |
146
+ | usage | fail (5), process.stderr.write (1), console.log (1), printOutput (1), renderLimits (1), renderTotal (1), renderUsage (1) |
147
+ | instructed | fail (3), process.stdout.write (1) |
148
+ | instruction-hook | Delegated / no direct output call |
149
+ | facts | fail (1), console.log (1) |
150
+ | check-path | fail (1), console.log (2) |
151
+ | turns | console.log (1), printOutput (1), renderTurns (1) |
152
+ | undo | fail (12), printOutput (5), renderUndoPlan (1), renderLifecycleReceipt (4) |
153
+ | kill | printOutput (2), renderLifecycleReceipt (2), fail (1) |
154
+ | reset | fail (7), printOutput (3), renderLifecycleReceipt (2), renderResetPlan (1) |
155
+ | role | fail (7), console.log (3) |
156
+ | agents | Delegated / no direct output call |
157
+ | accounts | Delegated / no direct output call |
113
158
  | upgrade | Delegated / no direct output call |
114
159
  | restart | Delegated / no direct output call |
115
- | recovery | fail (12), console.error (3), console.log (15), renderOperation (1), renderBlocked (1), renderRecoveryStatus (1), renderSummary (1) |
116
160
  | recovery-run | fail (1) |
117
161
  | help | renderHelp (1), fail (1), console.log (1) |
118
- | completion | fail (1), process.stdout.write (1) |
119
- | --version | console.log (1) |
120
- | version | console.log (1) |
121
162
  | projects | fail (4), console.log (2) |
122
- | ui | fail (7), console.log (6) |
123
163
  | manager | Delegated / no direct output call |
124
- | setup | fail (7), console.log (9) |
125
164
  | init | fail (5), console.log (11), console.error (1) |
126
165
  | daemon | console.error (2) |
166
+ | host | process.stderr.write (1) |
127
167
  | console | fail (2) |
128
- | up | fail (1), console.error (2), process.stderr.write (1), console.log (2) |
129
- | claude | Delegated / no direct output call |
130
- | codex | Delegated / no direct output call |
131
- | kimi | Delegated / no direct output call |
132
- | pi | Delegated / no direct output call |
133
- | local | Delegated / no direct output call |
134
- | qwen | Delegated / no direct output call |
135
- | jcode | Delegated / no direct output call |
136
- | agy | Delegated / no direct output call |
137
168
  | guidance | fail (21), console.log (10), renderGuidanceReceipt (1), renderGuidance (1) |
138
169
  | lineage | fail (6), console.log (4), renderExecutionLineage (1) |
139
170
  | model | fail (6), console.log (1), printOutput (1), renderRuntimeModels (1) |
@@ -142,24 +173,19 @@ A delegated call needs its own renderer or a fixture before the human-view width
142
173
  | queue | fail (12), console.log (6), printOutput (3), renderQueue (1), renderQueueShow (2) |
143
174
  | watch | fail (3), console.log (1) |
144
175
  | tail | console.log (4), renderTailEvent (1) |
145
- | budget | fail (8), console.log (3), printOutput (3), renderBudgetResult (1), renderExecutionBudgetStatus (1), renderBudget (1) |
146
- | backlog | showToolText (1), console.log (5), printOutput (1), renderBacklog (1), fail (7), renderBacklogResult (5) |
147
- | roadmap | fail (2), console.log (3), renderRoadmap (1) |
176
+ | budget | console.log (4), printOutput (4), fail (8), renderBudgetResult (1), renderExecutionBudgetStatus (1), renderBudget (1) |
148
177
  | release | showToolText (1), fail (3) |
178
+ | releases | fail (1) |
149
179
  | smoke | fail (6), console.log (2) |
150
180
  | room | fail (2) |
151
- | releases | fail (1) |
152
181
  | broker | fail (1) |
153
182
  | source | console.log (2), printOutput (2), renderSourceList (1), fail (4), renderSourceAdd (1) |
154
183
  | schedule | showToolText (3), renderScheduleList (1), fail (1), renderScheduleRun (1), renderScheduleChange (1) |
155
- | study | fail (2), showToolText (6), renderStudyEvidence (2), renderSynthesisReadiness (1), renderExperiments (1), renderStudyShow (1), renderStudyList (1), renderStudyReceipt (1) |
156
184
  | capabilities | fail (1), showToolText (1), renderCapabilities (1) |
157
185
  | learn | fail (2), showToolText (2), renderLearnList (1), renderLearnChange (1) |
158
186
  | intake | fail (3), showToolText (2), renderIntakeChange (1), renderIntake (1) |
159
187
  | deliverables | fail (2), console.log (5) |
160
188
  | board | fail (8), console.log (3), showToolText (1), renderHandoffs (1), printOutput (2), renderBoardColumns (1), renderBoard (1) |
161
- | sdlc | printOutput (2), showToolText (3), fail (51), console.log (12), process.stdout.write (2), renderSdlcCosts (1), renderSdlcMetrics (1), renderSdlcMerge (1) |
162
- | task | showToolText (3), fail (15), console.log (7), renderHandoffs (1), renderHandoffReceipt (1) |
163
189
  | review | fail (5), console.log (2) |
164
190
  | remember | console.log (1) |
165
191
  | ask | fail (2), printOutput (1), renderAskAnswer (1) |
@@ -169,38 +195,18 @@ A delegated call needs its own renderer or a fixture before the human-view width
169
195
  | stop | fail (2), console.log (1) |
170
196
  | peer | fail (7), console.log (2) |
171
197
  | title | fail (3), console.log (2) |
172
- | permission | fail (3), console.log (3) |
173
198
  | roster | fail (5), console.log (3), printOutput (4), renderRoster (1) |
174
- | autonomy | console.log (4), fail (1) |
175
- | settings | printOutput (1), fail (18), process.stdout.write (1), console.log (2) |
176
- | permit | fail (1) |
177
- | answer | fail (3), console.log (2), printOutput (2), renderQuestions (1), renderAnswerReceipt (1) |
178
- | results | fail (4), console.log (3), printOutput (3), renderAnswerReceipt (2), renderResults (1) |
179
- | pet | fail (4), console.log (2), renderPet (1), process.stdout.write (1) |
180
- | roles | fail (1), console.log (1), printOutput (1), renderRoles (1) |
181
- | status | console.log (3), printOutput (1), renderStatus (1), renderStatusDefault (1), renderPet (1) |
182
- | logs | console.log (3), fail (1) |
183
- | export | fail (1), console.log (2) |
184
- | bench | console.log (7), formatBenchReport (2), formatRuns (2), fail (6), formatCompare (1), process.stdout.write (1) |
185
- | memory | fail (3), console.log (2), formatMemoryProfileCheck (1) |
186
- | goal | fail (2), console.log (1) |
187
- | research | console.log (4), fail (4), process.stdout.write (1), formatAddons (1), formatResearch (1) |
188
- | report | fail (2), console.log (2), formatDogfood (1), printOutput (1), renderReport (1) |
189
- | specs | Delegated / no direct output call |
190
- | worktrees | fail (3), console.log (3), printOutput (3), renderWorktrees (1), renderTidyPreview (1), renderTidyResult (1) |
191
- | usage | fail (6), process.stderr.write (1), console.log (1), printOutput (1), renderLimits (1), renderTotal (1), renderUsage (1) |
192
- | instructed | fail (3), process.stdout.write (1) |
193
- | instruction-hook | Delegated / no direct output call |
194
- | facts | fail (1), console.log (1) |
195
- | check-path | fail (1), console.log (2) |
196
- | turns | console.log (1), printOutput (1), renderTurns (1) |
197
- | undo | fail (12), printOutput (5), renderUndoPlan (1), renderLifecycleReceipt (4) |
198
- | kill | printOutput (2), renderLifecycleReceipt (2), fail (1) |
199
- | down | Delegated / no direct output call |
200
- | reset | fail (7), printOutput (3), renderLifecycleReceipt (2), renderResetPlan (1) |
201
- | role | fail (7), console.log (3) |
202
- | agents | Delegated / no direct output call |
203
- | doctor | fail (2), console.log (3), formatMemoryStaleAnchors (1), printOutput (2), renderOrphanCleanup (1), renderDoctor (1) |
199
+ | completion | fail (1), process.stdout.write (1) |
200
+ | --version | console.log (1) |
201
+ | version | console.log (1) |
202
+ | claude | Delegated / no direct output call |
203
+ | codex | Delegated / no direct output call |
204
+ | kimi | Delegated / no direct output call |
205
+ | pi | Delegated / no direct output call |
206
+ | local | Delegated / no direct output call |
207
+ | qwen | Delegated / no direct output call |
208
+ | jcode | Delegated / no direct output call |
209
+ | agy | Delegated / no direct output call |
204
210
 
205
211
  ## Inline literal output
206
212
 
@@ -209,20 +215,20 @@ Interpolated and daemon-supplied strings require runtime fixtures. They are coun
209
215
 
210
216
  | Command | Text source | Stream | Literal width |
211
217
  | --- | --- | --- | ---: |
212
- | recovery | src/cli/main.ts:1072 | stdout | 29 |
213
- | recovery | src/cli/main.ts:1105 | stdout | 60 |
214
- | projects | src/cli/main.ts:1199 | stdout | 45 |
215
- | ui | src/cli/main.ts:1223 | stdout | 57 |
216
- | ui | src/cli/main.ts:1246 | stdout | 76 |
217
- | models | src/cli/main.ts:1645 | stdout | 11 |
218
- | say | src/cli/main.ts:1669 | stdout | 46 |
219
- | roadmap | src/cli/main.ts:1873 | stdout | 46 |
220
- | deliverables | src/cli/main.ts:2117 | stdout | 70 |
221
- | roster | src/cli/main.ts:2668 | stdout | 19 |
222
- | roster | src/cli/main.ts:2675 | stdout | 19 |
223
- | autonomy | src/cli/main.ts:2726 | stdout | 75 |
224
- | bench | src/cli/main.ts:3033 | stdout | 107 |
225
- | usage | src/cli/main.ts:3217 | stderr | 121 |
218
+ | ui | src/cli/commands/ui.ts:23 | stdout | 57 |
219
+ | ui | src/cli/commands/ui.ts:46 | stdout | 76 |
220
+ | recovery | src/cli/commands/recovery.ts:62 | stdout | 29 |
221
+ | recovery | src/cli/commands/recovery.ts:95 | stdout | 60 |
222
+ | roadmap | src/cli/commands/roadmap.ts:17 | stdout | 46 |
223
+ | autonomy | src/cli/commands/autonomy.ts:66 | stdout | 75 |
224
+ | bench | src/cli/commands/bench.ts:18 | stdout | 107 |
225
+ | usage | src/cli/commands/usage.ts:30 | stderr | 121 |
226
+ | projects | src/cli/commands/projects.ts:43 | stdout | 45 |
227
+ | models | src/cli/commands/models.ts:27 | stdout | 11 |
228
+ | say | src/cli/commands/say.ts:17 | stdout | 46 |
229
+ | deliverables | src/cli/commands/deliverables.ts:24 | stdout | 70 |
230
+ | roster | src/cli/commands/roster.ts:36 | stdout | 19 |
231
+ | roster | src/cli/commands/roster.ts:43 | stdout | 19 |
226
232
 
227
233
  ## Renderer candidates
228
234
 
@@ -232,7 +238,9 @@ The separate report-by-task fixture measures 79 cells.
232
238
 
233
239
  | File and renderer | Text source | Report | Direct layout references | Fixture width or scope |
234
240
  | --- | --- | --- | --- | --- |
241
+ | src/cli/accounts-import.ts:renderBlock | CLI | - | Inline / indirect | Unmeasured |
235
242
  | src/cli/agents-output.ts:renderAgents | CLI | Direct | Report, grid | Unmeasured |
243
+ | src/cli/agents-output.ts:renderAgentsLatest | CLI | Direct | Report, grid | Unmeasured |
236
244
  | src/cli/answer-output.ts:renderAskAnswer | CLI | Direct | Report | Unmeasured |
237
245
  | src/cli/answer-output.ts:renderQuestions | CLI | Direct | Report | Unmeasured |
238
246
  | src/cli/answer-output.ts:renderAnswerReceipt | CLI | Direct | Report | Unmeasured |
@@ -288,6 +296,8 @@ The separate report-by-task fixture measures 79 cells.
288
296
  | src/cli/schedule-output.ts:renderScheduleRun | CLI | Direct | Report | 33 |
289
297
  | src/cli/schedule-output.ts:renderScheduleChange | CLI | Direct | Report | 23 |
290
298
  | src/cli/sdlc-output.ts:renderSdlcConfiguration | CLI | Direct | LayoutReport | 70 |
299
+ | src/cli/sdlc-output.ts:renderSdlcCheck | CLI | Direct | LayoutReport | Unmeasured |
300
+ | src/cli/sdlc-output.ts:renderSdlcSync | CLI | Direct | LayoutReport | Unmeasured |
291
301
  | src/cli/sdlc-output.ts:renderSdlcSurvey | CLI | Direct | LayoutReport | 29 |
292
302
  | src/cli/sdlc-output.ts:renderSdlcQueue | CLI | Direct | LayoutReport, grid | 36 |
293
303
  | src/cli/sdlc-output.ts:renderSdlcAudit | CLI | Direct | LayoutReport | 50 |
@@ -10,6 +10,7 @@ tags: [agent-hub, cli, contract]
10
10
  paths:
11
11
  - src/cli/output-standard.ts
12
12
  - src/cli/console-state.ts
13
+ - src/cli/report-layout.ts
13
14
  - src/cli/output.ts
14
15
  - test/cli-output-conformance.test.ts
15
16
  verified-against: 2db80cdd539b9c7032f2ea53e905d7a5f709a7b4
@@ -162,13 +163,13 @@ Glyphs are semantic; each pairs with one role. Code uses named constants, never
162
163
  ## Per-language notes (guidance)
163
164
 
164
165
  - Go: lipgloss v2 as dot uses it; lipgloss downsamples colors itself, so define roles with ANSI colors and add a theme only per the color policy. Disable its CLICOLOR handling only if it disagrees with the table above.
165
- - TypeScript / Bun: a small zero-dependency module (role to SGR map, marker table, color resolution, `paint`). `ahub` grows its existing `Tone` / `PALETTE` / `paint` in `src/cli/console-state.ts` instead of adding a dependency.
166
+ - TypeScript / Bun: a small zero-dependency module (role to SGR map, marker table, color resolution, `paint`). `ahub` grows its existing `Tone` / `PALETTE` / `paint` in `src/cli/report-layout.ts`, with re-exports from `src/cli/console-state.ts`, instead of adding a dependency.
166
167
  - Rust: `anstyle` + `anstream`, and clap's `styles()` set to the same roles for help.
167
168
  - Python: `rich` or `click.style`, gated by the same policy.
168
169
 
169
170
  ## Implementation in ahub
170
171
 
171
- `src/cli/output-standard.ts` re-exports the portable executable form from `@staix/cli-output`: `Role` and `ROLE_SGR` (the nine roles), `TONE_SGR` (the console tones that are not an identity palette entry), `MARKERS`, `markerCell`, `SECTION_MARKER`, `cellWidth`, `resolveColor` with `streamEnv` (the precedence table, per stream) and `asciiMarkers` (`--ascii` and the non-UTF-8 locale fallback). `src/cli/console-state.ts` keeps `Tone` and `PALETTE` (mapped onto the roles through `TONE_ROLE`; a tone with no entry names an identity color, never a status), re-exports the style names, lets a `Span` carry a `role` (it wins over its `tone`) and holds the `Report` builder for the layout grammar. `test/cli-output-conformance.test.ts` runs the five conformance checks and fails on a raw SGR literal in `src/cli/` and `src/hub/` outside `src/cli/output-standard.ts`, `src/cli/console.ts` (the full-screen console) and the identity palettes (`src/ui/peer-palette.ts`, `src/adapters/definitions/native-display.ts`).
172
+ `src/cli/output-standard.ts` re-exports the portable executable form from `@staix/cli-output`: `Role` and `ROLE_SGR` (the nine roles), `TONE_SGR` (the console tones that are not an identity palette entry), `MARKERS`, `markerCell`, `SECTION_MARKER`, `cellWidth`, `resolveColor` with `streamEnv` (the precedence table, per stream) and `asciiMarkers` (`--ascii` and the non-UTF-8 locale fallback). `src/cli/report-layout.ts` owns `Tone`, `PALETTE`, `paint` and the `Report` builder for the layout grammar. The palette maps onto the roles through `TONE_ROLE`; a tone with no entry names an identity color, never a status. A `Span` can carry a `role` (it wins over its `tone`). `src/cli/console-state.ts` re-exports these declarations. `test/cli-output-conformance.test.ts` runs the five conformance checks and fails on a raw SGR literal in `src/cli/` and `src/hub/` outside `src/cli/output-standard.ts`, `src/cli/console.ts` (the full-screen console) and the identity palettes (`src/ui/peer-palette.ts`, `src/adapters/definitions/native-display.ts`).
172
173
 
173
174
  ## Adoption
174
175
 
@@ -213,7 +214,7 @@ the dated snapshot as help and renderers change.
213
214
  - AC1: `@staix/cli-output` holds this standard. This spec records the hub's adoption. `src/cli/console-state.ts` exposes the nine roles and the marker table; `Tone` stays as the TUI's vocabulary through a mapping onto roles. A test fails on raw SGR literals in `src/cli/` and `src/hub/` human-output code outside the compatibility re-export `src/cli/output-standard.ts`, with an allowlist for the identity palettes (`src/ui/peer-palette.ts`, `src/adapters/definitions/native-display.ts`) and the full-screen console (`src/cli/console.ts`).
214
215
  - AC2: `ahub status` default view: header, then an `Attention` section listing every item that needs action as marker + text + `→` next step, then sections for the hub, peers and tasks, with plain keys in peer detail. The current full detail stays available behind `--verbose`. `--json` unchanged; exit code unchanged (`0`).
215
216
  - AC3: `ahub doctor`: marker + check + finding rows, failures then warnings then unknowns then oks within each section, capped CHECK width, a summary line. Behavior change, named in the CHANGELOG: `doctor` exits `1` when any row is `fail` (it exits `0` today). `ahub setup` keeps its own exit behavior (it calls the doctor function, not the process exit). `--json` unchanged.
216
- - AC4: `ahub help` overview uses one-line summaries; the long text moves to `ahub help <command>`. Every command, subcommand and flag still appears, and the help-vs-`main.ts` check keeps passing.
217
+ - AC4: `ahub help` overview uses one-line summaries; the long text moves to `ahub help <command>`. Every command, subcommand and flag still appears, and the help-vs-command-table check keeps passing.
217
218
  - AC5: the shared `fail()` helper in `src/cli/main.ts` prints the error line format (marker only on a TTY, plain `ahub: ` on a pipe) and accepts an optional next step. Behavior changes, named in the CHANGELOG and with their tests updated in the same PR: usage errors exit `2` (they exit `1` today, for example `test/identity-cli.test.ts` and `test/structural-config-cli-process.test.ts`), and `ahub task show <missing id>` prints to stderr and exits `1`. Call sites gain a next step only where the fix is known; daemon refusal text is passed through unchanged.
218
219
  - AC6: the five conformance checks run in `bun test`.
219
220
 
@@ -18,6 +18,7 @@ paths:
18
18
  - src/hub/control-client.ts
19
19
  - src/hub/restart.ts
20
20
  - src/cli/main.ts
21
+ - src/cli/commands/guidance.ts
21
22
  - src/cli/help.ts
22
23
  - test/guidance-probes.test.ts
23
24
  - test/guidance-probes-control.test.ts
@@ -23,10 +23,12 @@ paths:
23
23
  - src/hub/daemon.ts
24
24
  - src/hub/restart.ts
25
25
  - src/cli/roadmap.ts
26
+ - src/cli/roadmap-usage.ts
26
27
  - src/cli/roadmap-write.ts
27
28
  - src/cli/console.ts
28
29
  - src/cli/console-state.ts
29
30
  - src/cli/main.ts
31
+ - src/cli/commands/roadmap.ts
30
32
  - src/cli/help.ts
31
33
  - src/cli/identity.ts
32
34
  - src/hub/ui.ts
@@ -20,6 +20,7 @@ paths:
20
20
  - src/hub/task-sweep.ts
21
21
  - src/hub/settled-roles.ts
22
22
  - src/hub/conductor.ts
23
+ - src/hub/conductor-peer.ts
23
24
  - src/hub/supervision.ts
24
25
  - src/hub/hub-tools.ts
25
26
  - src/hub/tool-refusal.ts