cohorte 3.0.0-dev.8 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1637 -0
- package/README.md +322 -62
- package/bin/cli.js +213 -0
- package/bin/report.js +141 -0
- package/core/agents/cohorte-profile-reader.md +40 -0
- package/core/agents/cohorte-release.md +61 -0
- package/core/agents/cohorte-review.md +200 -0
- package/core/agents/implementer.template.md +154 -0
- package/core/commands/cohorte-align-ds.md +33 -0
- package/core/commands/cohorte-audit.md +74 -0
- package/core/commands/cohorte-brainstorm.md +73 -0
- package/core/commands/cohorte-build.md +248 -0
- package/core/commands/cohorte-doctor.md +135 -0
- package/core/commands/cohorte-fix.md +80 -0
- package/core/commands/cohorte-fleet.md +111 -0
- package/core/commands/cohorte-init-pipeline.md +30 -0
- package/core/commands/cohorte-intake.md +92 -0
- package/core/commands/cohorte-patch.md +118 -0
- package/core/commands/cohorte-refactor.md +122 -0
- package/core/commands/cohorte-retro.md +85 -0
- package/core/commands/cohorte-revert.md +104 -0
- package/core/commands/cohorte-review.md +239 -0
- package/core/commands/cohorte-ship.md +167 -0
- package/core/commands/cohorte-spec.md +114 -0
- package/core/commands/cohorte-update-pipeline.md +119 -0
- package/core/commands/cohorte-verify.md +106 -0
- package/core/hooks/gate.py +3236 -0
- package/core/templates/agent-handoff.md +34 -0
- package/core/templates/brainstorm-return.md +42 -0
- package/core/templates/decisions.template.md +42 -0
- package/core/templates/design-brief.md +37 -0
- package/core/templates/patch.template.md +95 -0
- package/core/templates/pr-body.md +25 -0
- package/core/templates/review-feedback.md +46 -0
- package/core/templates/spec.template.md +109 -0
- package/core/templates/steps/init-pipeline/01-detect-stack.md +53 -0
- package/core/templates/steps/init-pipeline/02-interview-gaps.md +78 -0
- package/core/templates/steps/init-pipeline/03-draft-profile.md +10 -0
- package/core/templates/steps/init-pipeline/04-write-render.md +95 -0
- package/core/templates/steps/init-pipeline/05-report.md +11 -0
- package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
- package/core/workflows/audit.js +311 -0
- package/core/workflows/loop.js +692 -0
- package/core/workflows/refactor.js +398 -0
- package/core/workflows/review.js +505 -0
- package/install.ps1 +72 -0
- package/install.sh +69 -0
- package/lib/doctor.js +506 -0
- package/lib/install.js +386 -0
- package/lib/project.js +359 -0
- package/lib/render.js +121 -0
- package/lib/versions.js +145 -0
- package/lib/yaml.js +183 -0
- package/package.json +36 -17
- package/profile/PIPELINE.template.md +288 -0
- package/profile/SCHEMA.md +30 -0
- package/profile/cohorte.config.template.yaml +43 -0
- package/profile/schema/dead-agents.md +29 -0
- package/profile/schema/decisions.md +23 -0
- package/profile/schema/deferred.md +22 -0
- package/profile/schema/feature-diff.md +20 -0
- package/profile/schema/kanban.md +95 -0
- package/profile/schema/metrics.md +23 -0
- package/profile/schema/output-discipline.md +21 -0
- package/profile/schema/preflight.md +81 -0
- package/profile/schema/profile-block.md +103 -0
- package/profile/schema/project-kinds.md +89 -0
- package/profile/schema/readiness.md +17 -0
- package/profile/schema/reconcile.md +64 -0
- package/profile/schema/release-notes.md +29 -0
- package/profile/schema/rendering.md +48 -0
- package/profile/schema/retrieval.md +58 -0
- package/profile/schema/spec-status.md +79 -0
- package/profile/schema/specialization.md +41 -0
- package/profile/schema/verify.md +115 -0
- package/profile/schema/workflows.md +78 -0
- package/scripts/feature-diff.sh +118 -0
- package/scripts/kanban-move.sh +349 -0
- package/scripts/metrics/collect.mjs +542 -0
- package/scripts/metrics/prices.json +42 -0
- package/scripts/new-feature.sh.template +122 -0
- package/scripts/preflight.sh +114 -0
- package/scripts/remove-feature.sh.template +56 -0
- package/scripts/verify-run.sh +509 -0
- package/assets/manifest.json +0 -203
- package/assets/migrations/config/README.md +0 -12
- package/assets/migrations/state/0001_init.sql +0 -154
- package/assets/prompts/README.md +0 -11
- package/assets/prompts/agents/brainstormer.md +0 -3
- package/assets/prompts/agents/fixer.md +0 -7
- package/assets/prompts/agents/implementer.md +0 -12
- package/assets/prompts/agents/reviewer.md +0 -8
- package/assets/prompts/agents/security-reviewer.md +0 -7
- package/assets/prompts/agents/spec-author.md +0 -3
- package/assets/prompts/phases/build.md +0 -5
- package/assets/prompts/phases/review.md +0 -5
- package/assets/prompts/phases/test.md +0 -5
- package/assets/prompts/system.md +0 -11
- package/assets/schemas/agent-output.schema.json +0 -225
- package/assets/schemas/auth-status.schema.json +0 -87
- package/assets/schemas/command-result.schema.json +0 -192
- package/assets/schemas/commands.schema.json +0 -959
- package/assets/schemas/config.schema.json +0 -2281
- package/assets/schemas/doctor-report.schema.json +0 -104
- package/assets/schemas/events.schema.json +0 -8514
- package/assets/schemas/fake-script.schema.json +0 -549
- package/assets/schemas/inspect.schema.json +0 -3133
- package/assets/schemas/manifest.schema.json +0 -79
- package/assets/schemas/ownership.schema.json +0 -52
- package/assets/schemas/policy-verdict.schema.json +0 -282
- package/assets/schemas/project-model.schema.json +0 -783
- package/assets/schemas/project-status.schema.json +0 -217
- package/assets/schemas/reconcile-plan.schema.json +0 -154
- package/assets/schemas/run-diff.schema.json +0 -177
- package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
- package/assets/schemas/run-state.schema.json +0 -1755
- package/assets/schemas/runtime-capabilities.schema.json +0 -1545
- package/assets/schemas/sandbox-capabilities.schema.json +0 -116
- package/assets/schemas/skill.schema.json +0 -87
- package/assets/schemas/spec.schema.json +0 -202
- package/assets/schemas/tool-catalogue.schema.json +0 -655
- package/assets/schemas/trust-record.schema.json +0 -38
- package/assets/skills/README.md +0 -9
- package/assets/skills/inspect-surface.md +0 -4
- package/dist/agent-host.mjs +0 -2187
- package/dist/agent-host.mjs.map +0 -1
- package/dist/bundle-manifest.json +0 -128
- package/dist/chunks/__host-DgGPyco9.mjs +0 -18
- package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
- package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
- package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
- package/dist/chunks/approve-Cv135UqI.mjs +0 -19
- package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
- package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
- package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
- package/dist/chunks/auth-BT5oVp76.mjs +0 -132
- package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
- package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
- package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
- package/dist/chunks/brainstorm-SJwOIEif.mjs +0 -123
- package/dist/chunks/brainstorm-SJwOIEif.mjs.map +0 -1
- package/dist/chunks/build-C_-mbZfD.mjs +0 -19
- package/dist/chunks/build-C_-mbZfD.mjs.map +0 -1
- package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
- package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
- package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
- package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
- package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
- package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
- package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
- package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
- package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
- package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
- package/dist/chunks/contract-DjssDPpS.mjs +0 -335
- package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
- package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
- package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
- package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
- package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
- package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
- package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
- package/dist/chunks/discover-BZPolSZG.mjs +0 -21
- package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
- package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
- package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
- package/dist/chunks/fix-C9roGiQz.mjs +0 -82
- package/dist/chunks/fix-C9roGiQz.mjs.map +0 -1
- package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
- package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
- package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
- package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
- package/dist/chunks/init--FxxkrcT.mjs +0 -63
- package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
- package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
- package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
- package/dist/chunks/intake-C1pesxCJ.mjs +0 -12
- package/dist/chunks/intake-C1pesxCJ.mjs.map +0 -1
- package/dist/chunks/logs-Giq5sUau.mjs +0 -25
- package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
- package/dist/chunks/loop-BWsUpyus.mjs +0 -212
- package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
- package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
- package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
- package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
- package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
- package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
- package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
- package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
- package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
- package/dist/chunks/pause-BASBfKLO.mjs +0 -16
- package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
- package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
- package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
- package/dist/chunks/providers-Dx78imKj.mjs +0 -19
- package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
- package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
- package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
- package/dist/chunks/refactor-DV3RfGjk.mjs +0 -153
- package/dist/chunks/refactor-DV3RfGjk.mjs.map +0 -1
- package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
- package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
- package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
- package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
- package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
- package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
- package/dist/chunks/retry-CLrUem1H.mjs +0 -15
- package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
- package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
- package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
- package/dist/chunks/run-BGabwbDL.mjs +0 -109
- package/dist/chunks/run-BGabwbDL.mjs.map +0 -1
- package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
- package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
- package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
- package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
- package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
- package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
- package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
- package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
- package/dist/chunks/ship-BizfUe62.mjs +0 -140
- package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
- package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
- package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
- package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
- package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
- package/dist/chunks/spec-C2h3U64g.mjs +0 -65
- package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
- package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
- package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
- package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
- package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
- package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
- package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
- package/dist/chunks/src-Cu3TxNob.mjs +0 -783
- package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
- package/dist/chunks/src-DNsLSxgm.mjs +0 -928
- package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
- package/dist/chunks/src-DbS9gkJy.mjs +0 -117
- package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
- package/dist/chunks/src-yi5whv3n.mjs +0 -2118
- package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
- package/dist/chunks/status-SMjiOMYy.mjs +0 -29
- package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
- package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
- package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
- package/dist/chunks/update-BXIppsbi.mjs +0 -16
- package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
- package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
- package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
- package/dist/cli.mjs +0 -186
- package/dist/cli.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,104 +1,364 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="https://raw.githubusercontent.com/TheBidouilleAgency/cohorte/main/assets/cohorte-banner.png" alt="Cohorte — portable multi-agent pipeline for Claude Code" width="720">
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
[](https://www.npmjs.com/package/cohorte)
|
|
6
|
+
[](https://www.npmjs.com/package/cohorte)
|
|
7
|
+
[](https://github.com/TheBidouilleAgency/cohorte/actions/workflows/publish.yml)
|
|
8
|
+
[](https://nodejs.org)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](https://thebidouilleagency.github.io/cohorte/)
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
**[📖 Full documentation](https://thebidouilleagency.github.io/cohorte/)** — guides (feature cycle, workflows, token economy, parallel features) + complete reference (commands, agents, profile, gate, scripts).
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
</div>
|
|
10
15
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
A **stack-agnostic multi-agent pipeline for [Claude Code](https://code.claude.com)**. Install it once
|
|
17
|
+
on your machine, then one command per project (`/cohorte-init-pipeline`) adapts it to that project's
|
|
18
|
+
stack — and everything it generates is committed with the project.
|
|
19
|
+
|
|
20
|
+
- **The dev pipeline** — a human **lead** drives feature work through gated commands, dispatching
|
|
21
|
+
**stateless agents** that only communicate through a frozen contract:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
/cohorte-brainstorm → /cohorte-spec → (design) → /cohorte-build <id> → /cohorte-review → (/cohorte-fix) → /cohorte-ship
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
<div align="center">
|
|
28
|
+
<img src="https://raw.githubusercontent.com/TheBidouilleAgency/cohorte/main/assets/demo-cli.gif" alt="cohorte doctor reporting a green pipeline, the spec board, and the gate denying a chained destructive command" width="760">
|
|
29
|
+
<br>
|
|
30
|
+
<sub><code>cohorte doctor</code> · the spec board · the gate refusing a hard-denied command chained behind a benign one.<br>
|
|
31
|
+
Recorded from the real CLI by <code>scripts/demo/record-cli.sh</code> — no output is hand-edited.</sub>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
## Why a pipeline at all
|
|
35
|
+
|
|
36
|
+
Your coding agent is already good at the first prompt of a feature. It gets worse at every one
|
|
37
|
+
after — because what it knows lives in a conversation, and a conversation gets summarised,
|
|
38
|
+
truncated, and re-sent at input price on every turn. Cohorte is the set of constraints that stop
|
|
39
|
+
that degradation. Each one is a failure you have already had:
|
|
40
|
+
|
|
41
|
+
| The failure | The constraint |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| *"It forgot what we decided."* | The spec is **frozen to disk** and re-read by every stateless agent. Nothing is remembered, so nothing is forgotten — and `/clear` between stages is always safe. |
|
|
44
|
+
| *"The API and the UI don't fit."* | The **contract is authored before any implementer is dispatched**. Surfaces import it read-only and never talk to each other — which is what makes building them in parallel safe. |
|
|
45
|
+
| *"It edited a file I didn't want it to."* | **One owner per tree, enforced**: the gate denies a surface agent's Write/Edit outside its own tree (and its writes to the contract); its Bash writes are checked best effort, and the review flags anything that slipped through. |
|
|
46
|
+
| *"It ran something it shouldn't have."* | The **gate** is a real blocking hook committed in the repo, branch-aware, parsing commands (not grepping them) to deny force-pushes, pushes to the default branch and the project's destructive commands — subagents included. It fails closed. It is a strong guard against agent mistakes, not a sandbox: keep GitHub branch protection as the hard boundary for the remote. |
|
|
47
|
+
| *"The review said it was fine."* | Review is a **separate read-only agent** that sees the spec and the diff, never the conversation that produced them. A dead reviewer's zero findings can't read as ship. |
|
|
48
|
+
| *"Four agents just told me it doesn't compile."* | A **deterministic preflight** runs typecheck/lint/tests first. Red ⇒ **zero agents spawned**. |
|
|
49
|
+
| *"We fixed this same thing last week."* | `/cohorte-retro` turns repeated findings into ratified conventions **baked into the implementers**, so the next build never produces them. |
|
|
50
|
+
|
|
51
|
+
None of this is intelligence added to your agent — it's the opposite. It moves the decisions an
|
|
52
|
+
agent makes badly under context pressure into files, hooks and ownership boundaries, where they're
|
|
53
|
+
cheap and don't degrade with conversation length. Which is why it's markdown, shell and one Python
|
|
54
|
+
hook: **your app code never imports anything from Cohorte.**
|
|
55
|
+
|
|
56
|
+
[**The long version — including the four cases where you shouldn't use it →**](https://thebidouilleagency.github.io/cohorte/guide/why-cohorte)
|
|
57
|
+
|
|
58
|
+
## How it works — one install, everything else in the repo
|
|
59
|
+
|
|
60
|
+
| What | Holds | Lives in |
|
|
61
|
+
| --- | --- | --- |
|
|
62
|
+
| **The machine install** (`cohorte install`, once) | the 16 `/cohorte-*` commands, the `cohorte-review` / `cohorte-release` / `cohorte-profile-reader` agents, the workflow scripts, the generic core (templates, schema, scripts, the gate's source) — zero project facts | `~/.claude/commands/cohorte-*.md`, `~/.claude/agents/cohorte-*.md`, `~/.claude/workflows/cohorte-*.js`, `~/.claude/cohorte/` |
|
|
63
|
+
| **The project** (generated by `/cohorte-init-pipeline`, **committed**) | the profile (stack, surfaces, commands, conventions, gates), one implementer agent per surface, the gate hook and its registration, the version pointer, the specs | `PIPELINE.md`, `.claude/agents/<surface>.md`, `.claude/gate-config.json`, `.claude/hooks/cohorte-gate.py` + `.claude/settings.json`, `.claude/pipeline.json`, `.claude/profile.json`, `specs/` |
|
|
64
|
+
| **You** | kanban board links + shared Obsidian vault path | `~/.claude/cohorte.config.yaml` |
|
|
65
|
+
|
|
66
|
+
Everything project-specific travels with `git clone` — **including the gate**: a teammate who clones
|
|
67
|
+
is protected before they even install Cohorte, and only needs `npm i -g cohorte && cohorte install`
|
|
68
|
+
to get the commands. Nothing project-specific is ever written under `~/.claude`, so two projects
|
|
69
|
+
with a `frontend` surface never overwrite each other's agent.
|
|
70
|
+
|
|
71
|
+
The core never hardcodes stack facts. Two mechanisms keep it generic:
|
|
15
72
|
|
|
16
|
-
|
|
73
|
+
1. **Runtime indirection** — commands/agents read project facts from `PIPELINE.md` (dev pipeline) or
|
|
74
|
+
`~/.claude/cohorte.config.yaml` (kanban board links + shared vault) at run time — an agent's
|
|
75
|
+
_first action_ is to read its config.
|
|
76
|
+
2. **Render-at-init** — things that must be in agent frontmatter (name, `tools:`, surface ownership)
|
|
77
|
+
are rendered per **surface** by `/cohorte-init-pipeline` from `implementer.template.md`.
|
|
78
|
+
|
|
79
|
+
> **Claude Code only.** 3.0.0 dropped Codex, Cursor, Gemini CLI and OpenCode. The last multi-runtime
|
|
80
|
+
> release is `cohorte@2.10.2`; its source is on the
|
|
81
|
+
> [`archive/multi-runtime`](https://github.com/TheBidouilleAgency/cohorte/tree/archive/multi-runtime) branch.
|
|
82
|
+
|
|
83
|
+
## Prerequisites
|
|
84
|
+
|
|
85
|
+
- **Node ≥ 20 + npm** — for the `cohorte` CLI.
|
|
86
|
+
- **Python ≥ 3.9** as `python3` — the gate hook every project commits runs on it. The hook is
|
|
87
|
+
fail-closed: without Python, Claude Code refuses every Bash call in a Cohorte project.
|
|
88
|
+
**Windows:** the committed hook is `python3 "$CLAUDE_PROJECT_DIR/.claude/hooks/cohorte-gate.py"`, so
|
|
89
|
+
each teammate needs `python3` on `PATH` and Claude Code running hooks through a POSIX shell (Git
|
|
90
|
+
Bash); this setup is not covered by CI yet.
|
|
91
|
+
- **Claude Code** — workflows (the opt-in deterministic runs) need ≥ 2.1.154; the hook's
|
|
92
|
+
fail-closed `onFailure` setting is honoured from 2.1.295 (older clients ignore it and fail open).
|
|
93
|
+
- **[`uv`](https://docs.astral.sh/uv/) + the Serena CLI** — _optional_, the default code-retrieval
|
|
94
|
+
provider (`uv tool install -p 3.13 serena-agent && uv tool update-shell`). Without it agents fall back
|
|
95
|
+
to Grep/Read. Installed before `/cohorte-init-pipeline`, init wires it in one pass.
|
|
96
|
+
|
|
97
|
+
## Install
|
|
17
98
|
|
|
18
99
|
```sh
|
|
19
|
-
cohorte
|
|
20
|
-
cohorte
|
|
21
|
-
cohorte discover --json
|
|
22
|
-
cohorte config validate
|
|
100
|
+
npm i -g cohorte
|
|
101
|
+
cohorte install
|
|
23
102
|
```
|
|
24
103
|
|
|
25
|
-
`cohorte
|
|
104
|
+
`cohorte install` writes only into `~/.claude` (or `$CLAUDE_CONFIG_DIR`) and records every file it
|
|
105
|
+
writes in `~/.claude/cohorte/manifest.json`. It never deletes a file it did not write, backs up any
|
|
106
|
+
file of its own you edited before refreshing it, and refuses to run — changing nothing — if
|
|
107
|
+
`~/.claude/settings.json` is not valid JSON. It registers **no** machine-wide hook.
|
|
26
108
|
|
|
27
|
-
|
|
109
|
+
> **Restart Claude Code** (or start a new session) after installing or updating: commands and agents
|
|
110
|
+
> are scanned at session start.
|
|
28
111
|
|
|
29
|
-
|
|
112
|
+
Without a global npm install: `npx cohorte@latest install`, or
|
|
113
|
+
`curl -fsSL https://raw.githubusercontent.com/TheBidouilleAgency/cohorte/main/install.sh | sh`
|
|
114
|
+
(Windows: `irm https://raw.githubusercontent.com/TheBidouilleAgency/cohorte/main/install.ps1 | iex`).
|
|
115
|
+
Both scripts still need Node and install the **latest release**, not the tip of `main`.
|
|
30
116
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
cohorte
|
|
35
|
-
cohorte run <feature-id> --detach --json
|
|
36
|
-
cohorte status <run-id> --json
|
|
37
|
-
cohorte tail <run-id>
|
|
38
|
-
cohorte review <run-id>
|
|
39
|
-
cohorte fix <run-id>
|
|
40
|
-
cohorte ship <run-id>
|
|
117
|
+
Then, in Claude Code, inside each project, once:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
/cohorte-init-pipeline
|
|
41
121
|
```
|
|
42
122
|
|
|
43
|
-
|
|
123
|
+
It **detects** your stack (package manager, workspaces, frameworks, test runners, linters, git remote,
|
|
124
|
+
design system), **interviews** you for the gaps, and **generates**:
|
|
125
|
+
|
|
126
|
+
- `PIPELINE.md` — the project profile (a machine-readable `pipeline-profile` YAML block + prose conventions)
|
|
127
|
+
- one implementer agent per **surface** in `.claude/agents/` (e.g. `backend.md`, `frontend.md`) with its
|
|
128
|
+
own tree and a per-surface `model:` tier
|
|
129
|
+
- `.claude/gate-config.json` + the `.claude/settings.json` permissions — plus an `allow` list of the
|
|
130
|
+
project's read-only commands so agents don't stall on permission prompts
|
|
131
|
+
- the **gate**, via `cohorte sync`: `.claude/hooks/cohorte-gate.py` registered in `.claude/settings.json`,
|
|
132
|
+
the `.claude/pipeline.json` pointer, `.claude/profile.json` (the profile's machine block parsed to
|
|
133
|
+
JSON, which agents read instead of the whole `PIPELINE.md`) and the `.gitignore` entries for the
|
|
134
|
+
local-only artifacts
|
|
135
|
+
- a **code-retrieval provider** wired as a committed project-scope MCP server —
|
|
136
|
+
[Serena](https://github.com/oraios/serena) by default (`graphify` or `none` via `retrieval.provider`)
|
|
137
|
+
- `scripts/new-feature.sh` + `remove-feature.sh` — parallel worktree isolation (if you enable it)
|
|
138
|
+
- `specs/_template.md` (and, on first decision, `specs/_decisions.md` — the project's one-line-per-decision
|
|
139
|
+
journal, read by `/cohorte-brainstorm`, `/cohorte-spec` and `/cohorte-audit`)
|
|
140
|
+
|
|
141
|
+
Sanity-check `PIPELINE.md`, commit what init lists, and run `/cohorte-brainstorm`.
|
|
142
|
+
|
|
143
|
+
## Update
|
|
44
144
|
|
|
45
145
|
```sh
|
|
46
|
-
cohorte
|
|
146
|
+
npm i -g cohorte@latest && cohorte update
|
|
47
147
|
```
|
|
48
148
|
|
|
49
|
-
|
|
149
|
+
`cohorte update` is the same idempotent operation as `install`: it refreshes the machine install and
|
|
150
|
+
removes files the previous version shipped and this one does not (only when you have not edited them).
|
|
151
|
+
Then, inside each project, run **`/cohorte-update-pipeline`**: it runs `cohorte sync` (refreshes the
|
|
152
|
+
committed gate and the pointer) and **reconciles the repo's generated files to the new core** — new
|
|
153
|
+
profile fields at their defaults, surface agents re-rendered, permissions patched additively, new
|
|
154
|
+
capabilities wired. `/cohorte-init-pipeline` is one-time per project.
|
|
155
|
+
|
|
156
|
+
### From 2.x
|
|
50
157
|
|
|
51
|
-
|
|
158
|
+
`cohorte update` migrates a 2.x machine: it first removes the 2.x gate registration from
|
|
159
|
+
`~/.claude/settings.json`, then moves the 2.x core (`~/.claude/pipeline/`, `templates/`, `hooks/gate.py`,
|
|
160
|
+
`agents/review.md`…) into `~/.claude/cohorte/legacy-backup/<date>/`. Your own files are never moved.
|
|
161
|
+
Then run `/cohorte-update-pipeline` in each project (or `cohorte sync <project>`): a vendored 2.x core
|
|
162
|
+
in the repo is removed (git keeps it), the pointer loses its `mode`, and surface agents a 2.x global
|
|
163
|
+
init put in `~/.claude/agents` are re-rendered into the project. If you ever tried the discontinued
|
|
164
|
+
Python line (`cohorte@dev` 3.0.0-dev.*, `cohorte-engine` on PyPI): `uv tool uninstall cohorte-engine`
|
|
165
|
+
(or `pipx uninstall cohorte-engine`) so its `cohorte` binary cannot shadow this one, and delete
|
|
166
|
+
`~/.cohorte/` and any `.cohorte/` directory it left in your repos.
|
|
52
167
|
|
|
53
|
-
|
|
168
|
+
## Uninstall
|
|
54
169
|
|
|
55
170
|
```sh
|
|
56
|
-
cohorte
|
|
57
|
-
cohorte
|
|
58
|
-
cohorte
|
|
59
|
-
cohorte obsidian move <feature-id> <column>
|
|
171
|
+
cohorte uninstall # everything install wrote (your edits are kept and listed)
|
|
172
|
+
cohorte uninstall --purge # …and ~/.claude/cohorte.config.yaml
|
|
173
|
+
cohorte uninstall --project [path] # the gate wiring of one repo (PIPELINE.md, agents, specs stay)
|
|
60
174
|
```
|
|
61
175
|
|
|
62
|
-
|
|
176
|
+
## Reading a project without an agent
|
|
63
177
|
|
|
64
|
-
|
|
178
|
+
The two read-only halves of the pipeline, in the shell:
|
|
65
179
|
|
|
66
180
|
```sh
|
|
67
|
-
cohorte
|
|
68
|
-
cohorte
|
|
69
|
-
cohorte
|
|
70
|
-
cohorte providers test
|
|
71
|
-
cohorte models list
|
|
72
|
-
cohorte policy explain -- <argv>
|
|
73
|
-
cohorte doctor --json
|
|
181
|
+
cohorte specs # the board: id · status · branch · title, from specs/*.md
|
|
182
|
+
cohorte doctor # the /cohorte-doctor checks — exits 1 when any check is bad
|
|
183
|
+
cohorte metrics --days=30 # cost + runtime per command, from Claude Code's transcripts
|
|
74
184
|
```
|
|
75
185
|
|
|
76
|
-
|
|
186
|
+
`doctor`'s exit code is what makes it a CI step, and the three of them are what the Francois
|
|
187
|
+
extension below renders.
|
|
77
188
|
|
|
78
|
-
|
|
189
|
+
`doctor`'s exit code makes it a CI step as-is. Add `--porcelain` for one record per line with
|
|
190
|
+
`U+001F` between fields (a spec title with a space in it never misaligns a column), or `--json`
|
|
191
|
+
for the native document. Both read through `lib/`, so every consumer — the CLI, a Francois
|
|
192
|
+
panel — answers from one implementation and the repo never gets two verdicts.
|
|
79
193
|
|
|
80
|
-
|
|
194
|
+
`--panel` — on `specs`, `doctor` and `metrics` — emits the payload shape a
|
|
195
|
+
[Francois](https://github.com/antoine-gmnz/francois) extension panel expects. It is the one
|
|
196
|
+
Francois-aware surface in the package, and it exists for
|
|
197
|
+
[**francois-plugin-cohorte**](https://github.com/TheBidouilleAgency/francois-plugin-cohorte): a
|
|
198
|
+
manifest-only extension that renders the spec board, the doctor report and the 30-day cost as
|
|
199
|
+
three panels beside your sessions.
|
|
81
200
|
|
|
82
|
-
|
|
201
|
+
A Francois extension may only spawn a **bare binary name resolved on `PATH`** — never `npx`,
|
|
202
|
+
never a shell, never an absolute path. So this one needs the global install, and nothing else
|
|
203
|
+
will do:
|
|
83
204
|
|
|
84
205
|
```sh
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
cohorte migrate --rollback <report-id>
|
|
206
|
+
npm i -g cohorte
|
|
207
|
+
francois ext install TheBidouilleAgency/francois-plugin-cohorte
|
|
88
208
|
```
|
|
89
209
|
|
|
90
|
-
|
|
210
|
+
## Releasing (maintainers)
|
|
91
211
|
|
|
92
|
-
|
|
212
|
+
Bump `"version"` in `package.json` and add its `## X.Y.Z — YYYY-MM-DD` section to `CHANGELOG.md`, then
|
|
213
|
+
merge to `main`. [`publish.yml`](.github/workflows/publish.yml) starts only **after CI succeeded** on
|
|
214
|
+
that commit, re-runs the suites, and waits for a maintainer's approval (the `npm-publish` environment)
|
|
215
|
+
before publishing with provenance, tagging `vX.Y.Z` and creating the GitHub release. A pre-release
|
|
216
|
+
version (`3.1.0-rc.1`) is published under the `next` dist-tag, never `latest`. `npm test` runs every
|
|
217
|
+
suite locally.
|
|
93
218
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
219
|
+
## The commands
|
|
220
|
+
|
|
221
|
+
| Command | Role |
|
|
222
|
+
| -------------------- | ------------------------------------------------------------------------------------- |
|
|
223
|
+
| `/cohorte-init-pipeline` | Detect stack → interview → generate the profile + agents. Run once per project. |
|
|
224
|
+
| `/cohorte-intake [paste]` | Triage anything that arrives (ticket, email, trace, thread) into a `/cohorte-patch` handoff or a brainstorm seed — staged to disk, carded in Ideas. |
|
|
225
|
+
| `/cohorte-brainstorm` | Interactive persona panel that pressure-tests a feature idea. |
|
|
226
|
+
| `/cohorte-spec` | Freeze the feature spec + contract into `specs/<id>.md` (UI features also get a standalone design brief at `specs/design/<id>.md`). Also applies review returns. |
|
|
227
|
+
| `/cohorte-patch [bug]` | Bug-fix entry: triage a bug and freeze a ~60-line patch spec (`specs/patch-<slug>.md`) whose regression test replaces the contract. Then the normal `/cohorte-build → review → ship`. |
|
|
228
|
+
| `/cohorte-build <id>` | Readiness gate on the frozen spec, then the lead authors the contract and dispatches one implementer per surface in parallel. |
|
|
229
|
+
| `/cohorte-review <id>` | Read-only review agents (one per touched surface, parallel) audit the diff vs the spec; out-of-scope findings go to the refactor backlog. `--pr <num>` reviews an **incoming** GitHub PR in a throwaway worktree and offers to post the report as a comment. |
|
|
230
|
+
| `/cohorte-fix <id>` | Apply a review report: remediation into the spec, re-dispatch only the surfaces with findings. |
|
|
231
|
+
| `/cohorte-fleet plan\|status\|sync` | Fly several features in parallel: overlap matrix + merge order, one worktree per feature, live status, post-merge rebase sweep. Coordination only — never headless execution. |
|
|
232
|
+
| `/cohorte-verify <id>` | Start the app, run smoke/e2e (and migrations down-then-up on a dev DB), tick the runtime DoD items with evidence. Ship blocks on a FAIL. |
|
|
233
|
+
| `/cohorte-ship <id>` | Release agent commits, pushes, opens the PR; watches CI; proposes worktree teardown. |
|
|
234
|
+
| `/cohorte-revert <id>` | Revert a shipped feature through a PR (never pushed to the default branch), running its `## Rollback` down migration on a dev DB. |
|
|
235
|
+
| `/cohorte-audit [path]` | Prioritized refactor backlog for existing code. |
|
|
236
|
+
| `/cohorte-refactor <domain>` | Apply the backlog for one surface, TDD-first, then freeze the round as a `kind: refactor` spec that goes review → ship. |
|
|
237
|
+
| `/cohorte-retro [last n]` | Mine the accumulated review findings for patterns; ratified ones become §Conventions rules and the surface agents are re-rendered — the next build never produces the finding. |
|
|
238
|
+
| `/cohorte-align-ds` | Align the code UI kit to the design system (no-op if none configured). |
|
|
239
|
+
| `/cohorte-update-pipeline` | Refresh the machine install, re-wire this repo (`cohorte sync`) and reconcile its generated files. |
|
|
240
|
+
| `/cohorte-doctor` | Diagnose the installation (core, agents↔surfaces, hooks, gate, retrieval, worktrees). |
|
|
241
|
+
|
|
242
|
+
### Run the loop cheaply — `/clear` between stages
|
|
243
|
+
|
|
244
|
+
Every command reloads all the state it needs **from disk** — the frozen spec, the contract, the diff, the
|
|
245
|
+
Remediation checkboxes, the freshness stamp, and the last `/cohorte-review` report (staged to a gitignored
|
|
246
|
+
`specs/reports/<id>.md`). Nothing essential lives in the conversation. So the loop is **`/clear`-safe at
|
|
247
|
+
every boundary**:
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
/cohorte-spec → /clear → /cohorte-build → /clear → /cohorte-review → /clear → /cohorte-fix → /clear → /cohorte-review → /cohorte-ship
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
`/clear`-ing between stages sheds the accumulated main-thread context, which is the single biggest token
|
|
254
|
+
lever: long sessions (>150k) are expensive even when cached. Each command tells you when its handoff is
|
|
255
|
+
safe to clear. If you'd rather stay in one session, `/compact` mid-task does the lighter version. (Claude
|
|
256
|
+
can't fire `/clear` itself — it's a client-side command; the pipeline just makes it always safe to type.)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Run features in parallel — one session per feature
|
|
260
|
+
|
|
261
|
+
With `isolation.enabled`, every feature already gets its own worktree, ports, and database
|
|
262
|
+
(`scripts/new-feature.sh <id>` — slots tracked in `.worktrees/slots.tsv`). That isolation is exactly
|
|
263
|
+
what makes **parallel features** safe, and it's the real throughput multiplier when you're rate-limited:
|
|
264
|
+
while feature A's `/cohorte-build` runs its agents (minutes of wall-clock you'd otherwise spend waiting), a
|
|
265
|
+
second Claude Code session can `/cohorte-spec` or `/cohorte-review` feature B.
|
|
266
|
+
|
|
267
|
+
The pattern:
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
session 1 (main checkout): /cohorte-spec feat-a → /cohorte-build feat-a (agents run…)
|
|
271
|
+
session 2 (main checkout): /cohorte-spec feat-b → /cohorte-build feat-b (agents run…)
|
|
272
|
+
session 1: /cohorte-review feat-a → /cohorte-ship feat-a
|
|
273
|
+
session 2: /cohorte-review feat-b → …
|
|
100
274
|
```
|
|
101
275
|
|
|
102
|
-
|
|
276
|
+
Rules that make it safe:
|
|
277
|
+
|
|
278
|
+
- **One feature per session.** All lead-side state is keyed by feature id on disk
|
|
279
|
+
(`specs/<id>.md`, `<contract.path>/<id>.*`, `specs/reports/<id>*`), so sessions never share state —
|
|
280
|
+
but a single session interleaving two features accumulates both in its context, paying for both.
|
|
281
|
+
- **Disjoint surfaces per feature are guaranteed** (each worktree is a full checkout), and each
|
|
282
|
+
feature's DB/ports come from its slot — two features' dev servers collide on neither.
|
|
283
|
+
- **The contract package is the one shared tree.** Two features editing
|
|
284
|
+
`<contract.path>/<their-own-id>.<ext>` never conflict (one file per feature); merge order only
|
|
285
|
+
matters if a later feature *imports* an earlier one's contract — ship the dependency first.
|
|
286
|
+
- `/cohorte-ship` one at a time: it commits from the feature's branch and the freshness gate keeps a stale
|
|
287
|
+
verdict from shipping; after each merge, rebase the other live worktrees (`git rebase main`) so
|
|
288
|
+
their eventual reviews diff against reality.
|
|
289
|
+
- `/cohorte-doctor` check 6 shows the live slot table (feature ↔ worktree ↔ ports) when you lose track.
|
|
290
|
+
|
|
291
|
+
### Workflows — deterministic multi-agent runs (opt-in)
|
|
292
|
+
|
|
293
|
+
Four **workflow scripts** ship for the Claude Code Workflow runtime — the same fan-out the
|
|
294
|
+
commands orchestrate, but driven by a deterministic script instead of the lead reasoning it out
|
|
295
|
+
turn by turn. They are installed in `~/.claude/workflows/`. Three are opt-in variants of their
|
|
296
|
+
same-named commands; the fourth, `cohorte-loop.js`, exists **only** as a workflow:
|
|
103
297
|
|
|
104
|
-
|
|
298
|
+
| Script | What it runs |
|
|
299
|
+
| ----------------------- | ----------------------------------------------------------------------------------------- |
|
|
300
|
+
| `cohorte-review.js` | Preflight gate (aborts while red — zero agents), one reviewer per touched surface, adversarial cross-check of CRITICAL/security findings, merged verdict only. |
|
|
301
|
+
| `cohorte-audit.js` | One auditor per domain (every surface + shared) concurrently, prioritized `specs/refactor-backlog.md`. |
|
|
302
|
+
| `cohorte-refactor.js` | Big domains only: `shared` first and alone, then parallel surface implementers, per-domain verify + one retry. |
|
|
303
|
+
| `cohorte-loop.js` | The loop workflow — build → review → [fix → review]* for one feature, unattended and resumable; exits on zero blocking findings, treading water, maxRounds, or anything that needs a human (contract change, unreviewed surface). No conversational fallback, on purpose. |
|
|
304
|
+
|
|
305
|
+
The essentials:
|
|
306
|
+
|
|
307
|
+
- **The conversational commands stay the default path** — and the fallback when workflows are
|
|
308
|
+
disabled or the client is too old. A workflow runs only when you explicitly ask for it
|
|
309
|
+
("run the review workflow").
|
|
310
|
+
- **Prerequisite: Claude Code ≥ 2.1.154** with workflows enabled. `/cohorte-doctor` (check 8) tells you
|
|
311
|
+
which path your session will take and why.
|
|
312
|
+
- **No input mid-run — questions at the edges.** A workflow runs to completion without asking
|
|
313
|
+
anything: whatever would have been a mid-run question lands in the result at the end. The
|
|
314
|
+
destructive-command gate still fires inside workflow subagents; in unattended runs its confirms
|
|
315
|
+
become denies.
|
|
316
|
+
- Phase 0 of every script is the `cohorte-profile-reader` agent (haiku) — one Read of
|
|
317
|
+
`.claude/profile.json` (`PIPELINE.md` as the fallback) hands the script the profile as JSON, since workflow scripts have no filesystem access. Mechanical
|
|
318
|
+
phases run on haiku; judgment phases use the same pinned agents as the commands.
|
|
319
|
+
|
|
320
|
+
Details: `profile/schema/workflows.md`.
|
|
321
|
+
|
|
322
|
+
## Privacy
|
|
323
|
+
|
|
324
|
+
Cohorte sends nothing, anywhere. There is no telemetry, no usage pings, no collector — the
|
|
325
|
+
opt-in stats that shipped through 2.2.0 were removed in 2.3.0, sender included. Everything the
|
|
326
|
+
pipeline records (`pipeline-metrics.jsonl`, `specs/reports/`) stays in your repo. The network calls
|
|
327
|
+
are the ones you can see — `git`, `gh`, whatever MCP providers you wired — plus one read-only lookup
|
|
328
|
+
of the latest published version on `registry.npmjs.org` by `cohorte install/update/sync/doctor`
|
|
329
|
+
(`COHORTE_NO_VERSION_CHECK=1` turns it off).
|
|
330
|
+
|
|
331
|
+
## License
|
|
332
|
+
|
|
333
|
+
[AGPL-3.0](LICENSE). Free to use, including commercially — but if you modify it and distribute it
|
|
334
|
+
or offer it as a network service, you must publish your modifications under the same license.
|
|
335
|
+
|
|
336
|
+
## Profile reference
|
|
337
|
+
|
|
338
|
+
See `profile/schema/profile-block.md` for every field in `PIPELINE.md` and how the pipeline uses it. The
|
|
339
|
+
rest of the pipeline's rulebook sits next to it, one file per topic, indexed by `profile/SCHEMA.md`.
|
|
340
|
+
|
|
341
|
+
## Layout of this repo
|
|
342
|
+
|
|
343
|
+
```
|
|
344
|
+
package.json # npm package (cohorte) — semver source of truth; `npm test` runs every suite
|
|
345
|
+
bin/cli.js # the CLI: install / update / sync / uninstall / doctor / specs / metrics / version
|
|
346
|
+
bin/report.js # the four renderings of `specs` / `doctor` (human, porcelain, json, panel)
|
|
347
|
+
lib/install.js # the machine install: manifest, ownership rules, 2.x migration, uninstall
|
|
348
|
+
lib/project.js # `cohorte sync`: wires one repo (copied into the core with its one sibling, yaml.js)
|
|
349
|
+
lib/render.js # renders core/commands + core/agents for Claude Code (one preamble of path tokens)
|
|
350
|
+
lib/doctor.js # the JS port of /cohorte-doctor, + versions.js / yaml.js. No dependencies.
|
|
351
|
+
install.sh, install.ps1 # thin wrappers around bin/cli.js for installs without a global npm
|
|
352
|
+
core/
|
|
353
|
+
agents/ # implementer.template.md (rendered per surface) + cohorte-review / -release / -profile-reader
|
|
354
|
+
commands/ # the 16 /cohorte-* commands
|
|
355
|
+
hooks/gate.py # the gate (copied into each project as .claude/hooks/cohorte-gate.py)
|
|
356
|
+
templates/ # handoff / brainstorm-return / design-brief / review-feedback / pr-body / spec + step files
|
|
357
|
+
workflows/ # Workflow-runtime scripts: review / audit / refactor (opt-in variants) + loop (workflow-only)
|
|
358
|
+
profile/
|
|
359
|
+
PIPELINE.template.md # the profile skeleton /cohorte-init-pipeline fills
|
|
360
|
+
SCHEMA.md # index of schema/ — one line per topic file
|
|
361
|
+
schema/ # the rulebook, one file per topic (profile-block, spec-status, kanban, …)
|
|
362
|
+
cohorte.config.template.yaml # seeds ~/.claude/cohorte.config.yaml (kanban)
|
|
363
|
+
scripts/ # shipped preflight/kanban scripts, worktree-isolation templates, metrics, the test suites
|
|
364
|
+
```
|