catherd-cli 1.4.0 → 2.0.0-beta.20261022113309

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 (320) hide show
  1. package/README.md +188 -169
  2. package/THIRD_PARTY_NOTICES.md +217 -35
  3. package/catalog/jev.json +27 -1
  4. package/catalog/models.json +56 -239
  5. package/package.json +6 -8
  6. package/plugin/.claude-plugin/plugin.json +1 -1
  7. package/plugin/.codex-plugin/plugin.json +1 -1
  8. package/plugin/bin/catherd-mcp +1 -1
  9. package/plugin/commands/catherd.md +2 -2
  10. package/plugin/skills/catherd/SKILL.md +97 -356
  11. package/plugin/skills/catherd-setup/SKILL.md +21 -20
  12. package/src/adapters/all.ts +0 -4
  13. package/src/adapters/backend.ts +19 -4
  14. package/src/adapters/claude-code/index.ts +126 -14
  15. package/src/adapters/codex/events.ts +10 -0
  16. package/src/adapters/codex/index.ts +17 -5
  17. package/src/adapters/cursor/home.ts +1 -1
  18. package/src/adapters/cursor/index.ts +10 -4
  19. package/src/adapters/opencode/index.ts +38 -1
  20. package/src/cli.ts +27 -27
  21. package/src/domain/agents.ts +3 -1
  22. package/src/domain/bars.ts +33 -107
  23. package/src/domain/blocked.ts +72 -0
  24. package/src/domain/branch.ts +51 -0
  25. package/src/domain/brief.ts +106 -0
  26. package/src/domain/catalog.ts +69 -313
  27. package/src/domain/changes.ts +23 -1
  28. package/src/domain/cost.ts +19 -29
  29. package/src/domain/errors.ts +6 -2
  30. package/src/domain/fail-lines.ts +26 -0
  31. package/src/domain/failover.ts +37 -75
  32. package/src/domain/findings.ts +47 -0
  33. package/src/domain/gate-brief.ts +53 -0
  34. package/src/domain/hints.ts +13 -2
  35. package/src/domain/ids.ts +13 -2
  36. package/src/domain/jev.ts +47 -2
  37. package/src/domain/judge.ts +124 -0
  38. package/src/domain/lane.ts +118 -3
  39. package/src/domain/milestone-memory.ts +53 -0
  40. package/src/domain/notice.ts +32 -8
  41. package/src/domain/notify.ts +32 -0
  42. package/src/domain/plan-doc.ts +198 -0
  43. package/src/domain/plan-lint.ts +141 -0
  44. package/src/domain/profile-rules.ts +175 -138
  45. package/src/domain/profile.ts +140 -63
  46. package/src/domain/record.ts +68 -3
  47. package/src/domain/reply.ts +29 -0
  48. package/src/domain/role-prompts.ts +182 -56
  49. package/src/domain/role-scope.ts +76 -0
  50. package/src/domain/role-tools.ts +34 -0
  51. package/src/domain/roles.ts +2 -0
  52. package/src/domain/route.ts +90 -0
  53. package/src/domain/rules.ts +33 -0
  54. package/src/domain/run-events.ts +298 -0
  55. package/src/domain/run-machine.ts +668 -0
  56. package/src/domain/run-state.ts +1310 -0
  57. package/src/domain/scorecard.ts +197 -0
  58. package/src/domain/select.ts +229 -72
  59. package/src/domain/slopalytics.ts +72 -0
  60. package/src/domain/state.ts +5 -0
  61. package/src/domain/util.ts +22 -0
  62. package/src/domain/workspace.ts +130 -0
  63. package/src/entry/answer-command.ts +39 -0
  64. package/src/entry/catalog-command.ts +24 -165
  65. package/src/entry/check-bin.ts +17 -0
  66. package/src/entry/cli-kit.ts +18 -2
  67. package/src/entry/daemon-bin.ts +22 -0
  68. package/src/entry/deps.ts +2 -0
  69. package/src/entry/doctor-command.ts +20 -2
  70. package/src/entry/glyphs.ts +15 -2
  71. package/src/entry/host-arg.ts +28 -0
  72. package/src/entry/init-command.ts +20 -69
  73. package/src/entry/knowledge-command.ts +121 -5
  74. package/src/entry/lock-command.ts +103 -8
  75. package/src/entry/mcp/handshake.ts +6 -2
  76. package/src/entry/mcp/role-bin.ts +20 -0
  77. package/src/entry/mcp/role-server.ts +134 -0
  78. package/src/entry/mcp/server.ts +85 -21
  79. package/src/entry/mcp/session-tools.ts +149 -0
  80. package/src/entry/panel/openapi.ts +189 -0
  81. package/src/entry/panel/server.ts +410 -0
  82. package/src/entry/panel-command.ts +68 -0
  83. package/src/entry/pause-command.ts +67 -0
  84. package/src/entry/profile-command.ts +33 -18
  85. package/src/entry/role-cli-command.ts +159 -0
  86. package/src/entry/runs-command.ts +81 -27
  87. package/src/entry/scorecard-command.ts +187 -0
  88. package/src/entry/supervise-bin.ts +1 -1
  89. package/src/entry/supervise-command.ts +30 -3
  90. package/src/entry/workspace-command.ts +44 -0
  91. package/src/infra/boot-lock.ts +25 -0
  92. package/src/infra/delivery.ts +3 -0
  93. package/src/infra/dispatch-dir.ts +2 -0
  94. package/src/infra/env.ts +11 -3
  95. package/src/infra/git.ts +70 -0
  96. package/src/infra/heavy-lock.ts +133 -6
  97. package/src/infra/host-probe.ts +16 -0
  98. package/src/infra/launch.ts +63 -7
  99. package/src/infra/lock-activity.ts +88 -0
  100. package/src/infra/login-env.ts +48 -0
  101. package/src/infra/memory.ts +45 -0
  102. package/src/infra/ntfy.ts +40 -0
  103. package/src/infra/open-url.ts +42 -0
  104. package/src/infra/paths.ts +37 -2
  105. package/src/infra/role-mcp.ts +69 -0
  106. package/src/infra/slopalytics.ts +30 -0
  107. package/src/infra/store.ts +6 -1
  108. package/src/infra/supervisor.ts +107 -16
  109. package/src/services/admission.ts +133 -31
  110. package/src/services/backends.ts +4 -6
  111. package/src/services/budget.ts +26 -6
  112. package/src/services/capture.ts +1 -22
  113. package/src/services/catalog-service.ts +155 -254
  114. package/src/services/credentials.ts +15 -26
  115. package/src/services/daemon.ts +181 -0
  116. package/src/services/dispatch-service.ts +209 -17
  117. package/src/services/dispatches.ts +30 -2
  118. package/src/services/doctor-access.ts +8 -3
  119. package/src/services/doctor-backends.ts +1 -1
  120. package/src/services/doctor-checks.ts +47 -0
  121. package/src/services/doctor-docker.ts +221 -0
  122. package/src/services/doctor-role-mcp.ts +65 -0
  123. package/src/services/doctor.ts +72 -15
  124. package/src/services/end-push.ts +157 -0
  125. package/src/services/failover-rungs.ts +109 -0
  126. package/src/services/finalize.ts +24 -2
  127. package/src/services/gate-env.ts +217 -0
  128. package/src/services/gate-service.ts +231 -45
  129. package/src/services/global-install.ts +46 -13
  130. package/src/services/jev-service.ts +2 -4
  131. package/src/services/lane-edit.ts +154 -0
  132. package/src/services/lane-service.ts +291 -55
  133. package/src/services/milestone-check.ts +433 -0
  134. package/src/services/milestone-tree.ts +170 -0
  135. package/src/services/milestones.ts +167 -29
  136. package/src/services/notifier.ts +124 -4
  137. package/src/services/notify-service.ts +26 -0
  138. package/src/services/orchestrator-wait.ts +82 -0
  139. package/src/services/panel-setup.ts +116 -0
  140. package/src/services/pause.ts +161 -0
  141. package/src/services/peek.ts +79 -17
  142. package/src/services/plan-input.ts +151 -0
  143. package/src/services/ports.ts +60 -5
  144. package/src/services/preflight.ts +232 -24
  145. package/src/services/profile-service.ts +31 -3
  146. package/src/services/profile-store.ts +18 -6
  147. package/src/services/protocol.ts +123 -25
  148. package/src/services/provenance.ts +34 -89
  149. package/src/services/questions.ts +24 -0
  150. package/src/services/reconcile.ts +33 -1
  151. package/src/services/reentry.ts +7 -6
  152. package/src/services/role-access.ts +27 -0
  153. package/src/services/routing-service.ts +161 -42
  154. package/src/services/run-briefs.ts +477 -0
  155. package/src/services/run-client.ts +217 -0
  156. package/src/services/run-effects.ts +837 -0
  157. package/src/services/run-events-store.ts +174 -0
  158. package/src/services/run-evidence.ts +1 -1
  159. package/src/services/run-pin.ts +125 -0
  160. package/src/services/run-read.ts +221 -0
  161. package/src/services/run-report.ts +176 -0
  162. package/src/services/run-service.ts +204 -23
  163. package/src/services/run-store.ts +159 -18
  164. package/src/services/scorecard-metrics.ts +86 -0
  165. package/src/services/scorecard.ts +382 -0
  166. package/src/services/scratch.ts +60 -0
  167. package/src/services/sessions.ts +3 -1
  168. package/src/services/state.ts +21 -0
  169. package/src/services/summary.ts +76 -12
  170. package/src/services/tree-path.ts +27 -0
  171. package/src/services/verifier-brief.ts +23 -0
  172. package/src/services/verifier-step.ts +48 -0
  173. package/src/services/workspace-admission.ts +259 -0
  174. package/src/services/workspace-service.ts +259 -0
  175. package/src/services/workspace-store.ts +95 -0
  176. package/web/dist/assets/Brand-PKlUX5TE.js +1 -0
  177. package/web/dist/assets/Brand-PKlUX5TE.js.br +0 -0
  178. package/web/dist/assets/Brand-PKlUX5TE.js.gz +0 -0
  179. package/web/dist/assets/Modal-Dxc5so53.js +1 -0
  180. package/web/dist/assets/Modal-Dxc5so53.js.br +0 -0
  181. package/web/dist/assets/Modal-Dxc5so53.js.gz +0 -0
  182. package/web/dist/assets/Pressable-C8-T6Ed_.js +1 -0
  183. package/web/dist/assets/StatusChip-B5xfI_Mn.js +153 -0
  184. package/web/dist/assets/StatusChip-B5xfI_Mn.js.br +0 -0
  185. package/web/dist/assets/StatusChip-B5xfI_Mn.js.gz +0 -0
  186. package/web/dist/assets/_app-Ea5cpyKe.js +1 -0
  187. package/web/dist/assets/_app-Ea5cpyKe.js.br +0 -0
  188. package/web/dist/assets/_app-Ea5cpyKe.js.gz +0 -0
  189. package/web/dist/assets/_runId-pTG0fXVo.js +1 -0
  190. package/web/dist/assets/_runId-pTG0fXVo.js.br +0 -0
  191. package/web/dist/assets/_runId-pTG0fXVo.js.gz +0 -0
  192. package/web/dist/assets/drawer-Du3cdlok.js +1 -0
  193. package/web/dist/assets/drawer-Du3cdlok.js.br +0 -0
  194. package/web/dist/assets/drawer-Du3cdlok.js.gz +0 -0
  195. package/web/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  196. package/web/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  197. package/web/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  198. package/web/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  199. package/web/dist/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
  200. package/web/dist/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
  201. package/web/dist/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
  202. package/web/dist/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
  203. package/web/dist/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
  204. package/web/dist/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
  205. package/web/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  206. package/web/dist/assets/index-B6GiwDkh.js +11 -0
  207. package/web/dist/assets/index-B6GiwDkh.js.br +0 -0
  208. package/web/dist/assets/index-B6GiwDkh.js.gz +0 -0
  209. package/web/dist/assets/index-C5IbylvM.css +2 -0
  210. package/web/dist/assets/index-C5IbylvM.css.br +0 -0
  211. package/web/dist/assets/index-C5IbylvM.css.gz +0 -0
  212. package/web/dist/assets/label-DFSYBc62.js +1 -0
  213. package/web/dist/assets/label-DFSYBc62.js.br +0 -0
  214. package/web/dist/assets/label-DFSYBc62.js.gz +0 -0
  215. package/web/dist/assets/link-D8EcKZUt.js +1 -0
  216. package/web/dist/assets/link-D8EcKZUt.js.br +0 -0
  217. package/web/dist/assets/link-D8EcKZUt.js.gz +0 -0
  218. package/web/dist/assets/login-DaN5HPPW.js +1 -0
  219. package/web/dist/assets/login-DaN5HPPW.js.br +0 -0
  220. package/web/dist/assets/login-DaN5HPPW.js.gz +0 -0
  221. package/web/dist/assets/query-Cu--ccT3.js +1 -0
  222. package/web/dist/assets/questions-shoO9OVj.js +1 -0
  223. package/web/dist/assets/questions-shoO9OVj.js.br +0 -0
  224. package/web/dist/assets/questions-shoO9OVj.js.gz +0 -0
  225. package/web/dist/assets/react-query.gen-Bu2yV-qJ.js +12 -0
  226. package/web/dist/assets/react-query.gen-Bu2yV-qJ.js.br +0 -0
  227. package/web/dist/assets/react-query.gen-Bu2yV-qJ.js.gz +0 -0
  228. package/web/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  229. package/web/dist/assets/run-status-C0DRuV7U.js +1 -0
  230. package/web/dist/assets/runs-C3rg2zZc.js +1 -0
  231. package/web/dist/assets/runs-C3rg2zZc.js.br +0 -0
  232. package/web/dist/assets/runs-C3rg2zZc.js.gz +0 -0
  233. package/web/dist/assets/setup-5I4Vl9fR.js +1 -0
  234. package/web/dist/assets/setup-5I4Vl9fR.js.br +0 -0
  235. package/web/dist/assets/setup-5I4Vl9fR.js.gz +0 -0
  236. package/web/dist/assets/table-BOxXhqS4.js +1 -0
  237. package/web/dist/assets/table-BOxXhqS4.js.br +0 -0
  238. package/web/dist/assets/table-BOxXhqS4.js.gz +0 -0
  239. package/web/dist/assets/textfield-BzRFkxBF.js +1 -0
  240. package/web/dist/assets/textfield-BzRFkxBF.js.br +0 -0
  241. package/web/dist/assets/textfield-BzRFkxBF.js.gz +0 -0
  242. package/web/dist/assets/time--9kSQbbp.js +1 -0
  243. package/web/dist/assets/use-css-variable-CpnN9WtA.js +5 -0
  244. package/web/dist/assets/use-css-variable-CpnN9WtA.js.br +0 -0
  245. package/web/dist/assets/use-css-variable-CpnN9WtA.js.gz +0 -0
  246. package/web/dist/assets/useMutation-CVPKlR34.js +1 -0
  247. package/web/dist/assets/useMutation-CVPKlR34.js.br +0 -0
  248. package/web/dist/assets/useMutation-CVPKlR34.js.gz +0 -0
  249. package/web/dist/index.html +15 -0
  250. package/catalog/ATTRIBUTION.md +0 -36
  251. package/catalog/scores.json +0 -3202
  252. package/catalog/sources.json +0 -97
  253. package/src/adapters/antigravity/events.ts +0 -131
  254. package/src/adapters/antigravity/home.ts +0 -46
  255. package/src/adapters/antigravity/index.ts +0 -320
  256. package/src/adapters/antigravity/models.ts +0 -37
  257. package/src/adapters/grok/events.ts +0 -112
  258. package/src/adapters/grok/home.ts +0 -132
  259. package/src/adapters/grok/index.ts +0 -339
  260. package/src/adapters/grok/models.ts +0 -48
  261. package/src/domain/calibration.ts +0 -125
  262. package/src/domain/sources.ts +0 -144
  263. package/src/entry/mcp/dispatch-tools.ts +0 -52
  264. package/src/entry/mcp/lane-tools.ts +0 -84
  265. package/src/entry/mcp/protocol-tools.ts +0 -57
  266. package/src/entry/mcp/run-tools.ts +0 -148
  267. package/src/entry/mcp/setup-tools.ts +0 -108
  268. package/src/entry/tui/commands.ts +0 -563
  269. package/src/entry/tui/effects.ts +0 -381
  270. package/src/entry/tui/fixtures.ts +0 -637
  271. package/src/entry/tui/profile-edits.ts +0 -146
  272. package/src/entry/tui/profile-tree.ts +0 -429
  273. package/src/entry/tui/providers/app.tsx +0 -162
  274. package/src/entry/tui/providers/boundary.tsx +0 -57
  275. package/src/entry/tui/providers/data.tsx +0 -160
  276. package/src/entry/tui/providers/keymap.tsx +0 -166
  277. package/src/entry/tui/providers/root.tsx +0 -45
  278. package/src/entry/tui/providers/theme.tsx +0 -17
  279. package/src/entry/tui/providers/toast.tsx +0 -77
  280. package/src/entry/tui/run.tsx +0 -114
  281. package/src/entry/tui/state.ts +0 -373
  282. package/src/entry/tui/stories.ts +0 -114
  283. package/src/entry/tui/text.ts +0 -130
  284. package/src/entry/tui/theme.ts +0 -140
  285. package/src/entry/tui/views/app.tsx +0 -208
  286. package/src/entry/tui/views/dialogs.tsx +0 -41
  287. package/src/entry/tui/views/profile-actions.ts +0 -331
  288. package/src/entry/tui/views/profiles.tsx +0 -520
  289. package/src/entry/tui/views/runs.tsx +0 -573
  290. package/src/entry/tui/views/save-dialog.tsx +0 -340
  291. package/src/entry/tui/views/status.tsx +0 -209
  292. package/src/entry/tui/widgets/chrome.tsx +0 -114
  293. package/src/entry/tui/widgets/dialog-confirm.tsx +0 -58
  294. package/src/entry/tui/widgets/dialog-prompt.tsx +0 -52
  295. package/src/entry/tui/widgets/dialog-select.tsx +0 -212
  296. package/src/entry/tui/widgets/dialog.tsx +0 -68
  297. package/src/entry/tui/widgets/line.tsx +0 -92
  298. package/src/entry/tui/widgets/list.tsx +0 -197
  299. package/src/entry/tui/widgets/spinner.tsx +0 -49
  300. package/src/entry/tui/widgets/toast.tsx +0 -62
  301. package/src/infra/sources/arena.ts +0 -87
  302. package/src/infra/sources/artificial-analysis.ts +0 -112
  303. package/src/infra/sources/cache.ts +0 -124
  304. package/src/infra/sources/csv.ts +0 -38
  305. package/src/infra/sources/epoch.ts +0 -82
  306. package/src/infra/sources/http.ts +0 -75
  307. package/src/infra/sources/litellm.ts +0 -58
  308. package/src/infra/sources/models-dev.ts +0 -59
  309. package/src/infra/sources/openrouter-endpoints.ts +0 -52
  310. package/src/infra/sources/openrouter-models.ts +0 -60
  311. package/src/infra/sources/rows.ts +0 -38
  312. package/src/infra/sources/vectara.ts +0 -69
  313. package/src/infra/sources/zip.ts +0 -48
  314. package/src/services/catalog-refresh.ts +0 -201
  315. package/src/services/doctor-sources.ts +0 -76
  316. package/src/services/runs-page.ts +0 -255
  317. package/src/services/source-derive.ts +0 -374
  318. package/src/services/source-sync.ts +0 -305
  319. package/src/services/standins.ts +0 -204
  320. package/src/services/treat-likes.ts +0 -97
package/README.md CHANGED
@@ -6,22 +6,24 @@
6
6
  (")(")
7
7
  ```
8
8
 
9
- Autopilot builds from your own Claude Code or native Codex session. Your profile routes the architect, verifier and workers to their backends; Codex, opencode, Cursor, Grok Build,
10
- Antigravity or headless Claude Code processes write the code, and [Jev](https://typesafe.ai) picks the model and effort for each piece
9
+ Autopilot builds from your own Claude Code or native Codex session. Your profile routes the architect, verifier and workers to their backends; Codex, opencode, Cursor
10
+ or headless Claude Code processes write the code, and [Jev](https://typesafe.ai) picks the model and effort for each piece
11
11
  of work, climbing a ladder only when a cheaper rung falls short.
12
12
 
13
13
  - **Your harness, as you set it up.** Every role runs in its vendor's own CLI with your config,
14
14
  hooks, skills and `AGENTS.md`. Isolation is an opt-in toggle per profile and harness, for when
15
15
  you'd rather save the tokens your customizations cost.
16
- - **Claude roles stay native on Claude Code.** `claude:` rungs require that host and run as ordinary Claude Code subagents; Codex,
17
- opencode, Cursor, Grok Build, Antigravity and headless `claude-code:` rungs run through catherd's MCP server.
18
- - **Survives restarts.** Workers are detached processes writing straight to disk, so a dropped
19
- MCP server never loses a run.
20
- - **Results come to you.** Roles run side by side while you keep talking. Claude Code uses its peer inbox; Codex uses queued next input through its existing native server. A busy Codex conversation processes it after the active turn. Queue acceptance and result collection are separate; `peek` shows how a run stands.
21
- - **A protocol the tools enforce.** Every lane is routed, every brief ends with the reply contract, and a
22
- milestone lands only after a reviewer and a verifier passed it. Workers can run their own checks (network,
23
- loopback, Docker, the lock dir); an owner question parks one milestone, not the run.
24
- - **Guard rails for autopilot.** Quota failover to a stand-in that clears the same bars, a preflight check
16
+ - **A daemon drives the run.** `run_start` launches a detached daemon that plans, dispatches, reviews, verifies
17
+ and lands each milestone from the run's own `events.jsonl`. Every role runs headless in its vendor's CLI
18
+ (Claude Code, Codex, opencode, Cursor); the session needs none of it once the run has started, and a dropped
19
+ session or MCP server never loses a run.
20
+ - **Questions reach your phone.** A parked question and the final report are sent to your ntfy topic
21
+ (`notify.url`), and answered from the session (`answer`) or the terminal (`catherd answer`).
22
+ - **A protocol the daemon enforces.** Every lane implements its plan tasks as written, and every role, whatever vendor runs it, gets its role's text and ends with the reply contract, and a
23
+ milestone lands only after a reviewer and a verifier passed it. A judge role decides what no rule can (an
24
+ ambiguous finding, a stuck fix round, an unmet check) from the run's facts. An owner question parks one milestone,
25
+ not the run.
26
+ - **Guard rails for autopilot.** Quota failover to an indexed stand-in at least as intelligent, a preflight check
25
27
  before any worker starts, per-repo knowledge carried between runs, and a run budget.
26
28
 
27
29
  ## Requirements
@@ -35,25 +37,20 @@ of work, climbing a ladder only when a cheaper rung falls short.
35
37
  - Claude Code's `claude` CLI 2.1.282 or newer, for headless `claude-code:` rungs
36
38
  - Cursor's CLI, `cursor-agent` 2026.09.28 or newer: `curl https://cursor.com/install -fsS | bash`, then
37
39
  `cursor-agent login` (below)
38
- - Grok Build's `grok` 1.0.44 or newer: `curl -fsSL https://x.ai/cli/install.sh | bash`, then `grok login`
39
- (below)
40
- - Google's Antigravity CLI, `agy` 1.2.13 or newer: `brew install --cask antigravity-cli`, or
41
- `curl -fsSL https://antigravity.google/cli/install.sh | bash` (with `~/.local/bin` on PATH), then run `agy` once
42
- to sign in (below)
43
40
  - Optional: a TypeSafe API key for Jev, in `TYPESAFE_API_KEY` or saved by `catherd init`
44
- - Optional: a free [Artificial Analysis](https://artificialanalysis.ai) API key for more scores, in
45
- `ARTIFICIAL_ANALYSIS_API_KEY` or saved by `catherd init`; its numbers are read for you alone and never shipped
41
+ - Optional: [gitleaks](https://github.com/gitleaks/gitleaks) (`brew install gitleaks`): catherd's milestone check
42
+ scans the commits of a milestone with it for a leaked secret; without it the scan is skipped and the record says so
46
43
 
47
44
  `catherd doctor` checks each backend's version and login and prints the fix for anything missing. The default
48
45
  profile runs its workers on Codex; without Codex, doctor's fix also names how to move those roles to a backend
49
- you have (`/catherd-setup`, or `catherd profile set roles.<role>.rungs <rung> --host <codex|claude-code>`). Codex-only setup does not require or configure Claude; enabled selected roles and reachable failover decide optional dependencies. Doctor sends nothing by default; `--test-push` is an explicit smoke send from a validated host session.
46
+ you have (`/catherd-setup`, or `catherd profile set roles.<role>.rungs <rung> --host <codex|claude-code>`). Codex-only setup does not require or configure Claude; enabled selected roles and reachable failover decide optional dependencies. Doctor sends nothing by default; `--test-push` is an explicit smoke send from a validated host session (`--thread <uuid>` names the Codex thread from a shell).
50
47
 
51
48
  ### Cursor
52
49
 
53
50
  A Cursor rung names Cursor's own model slug, with the effort as the slug's suffix: `cursor:gpt-6-sol#xhigh` runs
54
- `gpt-6-sol-xhigh`, and `#default` runs the bare slug (`cursor:composer-2.5#default`). `cursor-agent models` lists
51
+ `gpt-6-sol-xhigh`, and `#default` runs the bare slug of a model whose index entry has no effort. `cursor-agent models` lists
55
52
  what your account offers; `catherd catalog refresh` reads it. No profile uses Cursor until you put a rung on it.
56
- Its Composer and Grok models bill from Cursor's own pool, the other models at API rates after your plan's included
53
+ Its own models (Composer, Grok) bill from Cursor's own pool, the other models at API rates after your plan's included
57
54
  usage, so a Cursor rung ranks as `metered`.
58
55
 
59
56
  - **Native** (the default) runs with your login and your Cursor setup. It also loads your Claude Code hooks,
@@ -65,52 +62,13 @@ usage, so a Cursor rung ranks as `metered`.
65
62
  move to another home. catherd runs Cursor under its own HOME with its own `sandbox.json`, which gives a worker
66
63
  catherd's writable roots.
67
64
 
68
- ### Grok Build
69
-
70
- A Grok rung names grok's model and effort: `grok:grok-4.6#high` runs `grok -m grok-4.6 --effort high`, and
71
- `#default` passes no effort. `grok models` lists your models but no efforts, so catherd offers Grok Build's `low`
72
- to `xhigh`; `catherd catalog refresh` reads the list. No profile uses grok until you put a rung on it. A Grok login
73
- (SuperGrok, X Premium+) bills your subscription and `XAI_API_KEY` bills per token: `catherd doctor` says when a
74
- profile's `billing.grok` differs from your login. On a usage limit, a Grok rung fails over to the same model on
75
- Cursor, and a Cursor Grok rung to grok, unless the profile names another stand-in.
76
-
77
- - **Native** (the default) runs with your login and your grok setup. It also loads your Claude Code plugins,
78
- agents, skills, hooks and permission rules, and your Cursor rules and MCP. `workspace-write` runs in grok's
79
- sandbox under catherd's own profile, `catherd-ws`, which lets a worker write the lock dir, temp and the
80
- toolchain caches: catherd adds its marked `[profiles.catherd-*]` tables to `~/.grok/sandbox.toml` and leaves the
81
- rest of that file alone. `read-only` runs grok's kernel `read-only` profile. On a Mac whose
82
- `/var/run/docker.sock` is a link (Docker Desktop, OrbStack, Colima) grok refuses that profile, so catherd gives
83
- the role only the read tools instead (`advisory`); `catherd doctor` says which applies. On macOS no grok profile
84
- controls the network.
85
- - **Isolated** (`catherd profile set harness.grok.isolated true`) needs `XAI_API_KEY`: catherd never copies your
86
- grok login, whose refresh token rotates. catherd runs grok under its own HOME with its own `sandbox.toml`.
87
-
88
- grok keeps a session on the access it started with, so catherd refuses to resume one under another access.
89
-
90
- ### Antigravity
91
-
92
- An Antigravity rung names the model `agy models` lists, without an effort suffix; the effort is agy's `--effort`
93
- (`low`, `medium`, `high` or `max`), and `#default` passes none: `antigravity:gemini-3.8-flash#low`. No profile uses
94
- Antigravity until you put a rung on it. catherd never runs `agy -p` while agy is signed out, since agy would open a
95
- browser and wait; `catherd doctor` says so, with the fix. A Google login draws on your plan's quota (doctor shows
96
- what is left); `GEMINI_API_KEY` bills the Gemini API project. Gemini rungs fail over between Antigravity and Cursor
97
- when either runs out, unless your profile names another stand-in.
98
-
99
- - **Native** (the default) runs with your Google login and your `~/.gemini` settings, which the Antigravity desktop
100
- app shares and catherd never edits. `workspace-write` runs shell commands in agy's sandbox, which reaches the
101
- workspace, temp and build caches but no network unless your own `read_url` rules grant it; the file tools are not
102
- confined (`advisory`). agy has no read-only mode, so a read-only role (the reviewer, the architect) cannot run on
103
- native Antigravity: `profile validate` refuses it.
104
- - **Isolated** (`catherd profile set harness.antigravity.isolated true`) needs `GEMINI_API_KEY`. catherd runs agy
105
- under its own HOME, with its own settings: the Gemini API as the provider, write and command deny rules for
106
- read-only roles, and catherd's writable roots and the network for `workspace-write`.
107
-
108
- Whether Google's plan terms allow an orchestrator to drive `agy` on a consumer plan is not settled here. The API-key
109
- route is the one meant for automation; check the terms before you rely on a plan login.
110
-
111
65
  ## Install
112
66
 
113
- The published `v1.3.0` marketplace and global `catherd-cli@1.3.0` remain the stable Claude integration. The native Codex feature in this checkout is unreleased and held pending actual packaged CLI/Desktop/Claude acceptance. A matching version alone does not prove that the feature core ran. Use the [local packaged acceptance procedure](docs/dev/live-verification.md#14-native-codex-packaging-and-completion-acceptance) for this candidate; do not publish or update the remote tag to test it.
67
+ catherd runs from Claude Code or, since 1.4, from native Codex; one global `catherd` and one plugin version serve both. To check a packaged build before you rely on it, follow the [local packaged acceptance procedure](docs/dev/live-verification.md#14-native-codex-packaging-and-completion-acceptance); a matching version alone does not prove that the feature core ran.
68
+
69
+ Channels: `catherd-cli@latest` is the stable release. `catherd-cli@beta` and the `plugin-beta` marketplace carry
70
+ the next one before it is stable (CONTRIBUTING.md, "Beta channel"). `catherd-cli@1` is the 1.x line, which receives
71
+ bug fixes only (CONTRIBUTING.md, "Maintenance line (1.x)").
114
72
 
115
73
  ### Claude Code
116
74
 
@@ -122,11 +80,12 @@ catherd init --host claude-code
122
80
  The npm package is `catherd-cli`; the command it installs is `catherd`. `bunx catherd-cli init --host claude-code`
123
81
  works too (a terminal with no host evidence cannot pick the architect/verifier defaults, so name the host): `init`
124
82
  installs the global command at its own version (`--no-global` skips it) and says `installing catherd…` before
125
- it does, though the first `bunx` resolve itself prints nothing for up to half a minute. `init` asks for the
126
- optional Jev key and the optional Artificial Analysis key, syncs the public model sources, writes the default
83
+ it does, though the first `bunx` resolve itself prints nothing for up to half a minute: bunx fetches the
84
+ package before catherd's first line, so `bun add -g catherd-cli` first is the quicker start. `init` asks for the
85
+ optional Jev key, fetches the Slopalytics index, writes the default
127
86
  profile and links its Claude agents, lists your backends' models, and ends with a readiness report (`--no-input`
128
87
  asks nothing and keeps what exists; `--profile <name>` sets up and activates that profile instead of `default`;
129
- piped, it reads one answer per line once stdin closes: the Jev key, the Artificial Analysis key, the profile,
88
+ piped, it reads one answer per line once stdin closes: the Jev key, the profile,
130
89
  whether to replace it, each on its own line even when a question is skipped). Then add the plugin to
131
90
  Claude Code:
132
91
 
@@ -138,9 +97,7 @@ claude plugin install catherd@catherd
138
97
  Start a new Claude Code session so the plugin, its MCP server and the agent files load, then check with
139
98
  `catherd doctor --host claude-code`. From inside that session, explicit `catherd doctor --test-push` sends a labeled smoke notice; inspect actual processing separately from transport acceptance.
140
99
 
141
- ### Native Codex — after the feature release
142
-
143
- These remote commands become feature installation guidance only after the held release is published:
100
+ ### Native Codex
144
101
 
145
102
  ```sh
146
103
  bun add -g catherd-cli
@@ -159,11 +116,27 @@ Pass the actual project `repo` to repository-aware MCP profile/setup/catalog cal
159
116
  In either supported host, use the installed shared skills through that host's skill invocation and tool discovery:
160
117
 
161
118
  - `/catherd <task>` runs a task on autopilot; `/catherd` alone resumes the latest run. While it runs, keep
162
- talking: completion arrives through the host's transport, and "how is it going?" gets a `peek`.
119
+ talking: a report arrives through the host's transport and on your phone, and "how is it going?" gets a `status`.
163
120
  - `/catherd-setup` tunes your profile in conversation: which models and efforts each role may
164
121
  use, cost or speed, isolation, budget and failover.
165
122
 
166
- `route` chooses the backend for every role. Native `claude:` uses Claude Code's `Agent` and `record_agent_run` only on Claude Code; process backends, including Codex architect/verifier, use `dispatch` followed by `result`. Omitted Codex architect/verifier choices are exactly `codex:gpt-6.1-sol#high` / `codex:gpt-6.1-sol#low`; omitted Claude choices retain their existing native defaults. Verify that exact model ID against native catalog discovery and validation; if spelling differs, resolve the mismatch explicitly with the owner, never silently normalize or substitute, and retain high/low efforts. Explicit ladders and materialized profiles are preserved, without silently converting `claude:` to `claude-code:`. To opt into host defaults, review and save the narrow reset:
123
+ A session sees six tools:
124
+
125
+ | Tool | What it does |
126
+ | ----------------------------------------------- | -------------------------------------------------------------------------------------------- |
127
+ | `run_start(repo, title, a_lines, plan?, base?)` | Starts a run and returns its id and the notify url its questions go to |
128
+ | `status(run?)` | Phase, milestones, live roles, parked questions, quota holds and whether the daemon is alive |
129
+ | `answer(run, unit, answer)` | Answers a parked unit (the run, a milestone or a lane); it runs again with the answer |
130
+ | `cancel(run)` | Stops the run and every live role |
131
+ | `result(run, name?)` | The run's report (the merge request body), or one role's record |
132
+ | `profile(action, …)` | Reads, validates or changes a profile, or sets `notify_url` |
133
+
134
+ Set where questions go once: `notify.url` is an [ntfy](https://ntfy.sh) topic url (`catherd-setup`, or the `profile`
135
+ tool's `notify_url`). The daemon sends to it from your machine, so a question and the final report reach the phone
136
+ with no session open. If `notify.url` is unset, `run_start` makes a random, unlisted topic on the public ntfy.sh and
137
+ sends questions there; set `notify.url` to your own ntfy server for privacy. Omitted Codex architect/verifier choices are exactly `codex:gpt-6.1-sol#high` /
138
+ `codex:gpt-6.1-sol#low`; omitted Claude choices retain their existing defaults, and a `claude:` rung runs as its
139
+ headless `claude-code:` twin. To opt into host defaults, review and save the narrow reset:
167
140
 
168
141
  ```sh
169
142
  catherd profile reset-host-defaults <profile> --host codex --preview --json > /tmp/catherd-host-defaults-review.json
@@ -173,116 +146,161 @@ catherd profile reset-host-defaults <profile> --host codex --expect /tmp/catherd
173
146
 
174
147
  It removes only architect/verifier `rungs` and `defaultRung`; every other setting stays intact. Run profile CLI commands from the project directory and choose the actual profile name. Use `--host claude-code` for Claude defaults.
175
148
 
176
- Completion never uses `await_results` or model polling. Codex sends through `codex queue --remote unix://` to the validated original thread: idle wake and ordered busy follow-up are the native semantics, without Claude's urgent tool-round priority. A receipt proves queue acceptance, not observed generation or collection; unloaded/interrupted hosts may retain input. Only `result` collects the actual stored record. Explicit `peek(run)` adopts the run for the current host/session; `status` and `result` do not. Unknown/conflicting identity never owns or pushes.
177
-
178
- Recover unread work with `peek` and `result`. Accepted or ambiguous attempts are not automatically resent. When ambiguity needs a deliberate retry, run from the current owner's validated host session:
179
-
180
- ```sh
181
- catherd runs retry-push <run> <name> --event '<exact event ID from peek/status>' --acknowledge-possible-duplicate
182
- ```
183
-
184
- This acknowledges possible duplicate native input; an accepted receipt still suppresses a repeat for that owner/event. Without a supported history reconciliation API, retain ambiguity until an explicit decision. Notices preserve all event IDs, including coalesced events; repeated input means idempotent reads, never another dispatch or landing. Stored records and independent reviewer/verifier gates are authoritative. Profile notification moments use an available host facility, without inventing a Codex notification tool or scheduled wake.
149
+ A run's reports reach the session that started it (Claude Code's peer inbox, Codex's queued next input) and the phone.
150
+ `status` revives a daemon that died, so asking "how is it going?" is always safe. Roles get catherd's tools too:
151
+ headless Codex and Claude Code roles get a `catherd_role` MCP server, and other roles run
152
+ `catherd run-file read|write <run> <path>` and `catherd gate check|pass <run> …` from their shell, bound to their own
153
+ run and role (anything else is `E_ROLE_SCOPE`). `run_start`, `answer`, `cancel`, `result` and `profile` are the owner's: a role's process gets
154
+ `E_ROLE_SCOPE` for them, so a role can never take the run over.
185
155
 
186
156
  In a terminal:
187
157
 
188
- | Command | What it does |
189
- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
190
- | `catherd` | The dashboard: Status, Profiles and Runs (below) |
191
- | `catherd init [--host codex\|claude-code\|auto] [--no-input] [--no-global] [--profile <p>]` | First-run setup; installs the global `catherd` at its own version unless `--no-global` |
192
- | `catherd doctor [--host codex\|claude-code\|auto] [--test-push] [--json]` | Readiness and capability report; no send unless explicit smoke; exits 3 when not ready |
193
- | `catherd profile list\|show\|use [--repo]\|new [--from <p>]\|copy\|rm\|diff\|validate` | Profiles; `use --repo` binds one to the repo you are in |
194
- | `catherd profile use --repo --clear` | Unbinds the repo you are in; it runs on the active profile again |
195
- | `catherd profile set <path> <value> [--profile <p>]` | One field, e.g. `roles.verifier.access read-only`, `roles.worker.network false`, `budget.usd 20` |
196
- | `catherd status [run]`, `catherd watch [--once] [--interval <s>]` | Where runs stand, grouped by host and session; read-only ownership |
197
- | `catherd runs list [--repo <path>]\|show <id> [--debug [--name <n>]]\|cancel <id> <name>` | Past runs, by session; `--debug` adds exit.json and the stderr and event tails, `--name` one role's |
198
- | `catherd catalog refresh\|list [--backend <b>] [--role <r>] [--text <t>] [--scored]` | The models catherd can place, filtered |
199
- | `catherd catalog sync [--force] [--unmatched]` | Fetches the public model facts and scores now (below); `--unmatched` lists ids no model matched |
200
- | `catherd catalog treat-like <rung> <like>` | Scores an unscored rung as a scored one |
201
- | `catherd catalog treat-like --suggest <rung>\|--clear <rung>\|--reset` | The three nearest stand-ins for a rung; removes one or every mapping of yours |
202
- | `catherd knowledge show\|add "<line>"\|path [--repo <path>]` | The repo's knowledge.md, which new runs read; `add` appends a fact of yours, marked "by hand" |
203
- | `catherd lock [--slots N] -- <cmd>` | Runs a heavy command behind the machine-wide semaphore, in its own session (no /dev/tty) |
204
- | `catherd mcp` | The MCP server on stdio; the plugin starts it, you never need to |
205
- | `catherd capture-fixtures [--backend <b>] [--out <dir>]` | Contributors: records sanitized test fixtures from real runs (see CONTRIBUTING.md) |
158
+ | Command | What it does |
159
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
160
+ | `catherd`, `catherd panel [--port <n>] [--no-open]` | The panel in your browser on 127.0.0.1: Setup, Runs and Questions; a fresh token each start; `catherd --help` for the commands |
161
+ | `catherd init [--host codex\|claude-code\|auto] [--no-input] [--no-global] [--profile <p>]` | First-run setup; installs the global `catherd` at its own version unless `--no-global` |
162
+ | `catherd doctor [--host codex\|claude-code\|auto] [--test-push [--thread <uuid>]] [--docker] [--json]` | Readiness and capability report; no send unless explicit smoke; `--docker` probes a compose network and the Docker disk; exits 3 when not ready |
163
+ | `catherd profile list\|show\|use [--repo]\|new [--from <p>]\|copy\|rm\|diff\|validate` | Profiles; `use --repo` binds one to the repo you are in |
164
+ | `catherd profile use --repo --clear` | Unbinds the repo you are in; it runs on the active profile again |
165
+ | `catherd profile set <path> <value> [--profile <p>]` | One field, e.g. `roles.verifier.access read-only`, `roles.worker.network false`, `budget.usd 20` |
166
+ | `catherd status [run]`, `catherd watch [--once] [--interval <s>]` | Where runs stand, grouped by host and session; read-only ownership |
167
+ | `catherd runs list [--repo <path>]\|show <id> [--debug [--name <n>]]\|cancel <id> <name>` | Past runs, by session; `--debug` adds exit.json and the stderr and event tails, `--name` one role's |
168
+ | `catherd runs clean [<id>]` | Removes the roles' scratch folders (each role's `$TMPDIR`) of runs with no live role |
169
+ | `catherd catalog refresh\|list [--backend <b>] [--role <r>] [--text <t>]` | The models catherd can place, with their indexed pairs |
170
+ | `catherd catalog sync [--force]` | Fetches the Slopalytics index now (below); it is refreshed at most hourly otherwise |
171
+ | `catherd knowledge show [--role <role>]\|add "<line>"\|rm "<text>"\|path [--repo <path>]` | The repo's knowledge.md, keyed by its git origin (its toplevel when it has none), which new runs read; `add` appends a fact of yours, marked "by hand"; a `[role, …]` tag after the source scopes a line to those roles' briefs; `rm` removes the one line the text matches |
172
+ | `catherd knowledge env set NAME=value\|NAME --from VAR`, `env rm NAME`, `env list` | The repo's gate environment, which the verifier and preflight run with; a secret by reference only |
173
+ | `catherd runs supersede <id> --by <id>`, `catherd runs pin <id>` | Closes a run with a pointer to the one that took over; re-pins a run to the repo's profile now |
174
+ | `catherd pause --machine\|--workspace <id> "<reason>"`, `catherd resume --machine\|--workspace <id>` | Pauses every run on the machine (or in a workspace) on one blocker; dispatch is refused until resume |
175
+ | `catherd lock [--slots N] [--role verifier [--run <id>]] -- <cmd>` | Runs a heavy command behind the machine-wide semaphore, in its own session (no /dev/tty); `--role verifier` keeps two runs' verifiers apart |
176
+ | `catherd run-file read\|write <run> <path>` | A run's plan, lanes and notes (`write` reads stdin); in a role, its own run only |
177
+ | `catherd gate check <run> [--item <i> --command <c> --paths <p,…>] [--milestone <M>]`, `catherd gate pass <run> --item <i> --command <c> --paths <p,…> --evidence <e>` | A verifier's gate evidence, as `gate_check`/`gate_pass`; in a role, its own run only |
178
+ | `catherd gate run <run> --milestone <M> [--command <c>] [--at <base checkout>] [--force]` | A verifier's milestone check, run by catherd on the committed HEAD, detached: failures the base already has do not block, a new failure is rerun once, and `land` needs its record |
179
+ | `catherd answer <run> <unit> <text>` | Answers a parked unit from the terminal, as the `answer` tool does; the daemon picks it up |
180
+ | `catherd mcp` | The MCP server on stdio; the plugin starts it, you never need to |
181
+ | `catherd capture-fixtures [--backend <b>] [--out <dir>]` | Contributors: records sanitized test fixtures from real runs (see CONTRIBUTING.md) |
182
+ | `catherd scorecard prepare <task>`, `record <dir> --label <l>`, `compare <label>` | Contributors: measures a catherd version on four fixed tasks against the 1.5.0 baseline (docs/dev/scorecard.md) |
206
183
 
207
184
  A profile command without a profile name (`show`, `set`, `diff`, `validate`), like the MCP profile tools, acts
208
185
  on the profile the repo you are in runs on: the one bound to it, else the active one. Pass `repo` explicitly to MCP tools; profile CLI commands accept `--host` for effective defaults. Run them as
209
186
  `bunx catherd-cli <command>` when catherd is not installed globally. Every read command takes `--json`; a bare `catherd runs` is `catherd runs list`. Exit codes: 0 ok, 1 error, 2 usage, 3 not ready, 130 interrupted; an error prints
210
187
  `error E_CODE: message` and a `fix:` line. `--verbose` (or `CATHERD_LOG=debug`) logs more to
211
- `~/.local/share/catherd/logs/`, kept for 7 days with secrets redacted. The dashboard takes `--plain` (ASCII, no colour)
212
- and `--reduced-motion`; `doctor` and `init` take `--plain` for ASCII glyphs too. `NO_COLOR` drops colour, never glyphs.
213
-
214
- Model facts and scores also come from public sources: models.dev, OpenRouter, LiteLLM, Arena (LMArena), Vectara's
215
- hallucination leaderboard and Epoch AI, plus Artificial Analysis when you give `catherd init` a free key. The MCP
216
- server syncs them in the background when a host session starts (each source at most every 12 hours, never
217
- delaying the session), `init` syncs them, and `catherd catalog sync` (or the `catalog_sync` tool) does it on demand.
218
- Each answer is kept in `~/.local/share/catherd/sources/`; a source that fails keeps its last good answer, and with no
219
- network and no sync at all catherd routes on the scores it ships. Those are the keyless sources' values, refreshed
220
- weekly (`catalog/ATTRIBUTION.md` credits each source); Artificial Analysis values are read with your key only and
221
- never shipped.
222
-
223
- A lane's kind and difficulty pick a bar: a threshold on each dimension it spans (`repo_code`, `terminal`,
224
- `honesty`, `agentic`, `frontend`; `steer` is shown but has no default bar), and the lane starts on the cheapest
225
- rung that clears them all. A rung with no value on a dimension takes its nearest stand-in's as `inferred`, and
226
- `profile validate` and `doctor` list it as a "stand-in to confirm": confirm or replace it with `catherd catalog
227
- treat-like --suggest <rung>`, then `treat-like <rung> <like>`. `route` says, for the rung it picks, each threshold,
228
- the value used, its confidence and source, and catherd's own runs on it ("12 lanes, 2 climbed, 1 partial"), which
229
- it shows but never routes on. A bar of your own goes in `~/.config/catherd/catalog.override.json`, per dimension
230
- (`"bars": { "ui": { "hard": { "frontend": 1700, "honesty": null } } }`: a number sets a threshold, `null` removes
231
- the default's).
188
+ `~/.local/share/catherd/logs/`, kept for 7 days with secrets redacted. `doctor` and `init` take `--plain` for ASCII glyphs. `NO_COLOR` drops colour, never glyphs.
189
+
190
+ The catalog reads one source: the [Slopalytics](https://slopalyticsproxy.vercel.app) index, one `intelligence`
191
+ number per model and effort. It is fetched hourly (the MCP server does it in the background when a host session
192
+ starts, `init` does it, and `catherd catalog sync [--force]` does it on demand) and
193
+ cached in `~/.local/share/catherd/slopalytics.json`; a fetch that fails keeps the last good index and `doctor`
194
+ names the error. A model and effort the index does not list is not offered: it is absent from the catalog and
195
+ `catherd catalog list`, and a profile that names one fails `profile validate`. `CATHERD_NO_SYNC=1` stops the automatic
196
+ refreshes.
197
+
198
+ A lane's difficulty picks a bar: a percentile of the intelligence of the shipped models' indexed pairs (copy the
199
+ 20th, build the 45th, logic the 60th, hard the 65th), and the lane starts on the cheapest rung that clears it
200
+ (the fastest under `objective speed`). Every kind of lane is held to the same bar. A ladder holds only rungs at
201
+ least as intelligent as its start, and rungs of equal intelligence on two quotas start on the one the run has used
202
+ least. A failover stand-in must be indexed, on another quota and at least as intelligent as the rung it replaces.
203
+ Routing gives the rung, its ladder and a one-line why (a lane's declared `Kind:`/`Difficulty:` wins over Jev, and
204
+ the why says when Jev disagreed, when no rung clears the bar, or when a tie decided); the run's `routes.jsonl`
205
+ keeps every role's decision with, for the rung it picks, its intelligence, the bar it was held to and catherd's own
206
+ runs on it ("12 lanes, 2 climbed, 1 partial"), which it shows but never routes on. A run starts only when every
207
+ enabled role has an indexed rung, and it keeps the index it started on: a later refresh never changes what it
208
+ dispatches on.
209
+
210
+ Jev's yes/no answers shape the difficulty it gives: a yes to an unexplained cause, a cross-service invariant or
211
+ shared state lifts a lane to at least logic, and a yes to purely mechanical work holds it at build. A profile can
212
+ move a bar's percentile (`catherd profile set bars.logic 55`), and so can one role (`catherd profile set
213
+ roles.worker.bars.hard 65`), one difficulty at a time. `catherd profile set maxEffort.codex:gpt-6.1-sol xhigh` caps a
214
+ model's effort for every route, climb and failover; the default profile ships Opus 5.5 and Sonnet 5.5 at high and
215
+ GPT-6.1 Sol at xhigh (`null` removes one). A coding worker never runs below medium effort, whatever the objective or
216
+ the budget. Every failover is a `failover` row in the run's `routes.jsonl`.
232
217
 
233
218
  Run data lives in `~/.local/share/catherd/`, config in `~/.config/catherd/` (both follow
234
219
  `XDG_*`).
235
220
 
221
+ ### A milestone per branch
222
+
223
+ Start a run with `base` (a branch on origin, such as `main`) and each milestone becomes its own branch and git
224
+ worktree, made from `origin/<base>` under the run's folder (`trees/<milestone>`) and set up once with the `Setup:`
225
+ line the plan carries under its `#` title. Every role of the milestone works in that tree. Milestones whose `After:`
226
+ milestones are merged run side by side, a new one starting only while the machine has the memory for it: it counts
227
+ what is free (on macOS through `kern.memorystatus_level`, since `os.freemem()` reads almost nothing there), less a
228
+ reserve, and starts one more only when a milestone's share still fits above a floor. The defaults are 2 GB of
229
+ reserve and 3 GB per milestone and floor; set them per profile with `catherd profile set limits.memory.reserveMb
230
+ <MB>` (or `perMilestoneMb`, `floorMb`). A landed milestone asks you to push its branch and merge its merge request;
231
+ answer `push` and catherd pushes the branch and prints the command that opens the MR. catherd never opens an MR and
232
+ never merges; once you answer that it is merged (or origin's base holds it), a clean worktree is removed. A run
233
+ without `base` works in the repo, one milestone at a time.
234
+
235
+ ### Coordinating several repositories
236
+
237
+ A workspace can be a plain directory containing independent Git repositories. Declare its members explicitly
238
+ in `catherd.workspace.json`; catherd does not scan neighboring folders:
239
+
240
+ ```json
241
+ {
242
+ "schema": 1,
243
+ "repos": { "api": "./api", "web": "./web" }
244
+ }
245
+ ```
246
+
247
+ Run `catherd workspace inspect /path/to/workspace --json` to check the resolved members, and
248
+ `catherd workspace status <id> --json` for a workspace run's children, dependencies and spending. The workspace
249
+ tools (`workspace_start`, `workspace_child_start`, …) are not on the session in 2.0: the daemon runs single-repo
250
+ runs, and a coordinated program is a later plan. The read-only commands, the stored runs and the `pause --workspace`
251
+ switch stay.
252
+
236
253
  ### Environment variables
237
254
 
238
- | Variable | What it does |
239
- | ----------------------------- | ----------------------------------------------------------------------------------------------------------- |
240
- | `TYPESAFE_API_KEY` | The Jev key, instead of the one `catherd init` saves |
241
- | `ARTIFICIAL_ANALYSIS_API_KEY` | An Artificial Analysis key for `catalog sync`, instead of the one `catherd init` saves |
242
- | `CATHERD_NO_SYNC` | `1`: no automatic sync of the public sources (at MCP server start and in `init`); `catalog sync` still runs |
243
- | `CURSOR_API_KEY` | Cursor's API key: logs `cursor-agent` in, and is what an isolated Cursor role runs on |
244
- | `XAI_API_KEY` | xAI's API key: logs `grok` in when no Grok login is active, and is what an isolated grok role runs on |
245
- | `GEMINI_API_KEY` | The Gemini API key an isolated Antigravity role runs on (agy reads it only with its Gemini API provider) |
246
- | `CATHERD_HOME` | Puts config and data under `$CATHERD_HOME/config` and `$CATHERD_HOME/data` instead of XDG |
247
- | `CATHERD_LOG` | Log level: `off`, `error`, `warn`, `info` (default) or `debug` (what `--verbose` sets) |
248
- | `CATHERD_LOCK_SLOTS` | `catherd lock`'s slot count when `--slots` is not given (before the profile's `lock.heavy`) |
249
- | `CATHERD_REDUCED_MOTION` | Any value: the dashboard's `--reduced-motion` |
250
- | `CATHERD_NO_KITTY` | Any value: turns off the kitty keyboard protocol in the dashboard, for terminals it breaks |
251
- | `CATHERD_CLAUDE_AGENTS_DIR` | Where catherd links its Claude agents (default: `$CLAUDE_CONFIG_DIR/agents`, else `~/.claude/agents`) |
252
- | `NO_COLOR` | Drops colour (the dashboard's and `--help`'s; piped `--help` has none either) |
253
-
254
- For development only: `CATHERD_STORY=1` opens the dashboard's storybook, and `CATHERD_LIVE=1` enables the live
255
- tests (CONTRIBUTING.md has the rest).
256
-
257
- ### The dashboard
258
-
259
- `catherd` opens three tabs: **1 Status** (every check with its fix; `y` copies the fix, `r` checks again),
260
- **2 Profiles** (one tree per profile: roles with their access, default rung, models and efforts, then routing,
261
- harness, budget, failover, timeouts and notify) and **3 Runs** (the host sessions that drove your runs, newest
262
- first; a session opens on its runs, their milestones and every role with its rung, status, time and last event, live
263
- ones first; a milestone opens on its digest (what landed, lanes and climbs, reviewer and verifier, tokens); a role
264
- opens on its brief, reply and record; the open screen redraws as run files change; `esc` goes back,
265
- `p` pauses). `catherd watch` opens it on Runs.
266
-
267
- - `ctrl+p` lists every command with its key and CLI twin; `?` lists the keys that work where you are.
268
- - `ctrl+x` is the leader: `ctrl+x 1`–`3` tabs, `ctrl+x n` new profile, `ctrl+x l` profiles, `ctrl+x u` and
269
- `ctrl+x r` undo and redo, `ctrl+x q` quit.
270
- - Lists: arrows or `j`/`k`, `pgup`/`pgdn`, `home`/`g`, `end`/`G`, `/` to filter; `space` ticks, `enter`
271
- changes or opens, `→`/`←` expand and collapse.
272
- - Edits are staged: nothing is written until `ctrl+s` shows the diff and you choose Save or Save & make active.
273
- `enter` never saves.
274
- - Inside a repo bound to a profile, the dashboard opens on that profile, and making a profile active binds the
275
- repo to it (as `catherd profile use <name> --repo`).
276
- - `esc` backs out one level and never quits. `q` quits, asking first if something is unsaved; `ctrl+c` quits
277
- when nothing is, and pressed twice within 1.5 s discards and exits 130.
278
- - Deleting a profile or cancelling a live role takes `ctrl+d` twice.
279
- - `--plain` draws ASCII without colour, `NO_COLOR` drops the colour, `--reduced-motion` stops the spinner.
280
- - Rebind a key in `~/.config/catherd/config.json`: `"keybinds": { "profile.save": "ctrl+w", "app.help": "none" }`
281
- (the palette shows each command by title; the ids are listed in
282
- [`src/entry/tui/commands.ts`](src/entry/tui/commands.ts)).
255
+ | Variable | What it does |
256
+ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
257
+ | `TYPESAFE_API_KEY` | The Jev key, instead of the one `catherd init` saves |
258
+ | `CATHERD_NO_SYNC` | `1`: no automatic fetch of the Slopalytics index (at MCP server start, in `init` and at run start); `catalog sync` still runs |
259
+ | `CURSOR_API_KEY` | Cursor's API key: logs `cursor-agent` in, and is what an isolated Cursor role runs on |
260
+ | `CATHERD_HOME` | Puts config and data under `$CATHERD_HOME/config` and `$CATHERD_HOME/data` instead of XDG |
261
+ | `CATHERD_LOG` | Log level: `off`, `error`, `warn`, `info` (default) or `debug` (what `--verbose` sets) |
262
+ | `CATHERD_LOCK_SLOTS` | `catherd lock`'s slot count when `--slots` is not given (before the profile's `lock.heavy`) |
263
+ | `CATHERD_CLAUDE_AGENTS_DIR` | Where catherd links its Claude agents (default: `$CLAUDE_CONFIG_DIR/agents`, else `~/.claude/agents`) |
264
+ | `NO_COLOR` | Drops colour (`--help`'s; piped `--help` has none either) |
265
+
266
+ For development only: `CATHERD_LIVE=1` enables the live tests (CONTRIBUTING.md has the rest). `CATHERD_PANEL_DIST`
267
+ points `catherd panel` at another build of the panel than the one the package ships.
268
+
269
+ ### The panel
270
+
271
+ `catherd` (or `catherd panel`) serves the panel on `127.0.0.1` (port 4317; `--port 0` takes any free one) and opens
272
+ your browser on it. It prints `catherd panel: http://127.0.0.1:<port>/login#token=<token>` and keeps running until
273
+ Ctrl-C; `--no-open` prints the link without opening it. The token is new each start and travels in the link's
274
+ fragment, so no request or log carries it; the login page reads it, clears it from the address bar and signs you
275
+ in. A restart signs every tab out. The panel answers only to `127.0.0.1` and `localhost`, and refuses a write or a
276
+ socket from another origin.
277
+
278
+ - **Setup**: the catalog and each backend with doctor's status and fix, the profile this repo runs on with its
279
+ errors and warnings, and each role's rungs, picked from the indexed Slopalytics pairs and saved through the
280
+ profile service (other settings stay with `catherd profile set`).
281
+ - **Runs**: every run, and for each one its milestones, live roles, parked questions, quota holds and its timeline,
282
+ newest first, live over the run's `events.jsonl`. **Cancel run** stops a live run; a run starts from your
283
+ session, never from the panel.
284
+ - **Questions**: each parked unit with its question and an answer box; the unit runs again once you send it.
285
+
286
+ `catherd watch` prints the live runs as text.
283
287
 
284
288
  ## Upgrading
285
289
 
290
+ From 1.5: `bun add -g catherd-cli@latest && catherd doctor`, then `claude plugin marketplace update catherd && claude
291
+ plugin update catherd@catherd` and a new session. A run started on 1.5 finishes on 1.5, so keep it installed until
292
+ those end; new runs go through the daemon. The session has six tools (`run_start`, `status`, `answer`, `cancel`,
293
+ `result`, `profile`), every role runs headless, and a parked question goes to `notify.url`. `catherd` opens the
294
+ browser panel in place of the TUI. The catalog reads one source, the Slopalytics index, so a profile rung it does
295
+ not list must be picked again (`catherd catalog list --role <role>`). Grok Build and Antigravity are gone.
296
+ [MIGRATION.md](MIGRATION.md), "From 1.5 to 2.0", has the rest.
297
+
298
+ From 1.4: `bun add -g catherd-cli@latest && catherd doctor`, update the plugin and start a new session; `doctor`
299
+ names the Claude agent links to refresh. There is still no `wait` tool (it never shipped and is gone): end the
300
+ turn, and on Codex run the coordinator inside `tmux`. A role calling a coordinator tool now gets `E_ROLE_SCOPE`,
301
+ knowledge is keyed by the git origin, and `route` returns seven keys with the rest in `routes.jsonl`.
302
+ [MIGRATION.md](MIGRATION.md), "From 1.4 to 1.5", has the rest.
303
+
286
304
  From 1.0: install 1.1 and run its `init` (`bun add -g catherd-cli@latest && catherd init`, or
287
305
  `bunx catherd-cli@latest init`; 1.0's own `catherd init` does not upgrade), update the plugin
288
306
  (`claude plugin marketplace update catherd && claude plugin update catherd@catherd`) and start a new Claude Code
@@ -303,21 +321,22 @@ Code session. The details are in [MIGRATION.md](MIGRATION.md).
303
321
 
304
322
  | Where | What |
305
323
  | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
306
- | [MIGRATION.md](MIGRATION.md) | Upgrading from 1.0 and from 0.x |
324
+ | [MIGRATION.md](MIGRATION.md) | Upgrading from each release to the next, and from 0.x |
307
325
  | [CHANGELOG.md](CHANGELOG.md) | Releases |
308
326
  | [CONTRIBUTING.md](CONTRIBUTING.md) | Development setup, the checks, commits, changesets, live tests |
309
327
  | [SECURITY.md](SECURITY.md) | Reporting a vulnerability; what catherd stores and how |
328
+ | [`docs/specs/2026-10-12-catherd-2.0-design.md`](docs/specs/2026-10-12-catherd-2.0-design.md) | The 2.0 design (binding where it differs from the earlier ones) |
329
+ | [`docs/specs/2026-10-02-catherd-1.5-design.md`](docs/specs/2026-10-02-catherd-1.5-design.md) | The 1.5 design (binding where it differs from the earlier ones) |
310
330
  | [`docs/specs/2026-09-28-catherd-1.1-design.md`](docs/specs/2026-09-28-catherd-1.1-design.md) | The 1.1 design (binding; builds on 1.0's) |
311
331
  | [`docs/specs/2026-09-25-catherd-1.0-design.md`](docs/specs/2026-09-25-catherd-1.0-design.md) | The 1.0 design |
312
332
  | [`docs/dev/`](docs/dev/) | Maintainer docs: live verification, manual tests, dependencies, ideas |
313
333
  | [`docs/dev/live-verification.md`](docs/dev/live-verification.md) | What CI cannot run: live tests, fixture capture, the Codex sandbox |
314
- | [`docs/tui-frames.md`](docs/tui-frames.md) | Every dashboard screen as text (generated, checked in CI) |
315
334
  | [`docs/plans/`](docs/plans/), [`docs/handoff/`](docs/handoff/), [`docs/research/`](docs/research/) | How 1.0 was designed and built: plans, reviews, research |
316
335
  | [`docs/archive/0.x/`](docs/archive/0.x/) | The 0.x design and plans, for history |
317
336
 
318
337
  ## Contributing
319
338
 
320
- See [CONTRIBUTING.md](CONTRIBUTING.md). This feature's checks and acceptance are local, with release held; do not request or re-enable CI for it. The documented historical CI matrix uses Linux/macOS and Bun 1.4.0/latest;
339
+ See [CONTRIBUTING.md](CONTRIBUTING.md). CI runs the checks on every pull request on Linux and macOS, with Bun 1.4.0 and the latest Bun (the full matrix nightly);
321
340
  live verification is in [`docs/dev/live-verification.md`](docs/dev/live-verification.md). Report security issues
322
341
  privately, as [SECURITY.md](SECURITY.md) describes. Everyone taking part follows the
323
342
  [Code of Conduct](CODE_OF_CONDUCT.md).