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.
- package/README.md +188 -169
- package/THIRD_PARTY_NOTICES.md +217 -35
- package/catalog/jev.json +27 -1
- package/catalog/models.json +56 -239
- package/package.json +6 -8
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/bin/catherd-mcp +1 -1
- package/plugin/commands/catherd.md +2 -2
- package/plugin/skills/catherd/SKILL.md +97 -356
- package/plugin/skills/catherd-setup/SKILL.md +21 -20
- package/src/adapters/all.ts +0 -4
- package/src/adapters/backend.ts +19 -4
- package/src/adapters/claude-code/index.ts +126 -14
- package/src/adapters/codex/events.ts +10 -0
- package/src/adapters/codex/index.ts +17 -5
- package/src/adapters/cursor/home.ts +1 -1
- package/src/adapters/cursor/index.ts +10 -4
- package/src/adapters/opencode/index.ts +38 -1
- package/src/cli.ts +27 -27
- package/src/domain/agents.ts +3 -1
- package/src/domain/bars.ts +33 -107
- package/src/domain/blocked.ts +72 -0
- package/src/domain/branch.ts +51 -0
- package/src/domain/brief.ts +106 -0
- package/src/domain/catalog.ts +69 -313
- package/src/domain/changes.ts +23 -1
- package/src/domain/cost.ts +19 -29
- package/src/domain/errors.ts +6 -2
- package/src/domain/fail-lines.ts +26 -0
- package/src/domain/failover.ts +37 -75
- package/src/domain/findings.ts +47 -0
- package/src/domain/gate-brief.ts +53 -0
- package/src/domain/hints.ts +13 -2
- package/src/domain/ids.ts +13 -2
- package/src/domain/jev.ts +47 -2
- package/src/domain/judge.ts +124 -0
- package/src/domain/lane.ts +118 -3
- package/src/domain/milestone-memory.ts +53 -0
- package/src/domain/notice.ts +32 -8
- package/src/domain/notify.ts +32 -0
- package/src/domain/plan-doc.ts +198 -0
- package/src/domain/plan-lint.ts +141 -0
- package/src/domain/profile-rules.ts +175 -138
- package/src/domain/profile.ts +140 -63
- package/src/domain/record.ts +68 -3
- package/src/domain/reply.ts +29 -0
- package/src/domain/role-prompts.ts +182 -56
- package/src/domain/role-scope.ts +76 -0
- package/src/domain/role-tools.ts +34 -0
- package/src/domain/roles.ts +2 -0
- package/src/domain/route.ts +90 -0
- package/src/domain/rules.ts +33 -0
- package/src/domain/run-events.ts +298 -0
- package/src/domain/run-machine.ts +668 -0
- package/src/domain/run-state.ts +1310 -0
- package/src/domain/scorecard.ts +197 -0
- package/src/domain/select.ts +229 -72
- package/src/domain/slopalytics.ts +72 -0
- package/src/domain/state.ts +5 -0
- package/src/domain/util.ts +22 -0
- package/src/domain/workspace.ts +130 -0
- package/src/entry/answer-command.ts +39 -0
- package/src/entry/catalog-command.ts +24 -165
- package/src/entry/check-bin.ts +17 -0
- package/src/entry/cli-kit.ts +18 -2
- package/src/entry/daemon-bin.ts +22 -0
- package/src/entry/deps.ts +2 -0
- package/src/entry/doctor-command.ts +20 -2
- package/src/entry/glyphs.ts +15 -2
- package/src/entry/host-arg.ts +28 -0
- package/src/entry/init-command.ts +20 -69
- package/src/entry/knowledge-command.ts +121 -5
- package/src/entry/lock-command.ts +103 -8
- package/src/entry/mcp/handshake.ts +6 -2
- package/src/entry/mcp/role-bin.ts +20 -0
- package/src/entry/mcp/role-server.ts +134 -0
- package/src/entry/mcp/server.ts +85 -21
- package/src/entry/mcp/session-tools.ts +149 -0
- package/src/entry/panel/openapi.ts +189 -0
- package/src/entry/panel/server.ts +410 -0
- package/src/entry/panel-command.ts +68 -0
- package/src/entry/pause-command.ts +67 -0
- package/src/entry/profile-command.ts +33 -18
- package/src/entry/role-cli-command.ts +159 -0
- package/src/entry/runs-command.ts +81 -27
- package/src/entry/scorecard-command.ts +187 -0
- package/src/entry/supervise-bin.ts +1 -1
- package/src/entry/supervise-command.ts +30 -3
- package/src/entry/workspace-command.ts +44 -0
- package/src/infra/boot-lock.ts +25 -0
- package/src/infra/delivery.ts +3 -0
- package/src/infra/dispatch-dir.ts +2 -0
- package/src/infra/env.ts +11 -3
- package/src/infra/git.ts +70 -0
- package/src/infra/heavy-lock.ts +133 -6
- package/src/infra/host-probe.ts +16 -0
- package/src/infra/launch.ts +63 -7
- package/src/infra/lock-activity.ts +88 -0
- package/src/infra/login-env.ts +48 -0
- package/src/infra/memory.ts +45 -0
- package/src/infra/ntfy.ts +40 -0
- package/src/infra/open-url.ts +42 -0
- package/src/infra/paths.ts +37 -2
- package/src/infra/role-mcp.ts +69 -0
- package/src/infra/slopalytics.ts +30 -0
- package/src/infra/store.ts +6 -1
- package/src/infra/supervisor.ts +107 -16
- package/src/services/admission.ts +133 -31
- package/src/services/backends.ts +4 -6
- package/src/services/budget.ts +26 -6
- package/src/services/capture.ts +1 -22
- package/src/services/catalog-service.ts +155 -254
- package/src/services/credentials.ts +15 -26
- package/src/services/daemon.ts +181 -0
- package/src/services/dispatch-service.ts +209 -17
- package/src/services/dispatches.ts +30 -2
- package/src/services/doctor-access.ts +8 -3
- package/src/services/doctor-backends.ts +1 -1
- package/src/services/doctor-checks.ts +47 -0
- package/src/services/doctor-docker.ts +221 -0
- package/src/services/doctor-role-mcp.ts +65 -0
- package/src/services/doctor.ts +72 -15
- package/src/services/end-push.ts +157 -0
- package/src/services/failover-rungs.ts +109 -0
- package/src/services/finalize.ts +24 -2
- package/src/services/gate-env.ts +217 -0
- package/src/services/gate-service.ts +231 -45
- package/src/services/global-install.ts +46 -13
- package/src/services/jev-service.ts +2 -4
- package/src/services/lane-edit.ts +154 -0
- package/src/services/lane-service.ts +291 -55
- package/src/services/milestone-check.ts +433 -0
- package/src/services/milestone-tree.ts +170 -0
- package/src/services/milestones.ts +167 -29
- package/src/services/notifier.ts +124 -4
- package/src/services/notify-service.ts +26 -0
- package/src/services/orchestrator-wait.ts +82 -0
- package/src/services/panel-setup.ts +116 -0
- package/src/services/pause.ts +161 -0
- package/src/services/peek.ts +79 -17
- package/src/services/plan-input.ts +151 -0
- package/src/services/ports.ts +60 -5
- package/src/services/preflight.ts +232 -24
- package/src/services/profile-service.ts +31 -3
- package/src/services/profile-store.ts +18 -6
- package/src/services/protocol.ts +123 -25
- package/src/services/provenance.ts +34 -89
- package/src/services/questions.ts +24 -0
- package/src/services/reconcile.ts +33 -1
- package/src/services/reentry.ts +7 -6
- package/src/services/role-access.ts +27 -0
- package/src/services/routing-service.ts +161 -42
- package/src/services/run-briefs.ts +477 -0
- package/src/services/run-client.ts +217 -0
- package/src/services/run-effects.ts +837 -0
- package/src/services/run-events-store.ts +174 -0
- package/src/services/run-evidence.ts +1 -1
- package/src/services/run-pin.ts +125 -0
- package/src/services/run-read.ts +221 -0
- package/src/services/run-report.ts +176 -0
- package/src/services/run-service.ts +204 -23
- package/src/services/run-store.ts +159 -18
- package/src/services/scorecard-metrics.ts +86 -0
- package/src/services/scorecard.ts +382 -0
- package/src/services/scratch.ts +60 -0
- package/src/services/sessions.ts +3 -1
- package/src/services/state.ts +21 -0
- package/src/services/summary.ts +76 -12
- package/src/services/tree-path.ts +27 -0
- package/src/services/verifier-brief.ts +23 -0
- package/src/services/verifier-step.ts +48 -0
- package/src/services/workspace-admission.ts +259 -0
- package/src/services/workspace-service.ts +259 -0
- package/src/services/workspace-store.ts +95 -0
- package/web/dist/assets/Brand-PKlUX5TE.js +1 -0
- package/web/dist/assets/Brand-PKlUX5TE.js.br +0 -0
- package/web/dist/assets/Brand-PKlUX5TE.js.gz +0 -0
- package/web/dist/assets/Modal-Dxc5so53.js +1 -0
- package/web/dist/assets/Modal-Dxc5so53.js.br +0 -0
- package/web/dist/assets/Modal-Dxc5so53.js.gz +0 -0
- package/web/dist/assets/Pressable-C8-T6Ed_.js +1 -0
- package/web/dist/assets/StatusChip-B5xfI_Mn.js +153 -0
- package/web/dist/assets/StatusChip-B5xfI_Mn.js.br +0 -0
- package/web/dist/assets/StatusChip-B5xfI_Mn.js.gz +0 -0
- package/web/dist/assets/_app-Ea5cpyKe.js +1 -0
- package/web/dist/assets/_app-Ea5cpyKe.js.br +0 -0
- package/web/dist/assets/_app-Ea5cpyKe.js.gz +0 -0
- package/web/dist/assets/_runId-pTG0fXVo.js +1 -0
- package/web/dist/assets/_runId-pTG0fXVo.js.br +0 -0
- package/web/dist/assets/_runId-pTG0fXVo.js.gz +0 -0
- package/web/dist/assets/drawer-Du3cdlok.js +1 -0
- package/web/dist/assets/drawer-Du3cdlok.js.br +0 -0
- package/web/dist/assets/drawer-Du3cdlok.js.gz +0 -0
- package/web/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/web/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/web/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/web/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/web/dist/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/web/dist/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/web/dist/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/web/dist/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/web/dist/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/web/dist/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/web/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/web/dist/assets/index-B6GiwDkh.js +11 -0
- package/web/dist/assets/index-B6GiwDkh.js.br +0 -0
- package/web/dist/assets/index-B6GiwDkh.js.gz +0 -0
- package/web/dist/assets/index-C5IbylvM.css +2 -0
- package/web/dist/assets/index-C5IbylvM.css.br +0 -0
- package/web/dist/assets/index-C5IbylvM.css.gz +0 -0
- package/web/dist/assets/label-DFSYBc62.js +1 -0
- package/web/dist/assets/label-DFSYBc62.js.br +0 -0
- package/web/dist/assets/label-DFSYBc62.js.gz +0 -0
- package/web/dist/assets/link-D8EcKZUt.js +1 -0
- package/web/dist/assets/link-D8EcKZUt.js.br +0 -0
- package/web/dist/assets/link-D8EcKZUt.js.gz +0 -0
- package/web/dist/assets/login-DaN5HPPW.js +1 -0
- package/web/dist/assets/login-DaN5HPPW.js.br +0 -0
- package/web/dist/assets/login-DaN5HPPW.js.gz +0 -0
- package/web/dist/assets/query-Cu--ccT3.js +1 -0
- package/web/dist/assets/questions-shoO9OVj.js +1 -0
- package/web/dist/assets/questions-shoO9OVj.js.br +0 -0
- package/web/dist/assets/questions-shoO9OVj.js.gz +0 -0
- package/web/dist/assets/react-query.gen-Bu2yV-qJ.js +12 -0
- package/web/dist/assets/react-query.gen-Bu2yV-qJ.js.br +0 -0
- package/web/dist/assets/react-query.gen-Bu2yV-qJ.js.gz +0 -0
- package/web/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/web/dist/assets/run-status-C0DRuV7U.js +1 -0
- package/web/dist/assets/runs-C3rg2zZc.js +1 -0
- package/web/dist/assets/runs-C3rg2zZc.js.br +0 -0
- package/web/dist/assets/runs-C3rg2zZc.js.gz +0 -0
- package/web/dist/assets/setup-5I4Vl9fR.js +1 -0
- package/web/dist/assets/setup-5I4Vl9fR.js.br +0 -0
- package/web/dist/assets/setup-5I4Vl9fR.js.gz +0 -0
- package/web/dist/assets/table-BOxXhqS4.js +1 -0
- package/web/dist/assets/table-BOxXhqS4.js.br +0 -0
- package/web/dist/assets/table-BOxXhqS4.js.gz +0 -0
- package/web/dist/assets/textfield-BzRFkxBF.js +1 -0
- package/web/dist/assets/textfield-BzRFkxBF.js.br +0 -0
- package/web/dist/assets/textfield-BzRFkxBF.js.gz +0 -0
- package/web/dist/assets/time--9kSQbbp.js +1 -0
- package/web/dist/assets/use-css-variable-CpnN9WtA.js +5 -0
- package/web/dist/assets/use-css-variable-CpnN9WtA.js.br +0 -0
- package/web/dist/assets/use-css-variable-CpnN9WtA.js.gz +0 -0
- package/web/dist/assets/useMutation-CVPKlR34.js +1 -0
- package/web/dist/assets/useMutation-CVPKlR34.js.br +0 -0
- package/web/dist/assets/useMutation-CVPKlR34.js.gz +0 -0
- package/web/dist/index.html +15 -0
- package/catalog/ATTRIBUTION.md +0 -36
- package/catalog/scores.json +0 -3202
- package/catalog/sources.json +0 -97
- package/src/adapters/antigravity/events.ts +0 -131
- package/src/adapters/antigravity/home.ts +0 -46
- package/src/adapters/antigravity/index.ts +0 -320
- package/src/adapters/antigravity/models.ts +0 -37
- package/src/adapters/grok/events.ts +0 -112
- package/src/adapters/grok/home.ts +0 -132
- package/src/adapters/grok/index.ts +0 -339
- package/src/adapters/grok/models.ts +0 -48
- package/src/domain/calibration.ts +0 -125
- package/src/domain/sources.ts +0 -144
- package/src/entry/mcp/dispatch-tools.ts +0 -52
- package/src/entry/mcp/lane-tools.ts +0 -84
- package/src/entry/mcp/protocol-tools.ts +0 -57
- package/src/entry/mcp/run-tools.ts +0 -148
- package/src/entry/mcp/setup-tools.ts +0 -108
- package/src/entry/tui/commands.ts +0 -563
- package/src/entry/tui/effects.ts +0 -381
- package/src/entry/tui/fixtures.ts +0 -637
- package/src/entry/tui/profile-edits.ts +0 -146
- package/src/entry/tui/profile-tree.ts +0 -429
- package/src/entry/tui/providers/app.tsx +0 -162
- package/src/entry/tui/providers/boundary.tsx +0 -57
- package/src/entry/tui/providers/data.tsx +0 -160
- package/src/entry/tui/providers/keymap.tsx +0 -166
- package/src/entry/tui/providers/root.tsx +0 -45
- package/src/entry/tui/providers/theme.tsx +0 -17
- package/src/entry/tui/providers/toast.tsx +0 -77
- package/src/entry/tui/run.tsx +0 -114
- package/src/entry/tui/state.ts +0 -373
- package/src/entry/tui/stories.ts +0 -114
- package/src/entry/tui/text.ts +0 -130
- package/src/entry/tui/theme.ts +0 -140
- package/src/entry/tui/views/app.tsx +0 -208
- package/src/entry/tui/views/dialogs.tsx +0 -41
- package/src/entry/tui/views/profile-actions.ts +0 -331
- package/src/entry/tui/views/profiles.tsx +0 -520
- package/src/entry/tui/views/runs.tsx +0 -573
- package/src/entry/tui/views/save-dialog.tsx +0 -340
- package/src/entry/tui/views/status.tsx +0 -209
- package/src/entry/tui/widgets/chrome.tsx +0 -114
- package/src/entry/tui/widgets/dialog-confirm.tsx +0 -58
- package/src/entry/tui/widgets/dialog-prompt.tsx +0 -52
- package/src/entry/tui/widgets/dialog-select.tsx +0 -212
- package/src/entry/tui/widgets/dialog.tsx +0 -68
- package/src/entry/tui/widgets/line.tsx +0 -92
- package/src/entry/tui/widgets/list.tsx +0 -197
- package/src/entry/tui/widgets/spinner.tsx +0 -49
- package/src/entry/tui/widgets/toast.tsx +0 -62
- package/src/infra/sources/arena.ts +0 -87
- package/src/infra/sources/artificial-analysis.ts +0 -112
- package/src/infra/sources/cache.ts +0 -124
- package/src/infra/sources/csv.ts +0 -38
- package/src/infra/sources/epoch.ts +0 -82
- package/src/infra/sources/http.ts +0 -75
- package/src/infra/sources/litellm.ts +0 -58
- package/src/infra/sources/models-dev.ts +0 -59
- package/src/infra/sources/openrouter-endpoints.ts +0 -52
- package/src/infra/sources/openrouter-models.ts +0 -60
- package/src/infra/sources/rows.ts +0 -38
- package/src/infra/sources/vectara.ts +0 -69
- package/src/infra/sources/zip.ts +0 -48
- package/src/services/catalog-refresh.ts +0 -201
- package/src/services/doctor-sources.ts +0 -76
- package/src/services/runs-page.ts +0 -255
- package/src/services/source-derive.ts +0 -374
- package/src/services/source-sync.ts +0 -305
- package/src/services/standins.ts +0 -204
- 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
|
|
10
|
-
|
|
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
|
-
- **
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
MCP server never loses a run.
|
|
20
|
-
- **
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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:
|
|
45
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
126
|
-
|
|
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
|
|
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
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
|
189
|
-
|
|
|
190
|
-
| `catherd`
|
|
191
|
-
| `catherd init [--host codex\|claude-code\|auto] [--no-input] [--no-global] [--profile <p>]`
|
|
192
|
-
| `catherd doctor [--host codex\|claude-code\|auto] [--test-push] [--json]`
|
|
193
|
-
| `catherd profile list\|show\|use [--repo]\|new [--from <p>]\|copy\|rm\|diff\|validate`
|
|
194
|
-
| `catherd profile use --repo --clear`
|
|
195
|
-
| `catherd profile set <path> <value> [--profile <p>]`
|
|
196
|
-
| `catherd status [run]`, `catherd watch [--once] [--interval <s>]`
|
|
197
|
-
| `catherd runs list [--repo <path>]\|show <id> [--debug [--name <n>]]\|cancel <id> <name>`
|
|
198
|
-
| `catherd
|
|
199
|
-
| `catherd catalog
|
|
200
|
-
| `catherd catalog
|
|
201
|
-
| `catherd
|
|
202
|
-
| `catherd knowledge
|
|
203
|
-
| `catherd
|
|
204
|
-
| `catherd
|
|
205
|
-
| `catherd
|
|
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.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
it shows but never routes on. A
|
|
230
|
-
|
|
231
|
-
|
|
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
|
|
239
|
-
|
|
|
240
|
-
| `TYPESAFE_API_KEY`
|
|
241
|
-
| `
|
|
242
|
-
| `
|
|
243
|
-
| `
|
|
244
|
-
| `
|
|
245
|
-
| `
|
|
246
|
-
| `
|
|
247
|
-
| `
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
|
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).
|
|
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).
|