harnessed 5.0.13 → 5.0.14

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-en.md DELETED
@@ -1,660 +0,0 @@
1
- <p align="center">
2
- <img src="./assets/logo.svg" alt="harnessed" width="440">
3
- </p>
4
-
5
- **English** | [简体中文](./README-zh.md) | [繁體中文](./README-tw.md) | [日本語](./README-ja.md) | [한국어](./README-ko.md) | [Português (Brasil)](./README-pt-BR.md) | [Türkçe](./README-tr.md) | [Русский](./README-ru.md) | [Tiếng Việt](./README-vi.md) | [ไทย](./README-th.md)
6
-
7
- > Compatibility mirror of the canonical English [README.md](./README.md).
8
-
9
- > _AI coding harness package manager + composition orchestrator_ — it assembles the best of the open-source ecosystem into one executable engine, wired by the three-layer **BDD → SDD → TDD** methodology.
10
-
11
- > **harnessed is an orchestration brain + prompt library**, driving native subagent spawn through three fast, pure-function CLIs — `harnessed gates` (which sub-workflows fire), `harnessed prompt` (spawn-ready prompt for a sub), and `harnessed checkpoint` (record progress).
12
-
13
- [![npm](https://img.shields.io/npm/v/harnessed?label=npm&color=blue)](https://npmjs.com/package/harnessed)
14
- [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE)
15
- [![Sponsor](https://img.shields.io/github/sponsors/easyinplay?logo=github&label=Sponsor)](https://github.com/sponsors/easyinplay)
16
-
17
- > Not affiliated with, endorsed by, or sponsored by Harness Inc. (see [NOTICE](./NOTICE))
18
-
19
- ---
20
-
21
- ## 📦 Quick Install
22
-
23
- **Standalone binary (recommended)** - per-platform, self-updates via `harnessed update`:
24
-
25
- ```bash
26
- # macOS (Apple Silicon) / Linux (x64)
27
- curl -fsSL https://raw.githubusercontent.com/easyinplay/harnessed/main/install.sh | bash
28
- ```
29
-
30
- ```powershell
31
- # Windows (x64)
32
- irm https://raw.githubusercontent.com/easyinplay/harnessed/main/install.ps1 | iex
33
- ```
34
-
35
- > The standalone binary embeds its runtime: harnessed itself needs neither external Node.js nor Bun. Upstream components may still require Node/npm, Git, Bun, Python, or browser system libraries.
36
-
37
- The binary installer offers setup with your consent in interactive sessions. Do not repeat it if it completed successfully. If setup was skipped or failed, or you installed noninteractively, run `harnessed setup`.
38
-
39
- `harnessed setup` installs a cache-only **SessionStart update reminder** by default. Its foreground path only reads a bounded local cache: zero network requests, zero filesystem mutation, and fail-soft exit `0`. It only displays a reminder for a cached available update; missing or stale cache may launch a detached background worker to refresh version information, never to install updates. Codex uses a local plugin and may require user trust approval; setup does not grant trust automatically.
40
-
41
- `harnessed setup --no-update-reminder` persistently disables the reminder; later setup/update runs preserve that choice. To re-enable it, delete the corresponding `update-reminder-preferences.json` and run `harnessed setup` again. Default locations are `~/.claude/harnessed/update-reminder-preferences.json` for Claude Code and `~/.codex/harnessed/update-reminder-preferences.json` for Codex; when using `CLAUDE_CONFIG_DIR`, `CODEX_HOME`, or `HARNESSED_ROOT_OVERRIDE`, use the corresponding reminder state root instead.
42
-
43
- **Via Bun (secondary recommendation; optional)**:
44
-
45
- ```bash
46
- bun install -g harnessed && bun run --bun harnessed setup
47
- ```
48
-
49
- For later Bun commands, use `bun run --bun harnessed`; the bare `harnessed` shim may still invoke Node.js.
50
-
51
- **Via npm (supported alternative; Node.js >= 22 required)**:
52
-
53
- Bun is not required for this channel; Node.js >= 22 remains supported.
54
-
55
- ```bash
56
- npm install -g harnessed && harnessed setup
57
- ```
58
-
59
- > Windows PowerShell 5.x does not support `&&`. For either package channel, run the install command first, then run setup only if installation succeeds. bash / zsh / PowerShell 7+ / cmd.exe support the chain.
60
-
61
- > [!TIP]
62
- > 🚀 **The much-loved Agent Teams and Subagent features are auto-enabled in harnessed based on the task!**
63
- > No need to manually configure `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` — `harnessed setup` writes it to `~/.claude/settings.json` automatically. Pattern A full-stack three-way / Pattern C 4-specialist and other multi-agent workflows work out of the box.
64
-
65
- ---
66
-
67
- ## ⏱️ First 5 Minutes
68
-
69
- The shortest path from zero to a running workflow:
70
-
71
- Step 1 is a prompt inside your host, not a shell command. In **Claude Code**, use:
72
-
73
- ```text
74
- /auto "your first requirement"
75
- ```
76
-
77
- In **Codex**, use:
78
-
79
- ```text
80
- $auto "your first requirement"
81
- ```
82
-
83
- Both start the default end-to-end workflow after setup for that host. The shell examples below use the binary/npm channel; for a Bun-managed install, replace the leading `harnessed` with `bun run --bun harnessed`.
84
-
85
- ```bash
86
- # 2. Lost? Run harnessed with no arguments — it tells you where you are + what's next
87
- harnessed
88
- # → you-are-here dashboard (active phase + per-step status) + a NEXT: auto|manual|done line
89
- # no need to remember status / next / resume — one command (comet `/comet` analog, read-only)
90
- # add --json for machine-readable output
91
- ```
92
-
93
- ```bash
94
- # 3. Resume any time after an interruption
95
- harnessed # same you-are-here view
96
- harnessed resume # continue from the latest checkpoint
97
- ```
98
-
99
- > Want finer control over which stage runs and when? See the 3 modes below.
100
-
101
- ---
102
-
103
- ## ✨ TL;DR
104
-
105
- **How it works**: harnessed **assembles** the best open-source Claude Code agents (gstack, GSD, superpowers, planning-with-files) and **orchestrates** them into one workflow via opinionated composition skills. It does **not** vendor upstream code — manifests describe install/check, and composition skills conduct the multi-upstream collaboration (so an upstream upgrade is just a re-install, never a manual code sync).
106
-
107
- ### 🔁 The operating loop
108
-
109
- > **Discuss → Plan → Build → Verify → Ship**, closed by a **Learn** loop — machine-executed across the three-layer stack (gstack governance · GSD orchestration · superpowers TDD · checkpoint evidence). Raw agent work drifts; harnessed turns it into a source-of-truth path where progress and evidence persist instead of living in chat. **Learning is automatic**: every completed workflow appends its failure/loop/reject signals to `.planning/LEARNINGS.md`, which are injected into the next cycle — this is always-on, **not** gated on the optional Retro. Retro (`/retro`) is a separate, optional milestone summary.
110
-
111
- ```mermaid
112
- flowchart LR
113
- R(["⓪ Research<br/>multi-source investigate<br/>(optional)"]):::opt --> D
114
- D(["① Discuss<br/>3-layer clarify"]) --> P(["② Plan<br/>persist spec + tasks"])
115
- P --> T(["③ Task<br/>TDD build + checkpoint"])
116
- T --> V(["④ Verify<br/>independent review + evidence gate"])
117
- V --> S(["⑤ Ship<br/>release-preflight → tag-ready (publish via CI)"])
118
- S -. "milestone summary" .-> RT(["Retro<br/>(optional)"]):::opt
119
- V -. "fail / gap" .-> T
120
- S == "🔁 Learn — learnings captured on every workflow completion → injected next cycle" ==> D
121
- classDef opt stroke-dasharray:5,opacity:0.8
122
- ```
123
-
124
- ---
125
-
126
- ## 🧱 What is the three-layer stack?
127
-
128
- harnessed's three-layer stack is a software-engineering implementation of the established **BDD → SDD → TDD** nesting: three nested feedback loops, each answering a different question. The **three layers are the loops** (the stable theory); harnessed **composes** the open-source ecosystem into each loop — and the components **overlap**, which is exactly what a composition orchestrator arbitrates.
129
-
130
- | Layer | Loop | Question it answers | Composed from (overlapping) |
131
- |---|---|---|---|
132
- | **① Behavior** | BDD | *What* to build + how we know it's done | gstack `/office-hours` governance · GSD discuss · superpowers brainstorming → acceptance criteria |
133
- | **② Spec** | SDD | *How* it's structured | GSD plan-phase → requirements / design / tasks · contracts (Spec Kit / ECC patterns) |
134
- | **③ Implementation** | TDD | Does it actually *work* | superpowers TDD red-green · subagent execution · GSD verify-work · harnessed completion gate |
135
-
136
- The loops are **nested lenses, not phases** — the classic Cucumber BDD-outer + TDD-inner double-loop, extended with a GenAI-era SDD spec ring into a triple-loop. harnessed runs the default outer→inner traversal as its 5-stage cadence, plus the **back-edges it ships today**: Verify kicks failing work back to Task, a subagent that hits a gray area round-trips to clarification before continuing, and every shipped cycle feeds learnings back into the next Discuss. (Finer-grained structured back-edges — e.g. a contract contradiction routing straight to Spec, an ambiguous requirement to Behavior — are on the roadmap, not shipped. harnessed is the linear-cadence realization of the triple-loop; the full routed graph is its evolution path.)
137
-
138
- **The components overlap — that's the point.** **GSD** threads through all three loops as the orchestration backbone, **gstack** spans Behavior + Review, **superpowers** spans Behavior (brainstorm) + Implementation (TDD). harnessed wires them — and arbitrates the overlap — into one engine. Two **cross-cutting disciplines** run through every layer: **karpathy principles** (*how* to code — simplicity-first, surgical diffs) + **mattpocock moves** (on-demand tactical tools like `/diagnosing-bugs`, `/grill-with-docs`).
139
-
140
- Mapped to the runtime loop above: **Discuss = Behavior (BDD) · Plan = Spec (SDD) · Build = Implementation (TDD)**, then **Verify + Ship** close it with evidence gates.
141
-
142
- ---
143
-
144
- > Wait — can harnessed really go toe-to-toe with upstream giants like superpowers / gstack / GSD?
145
- > Of course — we **stand on the shoulders of giants**. See further, Newton said. 🧐
146
- > ... *(whispers)* Though on closer look, more like the parrot perched on said shoulder.
147
- > Eh — parrots mimic; we **orchestrate**. 🦜
148
-
149
- ---
150
-
151
- ## 🎯 Key Differentiators
152
-
153
- - **Three-layer stack machine-executed** — the **BDD→SDD→TDD nested triple-loop** ([what's that?](#-what-is-the-three-layer-stack)), composed from `gstack` + `GSD` + `superpowers` (overlapping, GSD as the backbone) with `karpathy 4 principles` + `mattpocock 23 moves` as cross-cutting disciplines
154
- - **No vendoring of upstream** — manifests describe install/check; on upstream upgrade users just re-install to get the latest version
155
- - **Composition Skill** — in-house workflow skills act as the conductor's baton, orchestrating multiple upstreams in concert. **1 super-master `/auto` + 5 stage masters + 20 sub-workflows + 2 standalones = 28 namespace-layered workflows**, full 5-stage machine-execution (`/auto` one-shot across stages / `/discuss /plan /task /verify /ship` single stage / 20 three-layer-stack subs / `/research /retro` 2 standalones)
156
- - **L0 Discipline Substrate** — global cross-stage behavior baseline (karpathy principles + output-style + language + operational + priority + protocols), applied universally
157
- - **Package manager mindset** — install dependency graph auto-resolves, doctor health check, install-base one-shot full install
158
- - **Unified entry point** — users face `/discuss /plan /task /verify /ship` master slash commands without learning each upstream's terminology; sub commands explicitly invoke a single stage (e.g. `/discuss-strategic` runs only the strategic-layer clarification)
159
- - **Forward continuation** — `harnessed next` / `harnessed advance` carry you across tasks and phases: when one finishes, the next is **derived from `.planning/` disk state** (a phase is done when its `PLAN` has a matching `SUMMARY`) — no queue to maintain, so a mid-stream new phase is picked up automatically, and resume re-derives from disk. A per-turn `NEXT-UNIT` breadcrumb points at what's next
160
-
161
- ---
162
-
163
- ## 🆚 vs Native Claude Code / Codex
164
-
165
- Native agents give you primitives; harnessed wires them into a methodology. Where a native cell says a primitive "exists," you still design, wire, and maintain it yourself per project — harnessed ships it pre-composed and engine-driven.
166
-
167
- | Dimension | Native Claude Code | Native Codex | harnessed |
168
- |---|---|---|---|
169
- | **Workflow / methodology** | Primitives only — you design the flow each time | Fewer primitives — freestyle per prompt | Codified **Discuss→Ship** 5-stage three-layer-stack engine — BDD + SDD + TDD loops + 2 cross-cutting (Review + Ship) |
170
- | **Instruction injection** | `CLAUDE.md` + skills + hooks exist, but static & wired by hand | `AGENTS.md` + skills (`~/.agents/skills`) + hooks — also static & wired by hand | Per-turn breadcrumb hook + task-scoped routing + learnings injected each cycle |
171
- | **State / progress** | Chat context — lost on `/clear` / compaction | Chat context — no persistence layer | On-disk `.planning/` + `workflows.json` per-repo ledger + checkpoint evidence |
172
- | **Cross-session recovery** | Re-explain the context by hand | Re-explain the context by hand | `harnessed status --recover`: you-are-here + next step |
173
- | **Verification / "done"** | Agent self-reports "done" | Agent self-reports "done" | Independent review subagents + **fail-CLOSED evidence guard** (missing artifact = not done) |
174
- | **Subagent orchestration** | Subagents + Agent Teams available, but orchestrated by hand | `spawn_agent` / `send_input` / `wait_agent` exist — also orchestrated by hand; no Agent-Teams equivalent | `gates → prompt → spawn → checkpoint`; Agent Teams auto-enabled per task |
175
- | **Learning loop** | None | None | `LEARNINGS.md` auto-captured + injected into the next cycle |
176
- | **Platform reach** | Claude Code only | Codex only | **Cross-harness** — Claude Code and Codex both first-class (hooks / agent roles / spawn dispatch / `doctor --matrix` / host-rendered prose) |
177
-
178
- > Native agents win on zero-setup, zero-overhead for trivial one-off edits. harnessed earns its keep the moment work spans multiple steps, sessions, or subagents — where freestyle drift and lost-in-chat state start costing you.
179
-
180
- **Don't take our word for it — we ran the experiment.** A published A/B evidence pack ([docs/evidence/2026-07-b1/](./docs/evidence/2026-07-b1/)) compares `/auto` against bare Claude Code on 4 machine-graded tasks, full transcripts included. Honest headline: on small, fully-specified tasks both arms score 100% and bare is 4-5× cheaper — use bare (or auto-lite) there. The orchestration value claim lives in fuzzy-spec / multi-session territory, which that experiment deliberately does not cover; bring us a real task from that territory and we'll run the same protocol on it.
181
-
182
- ---
183
-
184
- ## 🚀 Quick Start — 3 Options
185
-
186
- In order of increasing user intervention:
187
-
188
- ### 🎯 Auto Mode (Recommended for newcomers / don't want to think hard)
189
-
190
- ```
191
- /auto "requirement X"
192
-
193
- # For large requirements you can explicitly stage (usually not needed — AI auto-judges and routes in;
194
- # force it if you believe it's a large requirement):
195
- /auto "requirement X" --staged
196
- ```
197
-
198
- > Don't want to think hard, or just getting started — let harnessed handle everything. Runs the full 6 stages (research conditional → discuss → plan → task → verify → retro mandatory) without stopping. AI 1-shot auto-judges requirement complexity, suggests switching to `--staged` mode for large requirements (stops after each stage for review); before starting prompts "Do you have a clear understanding of the requirement?" — if no → auto-runs `/research` multi-source investigation; ends with mandatory `/retro` summary. Fail-fast on failure, resume via `harnessed resume`.
199
-
200
- ### 📂 Stage Mode (Recommended for power users / want to review intermediate results)
201
-
202
- ```
203
- /discuss "requirement X" # Strategic + Phase + Subtask 3-layer clarification
204
- /plan "requirement X" # Architecture (conditional) + plan persistence
205
- /task "subtask-1" # 4 subs serial (clarify → code → test → deliver)
206
- /verify "phase-1" # 10 subs conditional verification
207
- ```
208
-
209
- > Want to decide which stage to start from / review intermediate outputs — 5 masters callable independently, and each master still auto-fans-out all of that stage's subs internally.
210
-
211
- ### 🔬 Surgical Mode (Expert mode / you know what you want)
212
-
213
- ```
214
- /discuss-phase "..." # Run only Phase-layer clarification
215
- /plan-architecture "..." # Run only architecture review
216
- /verify-paranoid "..." # Run only the Paranoid Staff Engineer review
217
- # ... pick any of the other 20 sub-workflows
218
- ```
219
-
220
- > "I'm an expert, I'll decide myself" — skip the master, invoke a sub-workflow directly. Suits advanced users who know exactly which sub they need, or reuse of a single step.
221
-
222
- ---
223
-
224
- ## 📐 5-Stage Flow Diagram
225
-
226
- ```mermaid
227
- graph TD
228
- RS([⓪ /research — pre-stage multi-source investigation, optional]):::optional
229
- subgraph Discuss[① Discuss — Strategic Clarification]
230
- DM[/discuss master/]
231
- DS[discuss-strategic]
232
- DP[discuss-phase]
233
- DT[discuss-subtask]
234
- DM --> DS & DP & DT
235
- end
236
- subgraph Plan[② Plan — Task Planning]
237
- PM[/plan master/]
238
- PA[plan-architecture]
239
- PP[plan-phase]
240
- PM --> PA & PP
241
- end
242
- subgraph Task[③ Task — Execution]
243
- TM[/task master/]
244
- TC[task-clarify]
245
- TCo[task-code]
246
- TT[task-test]
247
- TD[task-deliver]
248
- TM --> TC --> TCo --> TT --> TD
249
- end
250
- subgraph Verify[④ Verify — Verification]
251
- VMs[/verify master/]
252
- VP[verify-progress]
253
- VC[verify-code-review]
254
- VPa[verify-paranoid]
255
- VQ[verify-qa]
256
- VS[verify-security]
257
- VD[verify-design]
258
- VE[verify-eval-review]
259
- VV[verify-validate-phase]
260
- VSi[verify-simplify]
261
- VM[verify-multispec]
262
- VMs --> VP & VC & VPa & VQ & VS & VD & VE & VV & VSi & VM
263
- end
264
- subgraph Ship[⑤ Ship — Release]
265
- SMs[/ship master/]
266
- SP[ship-preflight]
267
- SMs --> SP
268
- end
269
- RT([⑥ /retro — milestone summary, optional]):::optional
270
- RS --> Discuss
271
- Discuss --> Plan --> Task --> Verify --> Ship
272
- Ship --> RT
273
- classDef optional stroke-dasharray:5 5,fill:#f5f5f5,color:#666
274
- ```
275
-
276
- > Dashed boxes = optional standalones (`/research` pre-strategic investigation / `/retro` post-milestone summary); solid boxes = main 5-stage cadence (Ship stops at tag-ready; `publish.yml` CI does the actual publish).
277
-
278
- ### 28-Workflow Overview Table
279
-
280
- | Slash cmd | Stage | Type | Capability / Upstream | Brief |
281
- |-----------|-------|------|----------------------|-------|
282
- | `/auto` | All | **Super-master** | masterOrchestrator (across 6 stages) | One-shot full 6-stage run (research conditional → discuss → plan → task → verify → retro mandatory); AI 1-shot complexity judge + understanding check + mandatory retro; `--staged` opt-in stage gate |
283
- | `/discuss` | ① Discuss | Master | masterOrchestrator | 3 subs parallel gate-eval (chain-isolation rule) |
284
- | `/discuss-strategic` | ① Discuss | Sub | gstack `/office-hours` + `/plan-ceo-review` + planning-with-files | Strategic layer — mandatory governance for new features / new milestones / product direction (findings.md persisted) |
285
- | `/discuss-phase` | ① Discuss | Sub | GSD `/gsd-discuss-phase` + planning-with-files | Phase layer — ≥2 open decisions / gray-area clarification (findings.md + knowledge.md persisted) |
286
- | `/discuss-subtask` | ① Discuss | Sub | superpowers brainstorming + `/grill-with-docs` | Subtask layer — ≥2 approaches / core algorithm / API contract (ephemeral short discussion, not persisted) |
287
- | `/plan` | ② Plan | Master | masterOrchestrator | Serial invoke of 2 subs (architecture conditional → phase always) |
288
- | `/plan-architecture` | ② Plan | Sub | gstack `/plan-eng-review` | Architecture layer — mandatory governance gate for complex architecture |
289
- | `/plan-phase` | ② Plan | Sub | GSD `/gsd-plan-phase` + planning-with-files `/plan` | Plan layer — persists `task_plan.md` + `progress.md` |
290
- | `/task` | ③ Task | Master | masterOrchestrator | Serial invoke of 4 subs per subtask (clarify → code → test → deliver) |
291
- | `/task-clarify` | ③ Task | Sub | superpowers brainstorming + `/grill-with-docs` conditional | Subtask startup clarification gate |
292
- | `/task-code` | ③ Task | Sub | karpathy 4 principles + `/improve-codebase-architecture` / `/diagnosing-bugs` conditional | Subtask coding + cross-session progress.md sync |
293
- | `/task-test` | ③ Task | Sub | superpowers TDD red-green-refactor + `/diagnosing-bugs` conditional | TDD mandatory for core logic (alias mattpocock `/tdd`) |
294
- | `/task-deliver` | ③ Task | Sub | `harnessed checkpoint` completion gate + Agent Teams conditional | Until verbatim `COMPLETE` + R20.10 max_iter fallback |
295
- | `/verify` | ④ Verify | Master | masterOrchestrator | 10 subs conditional dispatch by scenario |
296
- | `/verify-progress` | ④ Verify | Sub | GSD `/gsd-verify-work` + `/gsd-progress` | Mandatory serial starting point — UAT acceptance + state sync |
297
- | `/verify-code-review` | ④ Verify | Sub | `code-review` multi-subagent fan-out | High-confidence findings in parallel |
298
- | `/verify-paranoid` | ④ Verify | Sub | gstack `/review` (Paranoid Staff Engineer) | Mandatory for critical-module pre-PR |
299
- | `/verify-qa` | ④ Verify | Sub | gstack `/qa` + playwright-cli / `@playwright/test` / webapp-testing | End-to-end QA (has_ui_changes conditional) |
300
- | `/verify-security` | ④ Verify | Sub | gstack `/cso` | OWASP / auth / secrets (has_auth_or_secrets conditional) |
301
- | `/verify-design` | ④ Verify | Sub | gstack `/design-review` + ui-ux-pro-max + design-taste-frontend | Design system consistency (has_design_changes conditional) |
302
- | `/verify-eval-review` | ④ Verify | Sub | GSD `/gsd-eval-review` | AI phase eval coverage audit (has_ai_phase conditional; pairs with plan-side gsd-ai-integration-phase) |
303
- | `/verify-validate-phase` | ④ Verify | Sub | GSD `/gsd-validate-phase` | Nyquist requirement→test coverage backfill (requires_coverage_audit conditional) |
304
- | `/verify-simplify` | ④ Verify | Sub | `code-simplifier` | Final serial simplification |
305
- | `/verify-multispec` | ④ Verify | Sub | 4-specialist Agent Team Pattern C | Critical release / large refactor PR escalation (mutual SendMessage cross-examination) |
306
- | `/ship` | ⑤ Ship | Master | masterOrchestrator | Release stage after Verify — preflight → delegate PR/deploy to gstack `/ship` → publish via CI (tag-ready boundary) |
307
- | `/ship-preflight` | ⑤ Ship | Sub | `harnessed release-preflight` | Read-only release-readiness gate (CHANGELOG `[Unreleased]` / version / git-clean / tag-absent); blocks on failure |
308
- | `/research` | Standalone | Standalone | Tavily / Exa MCP + ctx7 + GSD `/gsd-discuss-phase` | Multi-source investigation (Stage ① alternate) |
309
- | `/retro` | Standalone | Standalone | gstack `/retro` + planning-with-files RETROSPECTIVE.md | Project / milestone close-out summary |
310
-
311
- > Master orchestrator auto gate-routes to the right sub (chain-isolation rule — non-firing subs are transparently declared skipped).
312
- > Direct sub invocation also bypasses the master to run a single stage, e.g. `/discuss-strategic "new feature X"`.
313
-
314
- **Update workflow:** use `/harnessed-update` in Claude Code or `$harnessed-update` in Codex after setup. It previews with `harnessed update --all --dry-run --json`, asks for explicit confirmation, then runs `harnessed update --all --json` exactly once and reports the structured result. If reviewed third-party components remain `failed`, `unsupported`, or `retained`, it shows a second bounded repair proposal. Only after explicit confirmation for the exact component list may it run `harnessed update --all --repair --yes --json`, which can invoke `claude -p` or `codex exec`. Repair never grants plugin/MCP trust, reads credentials, expands host roots, or declares success without deterministic re-verification.
315
-
316
- ---
317
-
318
- ## ⚡ Usage Flow
319
-
320
- 5-stage three-layer-stack methodology — recommended driving via the 5 master orchestrators in series:
321
-
322
- ```
323
- /discuss → /plan → /task → /verify → /ship
324
- ① ② ③ ④ ⑤
325
- ```
326
-
327
- | Stage | Master | Main sub-workflows | Upstream collaboration |
328
- | ---- | ---- | ---- | ---- |
329
- | ① **Discuss** | `/discuss` | strategic / phase / subtask (3 in parallel) | gstack `/office-hours` + GSD `/gsd-discuss-phase` + superpowers brainstorming |
330
- | ② **Plan** | `/plan` | architecture (conditional) → phase | gstack `/plan-eng-review` + GSD `/gsd-plan-phase` + planning-with-files |
331
- | ③ **Task** | `/task` | clarify → code → test → deliver (4 serial per subtask) | karpathy principles + mattpocock moves + superpowers TDD + harnessed completion gate |
332
- | ④ **Verify** | `/verify` | progress → 5 parallel conditional → simplify (+ multispec critical) | GSD `/gsd-verify-work` + code-review + gstack `/review` / `/qa` / `/cso` / `/design-review` + code-simplifier |
333
- | ⑤ **Ship** | `/ship` | preflight (release-readiness gate) → delegate PR/deploy | `harnessed release-preflight` + gstack `/ship` + `publish.yml` CI (tag-ready boundary) |
334
-
335
- Practical example:
336
-
337
- ```bash
338
- # 1. Install workflow upstreams (one line installs gstack + GSD + superpowers + planning-with-files)
339
- harnessed setup
340
-
341
- # 2. Run the 5-stage cadence inside Claude Code
342
- /discuss "new feature X" # Strategic + Phase + Subtask 3-layer clarification
343
- /plan "new feature X" # Architecture (conditional) + plan (task graph persisted)
344
- /task "subtask-1: API contract" # 4 subs serial per subtask
345
- /verify "phase-1" # 10 subs conditional
346
- /ship # release-preflight gate → PR/deploy (tag-ready; publish via CI)
347
-
348
- # 3. Resume after interruption (any time)
349
- harnessed resume
350
- ```
351
-
352
- > You can also invoke subs directly to bypass the master and run just one layer, e.g. `/verify-paranoid` runs only the Paranoid Staff Engineer review.
353
-
354
- 📊 Detailed mermaid + full stage walkthroughs: [docs/WORKFLOW.md](./docs/WORKFLOW.md)
355
-
356
- ---
357
-
358
- ## 🗂️ Architecture (5-stage namespace-layered)
359
-
360
- ### 1. Directory Structure
361
-
362
- ```
363
- harnessed/
364
- ├── manifests/ # L1: upstream description layer (NOT vendored)
365
- ├── workflows/ # L6: composition skills (5-stage conductor's baton)
366
- │ ├── discuss/ # Stage ① 3 layers (strategic + phase + subtask)
367
- │ │ ├── auto/ # /discuss master gate-route
368
- │ │ ├── strategic/ # /discuss-strategic (gstack /office-hours + /plan-ceo-review)
369
- │ │ ├── phase/ # /discuss-phase (GSD /gsd-discuss-phase)
370
- │ │ └── subtask/ # /discuss-subtask (superpowers brainstorming)
371
- │ ├── plan/ # Stage ② (architecture + phase task graph)
372
- │ ├── task/ # Stage ③ (clarify + code + test + deliver)
373
- │ ├── verify/ # Stage ④ (progress + code-review + paranoid + qa + cso + design + simplify + multispec)
374
- │ ├── ship/ # Stage ⑤ (preflight release-readiness gate → delegate PR/deploy to gstack /ship; tag-ready)
375
- │ ├── research/ # standalone Stage ① alternate
376
- │ ├── retro/ # standalone post-⑤ milestone close
377
- │ ├── capabilities.yaml # L5a: ~100 entries, 7 categories SoT
378
- │ ├── defaults.yaml # ralph_max_iterations per workflow phase
379
- │ ├── judgments/ # L5a: three-layer-stack criteria + parallelism + tdd + fallback + rules-routing
380
- │ │ ├── strategic-gate.yaml
381
- │ │ ├── phase-gate.yaml
382
- │ │ ├── subtask-gate.yaml
383
- │ │ ├── parallelism-gate.yaml # L5b execution mechanism routing
384
- │ │ ├── tdd-gate.yaml
385
- │ │ ├── fallback.yaml # 3 rules: skip_with_transparency + override + chain_isolation
386
- │ │ ├── web-design-routing.yaml # UI design tool routing
387
- │ │ ├── web-testing-routing.yaml # E2E / browser testing tool routing
388
- │ │ ├── web-search-routing.yaml # Web search / doc fetch routing
389
- │ │ └── stage-routing.yaml # master orchestrator sub-stage routing
390
- │ └── disciplines/ # L0: global cross-stage behavior baseline
391
- │ ├── karpathy.yaml # 4 principles + ≤200L
392
- │ ├── output-style.yaml # BLUF + no-emoji + no-em-dash
393
- │ ├── language.yaml # zh-Hans default + English preserve
394
- │ ├── operational.yaml # biome preempt + A7 + commit safety
395
- │ ├── priority.yaml # skill conflict arbitration
396
- │ └── protocols.yaml # cc-handoff design doc self-contained
397
- ├── routing/ # L4: routing engine SSOT (decision_rules.yaml)
398
- ├── schemas/ # L3: JSON Schema (IDE / CI consume)
399
- ├── src/ # L4: TS engine (platform + workflow + routing + cli + installers + checkpoint + audit + state)
400
- ├── tests/ # vitest unit + integration + dogfood (R8.1 dogfood-first)
401
- ├── scripts/ # CI gate (check-workflow-schema, transparency-verdict, state-archive)
402
- ├── .planning/ # project memory (STATE + ROADMAP + REQUIREMENTS + per-phase + milestones)
403
- └── docs/adr/ # architecture decision records
404
- ```
405
-
406
- ### 2. Logical Layering (8 layers)
407
-
408
- ```
409
- ┌────────────────────────────────────────────────────────────┐
410
- │ L7 User-facing slash cmd + harnessed CLI │
411
- │ /discuss /plan /task /verify /ship (master) + 20 sub + /research /retro + /auto super-master
412
- │ + direct gstack invoke (30+ optional): /office-hours /review /qa /...
413
- ├────────────────────────────────────────────────────────────┤
414
- │ L6 Workflow orchestration (workflows/<stage>/<sub>/) │
415
- ├────────────────────────────────────────────────────────────┤
416
- │ L5b Execution Mechanism (orthogonal): subagent / Agent Teams │
417
- │ / main session + harnessed completion gate │
418
- │ parallelism-gate.yaml: default subagent → escalate 5 triggers │
419
- │ Pattern A full-stack three-way / B opposing hypotheses / C multi-dim review │
420
- ├────────────────────────────────────────────────────────────┤
421
- │ L5a Capability + Judgment + Defaults SoT │
422
- │ capabilities.yaml (7 categories) + judgments/ (10 files) + │
423
- │ defaults.yaml │
424
- ├────────────────────────────────────────────────────────────┤
425
- │ L4 Runtime engine (workflow / routing / handlers) │
426
- ├────────────────────────────────────────────────────────────┤
427
- │ L3 TypeBox schema + CI gate │
428
- ├────────────────────────────────────────────────────────────┤
429
- │ L2 Installer + Manifest engine │
430
- ├────────────────────────────────────────────────────────────┤
431
- │ L1 Upstream components (NOT vendored) │
432
- ├────────────────────────────────────────────────────────────┤
433
- │ L0 Discipline Substrate (applies globally) │
434
- │ karpathy principles + output-style + language + operational + │
435
- │ priority + protocols (applied universally to L1-L7) │
436
- └────────────────────────────────────────────────────────────┘
437
- ```
438
-
439
- ### 3. Cross-cutting Capabilities (capabilities.yaml — 7 categories, ~100 entries)
440
-
441
- ```
442
- behavioral (6): karpathy-guidelines + output-style + language + operational + priority + protocols
443
- tool-slash-cmd (~60): gstack 30+ optional + gsd 10+ + mattpocock 12 high-frequency + etc.
444
- tool-mcp (3): chrome-devtools-mcp / tavily-mcp / exa-mcp
445
- tool-cli (3): ctx7 / gws / completion-gate
446
- tool-plugin (2): planning-with-files / @playwright/test
447
- tool-bundled (2): webapp-testing / playwright-cli
448
- agent-platform (3): agent-teams-create / send-message / shutdown
449
- ```
450
-
451
- ### 4. Data Flow Example (user invokes `/discuss "new feature X"`)
452
-
453
- ```
454
- [L7] User invokes /discuss "new feature X"
455
- ↓
456
- [L6] workflows/discuss/auto/workflow.yaml master orchestrator
457
- ↓
458
- [L5a] judgments.strategic-gate.fires + phase-gate.fires + subtask-gate.fires (3-way parallel eval)
459
- ↓
460
- [L4] judgmentResolver.ts (4-level ref split) + exprBuilder.ts (expr-eval evaluate)
461
- ↓
462
- [L0] discipline.priority-hierarchy arbitrates tool conflicts / output-style formats output
463
- ↓
464
- [fires=true sub] → invoke sub-workflow (/discuss-strategic / /discuss-phase / /discuss-subtask)
465
- ↓ for each sub:
466
- ├─ behavioral_layer: karpathy-guidelines (always-on)
467
- ├─ tools_available: planning-with-files / ctx7 / mattpocock by-condition
468
- ├─ parallelism: judgments.parallelism-gate.<route>.fires (L5b mechanism)
469
- └─ phase invocations execute via capability template interpolation
470
- ↓
471
- [fallback.yaml chain-isolation] 3 layers judged independently, not serially dependent
472
- [Skip transparency declaration] non-firing subs → "⚠️ Skipped <sub> because <reason>"
473
- ↓
474
- planning-with-files /plan (cross-cutting tool) → write artifacts to .planning/<phase-id>/
475
- ↓
476
- [L4] state.ts writeCurrentWorkflow (proper-lockfile) + audit.append (12-field JSONL)
477
- ```
478
-
479
- ### 5. Decision Routing Matrix (rules-based, codified in judgments + capabilities)
480
-
481
- | Scenario | Default → Escalate |
482
- |------|---------------------|
483
- | Parallelism mechanism | subagent → Agent Teams Pattern A/B/C (5 triggers) |
484
- | UI design primary plan | **two-stage**: ui-ux-pro-max (audience / interaction logic / design axis — structure) → design-taste-frontend (anti-slop visual polish overlay, cross-agent taste-skill) |
485
- | E2E browser exploration | playwright-cli (one-line Bash, token-efficient) |
486
- | E2E commit-able TS | @playwright/test default |
487
- | E2E Python backend linkage | webapp-testing |
488
- | Performance / a11y / memory diagnostics | chrome-devtools-mcp |
489
- | Web search (keyword) | Tavily MCP default |
490
- | Web search (descriptive / academic) | Exa MCP |
491
- | Library API docs | ctx7 CLI |
492
- | GitHub URL | gh CLI |
493
- | Single URL fetch | WebFetch built-in |
494
- | Gmail / Drive / Calendar | gws CLI |
495
- | Architecture review (complex) | gstack /plan-eng-review |
496
- | TDD mandatory (core algorithm) | superpowers TDD OR mattpocock /tdd |
497
- | Critical module PR | gstack /review |
498
- | Large refactor PR multi-dim review | 4-specialist Agent Team Pattern C |
499
- | Cross-session hand-off | discipline.protocols self-contained design doc |
500
- | `/auto` complexity for large requirements | AI 1-shot judge → auto-suggest `--staged` (n abort suggests manual `/discuss`) |
501
- | `/auto` requirement understanding | prompt before start → n auto-adds `/research` multi-source investigation |
502
-
503
- ---
504
-
505
- ## 🛠️ Operational Commands
506
-
507
- > These are harnessed's own maintenance commands (setup / health check / backup-rollback / state recovery, etc.). For day-to-day feature development just use the slash commands above — you usually don't need these.
508
-
509
- **v4.0 — orchestration brain.** Slash commands run clarification in the main Claude Code session (so questions reach you), then spawn CC-native subagents (enabling Agent Teams + clarification round-trips). harnessed provides the gate evaluation (`harnessed gates`) and spawn-ready prompts (`harnessed prompt`); the main session does the spawning. `harnessed run` remains for CI/headless use.
510
-
511
- ### CLI Commands
512
-
513
- | Command | Description |
514
- | ---- | ---- |
515
- | `harnessed setup [--no-update-reminder]` | One-time setup; installs workflow skills to `~/.claude/skills/` + MCP to `~/.claude.json`; installs the cache-only SessionStart update reminder by default; `--no-update-reminder` persists an opt-out |
516
- | `harnessed gates <master>` | Evaluate which sub-workflows fire for a master stage (JSON: fire/skip/parallelism). Used by slash commands to orchestrate native spawns. |
517
- | `harnessed prompt <sub>` | Output a spawn-ready prompt (role + checklist + disciplines + completion/clarification protocols) for a sub-workflow. |
518
- | `harnessed checkpoint <action> <sub>` | Record sub-workflow start/complete/fail to `~/.claude/harnessed/checkpoints/`. |
519
- | `harnessed checkpoint adopt [--from <host>]` | Cross-host relay: read-only copy of the other host's active workflow slot into this host's state root; the source is never modified; `--from <host>` overrides the inferred source host. |
520
- | `harnessed` (no args) | Zero-arg you-are-here: active-workflow dashboard + `NEXT: auto\|manual\|done` + run hint; `--json` machine-readable; no active workflow → onboarding hint (comet `/comet` analog, read-only). |
521
- | `harnessed next` | Deterministic next-step contract. Within a workflow: `NEXT: auto\|manual\|done`. When the workflow's subs are all resolved it falls through to the next **cross-unit** (next phase/task derived from `.planning/` disk state) with an exit-code contract (`0` advance · `2` done · `10` blocked). |
522
- | `harnessed advance` | Forward continuation — print the next work unit (next phase/task) across the milestone and the command to run it. Print-only (the main session runs the next `/auto`); refuses to step past an incomplete earlier phase (`--force` overrides); `--json` drives a `while harnessed advance --json; do :; done` loop. |
523
- | `harnessed reject <sub>` | Mark a sub as user-rejected (terminal, distinct from `failed`). |
524
- | `harnessed compact [--tokens <n>]` | Summarize+evict resolved ledger entries (G6-safe: `fail_count>0` never evicted); auto-triggers on `checkpoint complete --tokens`. |
525
- | `harnessed workflows` | List in-flight workflows (one per repo). |
526
- | `harnessed learn "<lesson>"` | Append a prose learning to this repo's `.planning/LEARNINGS.md`. |
527
- | `harnessed run <name>` | Run a workflow via in-process SDK spawn (CI/headless mode). Slash commands use CC-native spawn instead. |
528
- | `harnessed resume` | Resume from the most recent checkpoint after a session interruption |
529
- | `harnessed status` | Current phase + lock holder |
530
- | `harnessed doctor` | Health check (Node / MCP / jq / Win bash / routing / token budget / skill integrity / GateGuard conflict / update-available / stale hooks, etc.). The **stale hooks** check flags orphaned harnessed `Stop`/`UserPromptSubmit` entries in `~/.claude/settings.json` that point at a deleted `bin/*.mjs` — the cause of a `MODULE_NOT_FOUND` error on every prompt after a raw `npm uninstall -g harnessed`. Fix: run `harnessed uninstall` (it strips them) **before** removing the package. |
531
- | `harnessed update [--check\|--dry-run\|--rollback [version]\|--all\|--upstreams\|--migration-report] [--json] [--platform <host>] [--non-interactive] [--repair --yes]` | Self-update, channel-aware: binary installs replace themselves in place from GitHub releases (sha256 + ed25519-signature verified — releases ship `<asset>.sha256.sig`, signed-release contract since 4.32.19; the replaced version is banked for rollback); npm installs run `npm i -g harnessed@latest`. `--check` reports versions without installing; `--dry-run` previews without writing; `--rollback [version]` (binary installs only) atomically restores a banked previous binary — npm installs are pointed at `npm i -g harnessed@<version>`; `--all` (alias `--upstreams`) requests fresh-runtime closure, including owned assets and reviewed third-party updates; `--json` emits one structured result; `--platform <host>` selects `claude` or `codex`; `--non-interactive` skips prompts, and repair automation additionally requires explicit `--repair --yes`; `--repair --yes` invokes a bounded, user-authorized agent repair and then deterministic verification; `--migration-report` is a read-only stale-state inventory |
532
- | `harnessed auto-update on\|off\|status` | Auto-update consent + status: `on` and `off` set the background self-update consent in the host's preferences file (every other key is preserved); `status` merges that consent with the last run state. `--platform claude\|codex` picks the host; `--json` emits the merged result as one JSON object. The default host is the detected one; on a machine with both hosts installed, pass `--platform` to write the other host's root. |
533
- | `harnessed release-preflight [--release-version <semver>]` | Read-only release-readiness gate (CHANGELOG `[Unreleased]` / version / git-clean / tag-absent); `--release-version` overrides manifest discovery; exits 1 if not ready. The Ship-stage gate. |
534
- | `harnessed retro --done` | Reset the retro-reminder phase counter after running `/retro` (clears the per-turn RETRO-DUE nudge). |
535
- | `harnessed install <name>` | Install an upstream manifest |
536
- | `harnessed uninstall [name]` | Reverse uninstall — runs the manifest's declared `spec.uninstall` teardown (cmd + `$HOME`-confined, idempotent `cleanup_paths`) for the skill-installing methods (`npm-cli` / `git-clone-with-setup` / `npx-skill-installer`); other methods keep their per-method reverse |
537
- | `harnessed backup` | Snapshot backup management |
538
- | `harnessed rollback <timestamp>` | One-line rollback of a **backup snapshot** (EOL preserve + sha1 verify) — distinct from `update --rollback`, which restores a previous **compiled binary** |
539
- | `harnessed gc` | Clean up expired backups |
540
- | `harnessed audit-log` | Routing transparency log query (supports `--filter` jq expression) |
541
- | `harnessed agents-md` | Write or update the marker-delimited harnessed block in `<CODEX_HOME>/AGENTS.md` without changing surrounding prose |
542
- | `harnessed audit` | Audit manifest and runtime self-consistency (`--skip-runtime` checks the manifest only) |
543
- | `harnessed check-docs` | Check `.planning/` documentation discipline and return a non-zero exit for advisory or blocking findings |
544
- | `harnessed eval` | Run the deterministic orchestrator-behavior regression suite; `harnessed eval record` captures a replayable scenario |
545
- | `harnessed exempt-gateguard` | Persist the `.planning/**` GateGuard exemption that resolves the dual-guard conflict |
546
- | `harnessed facts <master>` | Emit deterministic and unresolved gate facts for `harnessed gates --context-file` |
547
- | `harnessed install-base [--dry-run]` | Install the phase 1.3 base profile; `--dry-run` previews without writing |
548
- | `harnessed manifest-add <upstream>` | Add an upstream adapter through the EE-5 merge gate |
549
- | `harnessed research --query <text>` | Run the headless research workflow; `--dry-run` previews without spawning |
550
-
551
- **Fresh-runtime closure (Phase 78):** `harnessed update --all --json` first performs self-update, then hands off to a verified fresh runtime through an absolute executable/package entry path. Only that runtime refreshes harnessed-owned workflow/hook assets and updates already-installed third-party components through reviewed adapters for the selected host. Self-update failure prevents third-party mutation; handoff failure reports incomplete closure even if harnessed itself changed. GSD is the first reviewed adapter, with runtime identity/version verification before and after its upstream-owned update action. Components without a reviewed adapter report `unsupported`; missing third-party components remain `not-installed` and are not installed.
552
-
553
- `--json` writes exactly one JSON object to stdout (`status`, `components`, `warnings`, `error`, plus schema/operation/mode/host/runtime metadata); diagnostics and child-process output go to stderr. `unsupported` and `retained` produce top-level `partial` and exit `1`, never all-success: `retained` means an update failed but the previous installation still verifies. Completed updates and valid previews (`complete` / `planned`) exit `0`; failed/incomplete execution exits `1`; invalid arguments/protocol exit `2`. Respect each component's `restartRequired` before continuing.
554
-
555
- Package self-update applies only after proving that the selected npm executable's global `harnessed` package is the running, locked package (including its declared binary entry). The updater probes `npm prefix -g` and `npm root -g --prefix <prefix>`, then pins the same prefix for installation. Unknown/mismatched targets and linked global package slots fail closed with exit `1`, before any installer, fresh-runtime handoff or third-party update. Bun package apply is currently refused as `package-target-unproven`, without npm fallback; version checks, previews and already-current installs remain available.
556
-
557
- ### Flags
558
-
559
- > All commands **apply (immediate write)** by default — no flag needed. Advanced users can add `--dry-run` to preview.
560
-
561
- | Flag | Description |
562
- | ---- | ---- |
563
- | `--dry-run` | Preview without writing to disk (advanced opt-in) |
564
- | `--non-interactive` | CI / scripted scenarios |
565
- | `--system` | Allow L4 global install (otherwise downgrade to L1 npx ephemeral) |
566
- | `--yes` | Skip interactive confirm on uninstall |
567
- | `--json` | Machine-readable stdout (zero-arg dashboard / `next` / `advance`, etc.); errors that escape to the process root also emit a single-line `{"error":{"message":…}}` envelope on stdout, so `JSON.parse(stdout).error` is a reliable failure probe |
568
- | `--full-diff` | Expand diffs folded above 200 lines |
569
- | `--no-color` | Force nocolor (even on TTY) |
570
- | `--task <text>` | `run` — task description (passed as workflow `gateContext.task`) |
571
- | `--task-stdin` | `run` — read task description from stdin until EOF (avoids shell-escape on quotes/$/`) |
572
-
573
-
574
- ---
575
-
576
- ## ❓ FAQ
577
-
578
- <details>
579
- <summary><b>Q1. Do I still need to install superpowers / gstack / GSD upstreams after installing harnessed?</b></summary>
580
-
581
- <br>
582
-
583
- Yes, but **the user experience = one command**:
584
-
585
- ```bash
586
- harnessed setup # Auto-installs gstack + GSD + superpowers + planning-with-files; 28 workflow skills land in ~/.claude/skills/ + Agent Teams env var auto-written to ~/.claude/settings.json
587
- ```
588
-
589
- Think `brew install <formula>` pulling the full dependency set — you don't need to `brew install` each dependency separately.
590
-
591
- </details>
592
-
593
- <details>
594
- <summary><b>Q2. Why not just vendor superpowers / gstack into the harnessed repo?</b></summary>
595
-
596
- <br>
597
-
598
- 4 reasons:
599
-
600
- 1. **Differentiation philosophy** — harnessed is the "assembly-ist package manager" counterposed to the "all-in-one self-built" camp. Vendoring = losing the wedge → becoming yet another plugin pack
601
- 2. **License + attribution nightmare** — vendoring 4-5 actively maintained upstreams = a complex license patchwork
602
- 3. **Upstream upgrades flip direction** — current manifest description lets users re-install for the latest version on upstream upgrade; vendoring forces manual code sync and falls perpetually behind
603
- 4. **Bus factor 1** — a single maintainer keeping 4-5 vendored upstreams in sync = accelerated burnout
604
-
605
- </details>
606
-
607
- <details>
608
- <summary><b>Q3. gstack / GSD / superpowers all look like plan/discuss tools — aren't they overlapping?</b></summary>
609
-
610
- <br>
611
-
612
- **No**. They are different stages of the three-layer stack:
613
-
614
- | Stage | Upstream | Responsibility |
615
- | ---- | ---- | ---- |
616
- | Governance | gstack | Multi-role decision gates (CEO / EM / Designer / Paranoid Engineer) |
617
- | Brainstorming | superpowers | Subtask design clarification, alternative comparison |
618
- | Orchestration | GSD | High-level phase task graph + dependency analysis |
619
- | Persistence | planning-with-files | Persists `task_plan.md` / `progress.md` / `findings.md` |
620
-
621
- `/discuss /plan /task /verify /ship` — the 5 masters string the 5 stages together; each master internally delegates to its sub. Each stage does a different thing and feeds the next. **No merging**.
622
-
623
- </details>
624
-
625
- <details>
626
- <summary><b>Q4. Do workflow phases run automatically or wait for the user?</b></summary>
627
-
628
- <br>
629
-
630
- Depends on the `pause` field in `workflows/<name>/SKILL.md` frontmatter:
631
-
632
- - `pause: human_review` → blocks waiting for user approval (governance gate / final lock, e.g. `/discuss-strategic` gstack `/office-hours` + `/plan-architecture` `/plan-eng-review` lock-in gate)
633
- - No `pause` → auto-chains to the next phase
634
-
635
- Each phase output is written to `~/.claude/harnessed/checkpoints/`; after a session interruption `harnessed resume` continues from the latest checkpoint.
636
-
637
- </details>
638
-
639
- <details>
640
- <summary><b>Q5. Is harnessed itself a CC plugin?</b></summary>
641
-
642
- <br>
643
-
644
- A hybrid:
645
-
646
- - `npx harnessed@latest setup` runs the **Node.js CLI** (`bin/harnessed`) — or use the standalone binary from the one-line installer (no Node.js required)
647
- - setup installs **workflow skills** (markdown) into `~/.claude/skills/`, loaded by the Claude Code runtime
648
- - `/discuss` / `/plan` / `/task` / `/verify` etc. are slash commands inside CC that trigger skill execution
649
- - The CLI and the CC skills share the `~/.claude/harnessed/checkpoints/` state directory
650
-
651
- </details>
652
-
653
- ---
654
-
655
-
656
- ## License
657
-
658
- [Apache-2.0](./LICENSE) — see [NOTICE](./NOTICE) (includes Harness Inc. trademark disclaimer)
659
-
660
- Support development: [![Sponsor](https://img.shields.io/github/sponsors/easyinplay?logo=github&label=Sponsor)](https://github.com/sponsors/easyinplay)