@ionivetech/mugiwara 0.5.5 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +3 -2
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.cursor-plugin/plugin.json +1 -1
  5. package/.kimi-plugin/plugin.json +1 -1
  6. package/.opencode/commands/mugiwara-continue.md +16 -0
  7. package/.opencode/commands/mugiwara-execute.md +6 -4
  8. package/.opencode/commands/mugiwara-heal.md +6 -4
  9. package/.opencode/commands/mugiwara-plan.md +6 -4
  10. package/.opencode/commands/mugiwara-review.md +6 -4
  11. package/.opencode/commands/mugiwara-security.md +6 -4
  12. package/.opencode/commands/mugiwara-ship.md +6 -4
  13. package/.opencode/commands/mugiwara.md +4 -2
  14. package/.opencode/commands/using-mugiwara.md +7 -13
  15. package/.opencode/mugiwara-helpers.mjs +24 -0
  16. package/.opencode/plugins/mugiwara.mjs +28 -8
  17. package/AGENTS.md +1 -1
  18. package/GEMINI.md +1 -1
  19. package/README.md +311 -127
  20. package/content/agents/brook-healing.md +17 -3
  21. package/content/agents/chopper-checkpoint.md +17 -3
  22. package/content/agents/eval-runner.md +17 -2
  23. package/content/agents/franky-gates.md +19 -5
  24. package/content/agents/jinbe-security.md +19 -3
  25. package/content/agents/luffy-orchestrator.md +6 -3
  26. package/content/agents/memory-keeper.md +15 -0
  27. package/content/agents/nami-planner.md +21 -6
  28. package/content/agents/onboarding-guide.md +145 -0
  29. package/content/agents/resume-coordinator.md +21 -5
  30. package/content/agents/robin-reviewer.md +18 -3
  31. package/content/agents/sanji-quality.md +19 -4
  32. package/content/agents/skeptic-verifier.md +18 -3
  33. package/content/agents/usopp-brainstorm.md +17 -3
  34. package/content/agents/zoro-execution.md +18 -3
  35. package/content/skills/mugiwara-backend/SKILL.md +1 -1
  36. package/content/skills/mugiwara-brainstorm/SKILL.md +12 -1
  37. package/content/skills/mugiwara-checkpoint/SKILL.md +2 -2
  38. package/content/skills/mugiwara-contract-first/SKILL.md +2 -36
  39. package/content/skills/mugiwara-contract-first/references/process.md +37 -0
  40. package/content/skills/mugiwara-execution/SKILL.md +51 -34
  41. package/content/skills/mugiwara-execution/references/dispatch.md +41 -0
  42. package/content/skills/mugiwara-execution/references/resume-batching.md +32 -0
  43. package/content/skills/mugiwara-frontend/SKILL.md +1 -1
  44. package/content/skills/mugiwara-gates/SKILL.md +32 -30
  45. package/content/skills/mugiwara-healing/SKILL.md +1 -1
  46. package/content/skills/mugiwara-orchestration/SKILL.md +59 -39
  47. package/content/skills/mugiwara-orchestration/references/closure.md +34 -0
  48. package/content/skills/mugiwara-orchestration/references/delegation-pillars.md +40 -0
  49. package/content/skills/mugiwara-orchestration/references/triage-escalation.md +97 -0
  50. package/content/skills/mugiwara-planning/SKILL.md +29 -27
  51. package/content/skills/mugiwara-planning/references/plan-template.md +42 -0
  52. package/content/skills/mugiwara-pr/SKILL.md +9 -2
  53. package/content/skills/mugiwara-quality/SKILL.md +17 -6
  54. package/content/skills/mugiwara-resume/SKILL.md +7 -2
  55. package/content/skills/mugiwara-review/SKILL.md +20 -1
  56. package/content/skills/mugiwara-review/references/code-attributes.md +38 -0
  57. package/content/skills/mugiwara-root-cause/SKILL.md +3 -30
  58. package/content/skills/mugiwara-root-cause/references/process.md +35 -0
  59. package/content/skills/mugiwara-security/SKILL.md +17 -32
  60. package/content/skills/mugiwara-security/references/owasp-top10.md +12 -0
  61. package/content/skills/mugiwara-security/references/rationalizations.md +8 -0
  62. package/content/skills/mugiwara-ship/SKILL.md +13 -10
  63. package/content/skills/mugiwara-testcases/SKILL.md +7 -0
  64. package/content/skills/mugiwara-workflow/SKILL.md +74 -77
  65. package/content/skills/mugiwara-workflow/references/workspace-layout.md +50 -0
  66. package/content/skills/using-mugiwara/SKILL.md +13 -18
  67. package/dist/mugiwara.js +293 -47
  68. package/gemini-extension.json +1 -1
  69. package/hooks/mugiwara-mode-tracker.ts +0 -0
  70. package/hooks/session-start.ts +1 -1
  71. package/package.json +11 -4
  72. package/plugin.json +1 -1
  73. package/references/multi-actor.md +1 -1
  74. package/scripts/evidence.sh +28 -6
  75. package/scripts/gate-selftest.ts +317 -0
  76. package/scripts/initiative.ts +262 -0
  77. package/scripts/lane.sh +18 -1
  78. package/scripts/mission-report.sh +237 -36
  79. package/scripts/onboard.ts +292 -0
  80. package/scripts/release-notes.ts +42 -13
  81. package/scripts/savepoint.sh +151 -60
  82. package/scripts/validate-content.ts +97 -0
  83. package/scripts/verify-install.ts +72 -0
  84. package/src/cli.ts +20 -3
  85. package/src/installer.ts +71 -8
  86. package/src/mission.ts +117 -5
  87. package/src/targets/claude.ts +45 -9
  88. package/src/targets/generic.ts +1 -1
  89. package/src/targets/opencode.ts +31 -10
  90. package/docs/concepts/agents.md +0 -53
  91. package/docs/concepts/audit-trail.md +0 -65
  92. package/docs/concepts/comparison.md +0 -58
  93. package/docs/concepts/config.md +0 -55
  94. package/docs/concepts/cost.md +0 -45
  95. package/docs/concepts/execution-model.md +0 -92
  96. package/docs/concepts/git-strategy.md +0 -62
  97. package/docs/concepts/lanes.md +0 -82
  98. package/docs/concepts/modes.md +0 -73
  99. package/docs/concepts/pr-summary.md +0 -54
  100. package/docs/concepts/skills.md +0 -55
  101. package/docs/concepts/workflow.md +0 -89
  102. package/docs/getting-started.md +0 -158
  103. package/docs/index.md +0 -56
  104. package/docs/install/antigravity.md +0 -45
  105. package/docs/install/claude.md +0 -77
  106. package/docs/install/cli.md +0 -115
  107. package/docs/install/codex.md +0 -44
  108. package/docs/install/copilot.md +0 -45
  109. package/docs/install/cursor.md +0 -45
  110. package/docs/install/gemini.md +0 -44
  111. package/docs/install/index.md +0 -53
  112. package/docs/install/kimi.md +0 -45
  113. package/docs/install/opencode.md +0 -143
  114. package/docs/install/pi.md +0 -46
  115. package/docs/reference/adoption-guide.md +0 -72
  116. package/docs/reference/agent-anatomy.md +0 -72
  117. package/docs/reference/compliance-matrix.md +0 -81
  118. package/docs/reference/developer-onboarding.md +0 -89
  119. package/docs/reference/enforcement.md +0 -35
  120. package/docs/reference/harness-matrix.md +0 -41
  121. package/docs/reference/skill-anatomy.md +0 -71
  122. package/docs/troubleshooting.md +0 -91
  123. package/evals/cases/_no-skill.json +0 -16
  124. package/evals/cases/adversarial-pressure-fake-pass.json +0 -25
  125. package/evals/cases/adversarial-pressure-skip-review.json +0 -25
  126. package/evals/cases/lane-exploratory-vague.json +0 -24
  127. package/evals/cases/lane-sensitivity-payment.json +0 -24
  128. package/evals/cases/positive-refactor-existing-tests.json +0 -25
  129. package/evals/cases/positive-resume-mid-mission.json +0 -24
  130. package/evals/cases/routing-agent-security.json +0 -25
  131. package/evals/cases/routing-auth-feature.json +0 -26
  132. package/evals/cases/routing-backend.json +0 -25
  133. package/evals/cases/routing-bug-one-file.json +0 -26
  134. package/evals/cases/routing-claim-audit.json +0 -25
  135. package/evals/cases/routing-context-budget.json +0 -25
  136. package/evals/cases/routing-contract-first.json +0 -25
  137. package/evals/cases/routing-execution.json +0 -25
  138. package/evals/cases/routing-frontend.json +0 -26
  139. package/evals/cases/routing-gates.json +0 -25
  140. package/evals/cases/routing-git.json +0 -25
  141. package/evals/cases/routing-healing.json +0 -25
  142. package/evals/cases/routing-lessons.json +0 -25
  143. package/evals/cases/routing-orchestration.json +0 -25
  144. package/evals/cases/routing-planning.json +0 -26
  145. package/evals/cases/routing-pr.json +0 -25
  146. package/evals/cases/routing-quality.json +0 -25
  147. package/evals/cases/routing-ship.json +0 -26
  148. package/evals/cases/routing-sunset.json +0 -25
  149. package/evals/cases/routing-using-mugiwara.json +0 -25
  150. package/evals/cases/routing-workflow.json +0 -25
  151. package/evals/floor.json +0 -6
package/README.md CHANGED
@@ -4,10 +4,12 @@
4
4
  [![npm downloads](https://img.shields.io/npm/dm/@ionivetech%2fmugiwara)](https://www.npmjs.com/package/@ionivetech/mugiwara)
5
5
  [![License: MIT](https://img.shields.io/github/license/ionivetech/mugiwara)](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
6
6
 
7
- **Ship quality code, not just fast code.** Mugiwara gives your AI agent a
8
- governed engineering team — 14 specialists who plan, build, audit, review, and
9
- heal with evidence at every step. No runtime, no API keys, no servers. Just
10
- markdown your agent already knows how to read.
7
+ **Your agent writes the code. Mugiwara proves it.**
8
+
9
+ A governed engineering crew for your AI agent evidence at every step, and a
10
+ process that sizes itself to the work. A typo costs nothing. An auth migration
11
+ gets all nine waves. No runtime, no API keys, no servers. Just markdown your
12
+ agent already knows how to read.
11
13
 
12
14
  Works on Claude Code, opencode, Copilot, Gemini, and 8 more platforms.
13
15
 
@@ -21,22 +23,63 @@ every agent, every skill, every rule is static markdown.
21
23
 
22
24
  → [Full pitch: why mugiwara vs just asking your agent](docs/concepts/comparison.md)
23
25
 
24
- ## Capabilities
25
-
26
- | Feature | What you get |
27
- |---------|-------------|
28
- | **Zero runtime** | Pure markdown. No servers, no API keys, no dependencies beyond your agent. |
29
- | **14 specialist agents** | Each with tuned temperature, step limits, and role boundaries. Read-only auditors. |
30
- | **26 skills** | Portable playbooks: TDD execution, STRIDE security, 4-phase debugging, contract-first API design |
31
- | **Deterministic lane sizing** | Work auto-sized from `git diff`. Typo = instant fix. Auth migration = full 9-wave pipeline. |
32
- | **9-wave gated pipeline** | Triage → Brainstorm → Plan → Execute → Audit → Quality → Gates → Review+Security → Heal → Closure |
33
- | **Evidence trail** | `.mugiwara/` workspace on disk: plans, audit reports, blocker ledger, mission reports. Reviewer reads in 30s. |
34
- | **Self-healing** | Brook reads all failures at once, fixes root causes, re-runs verification. ≤3 cycles. |
35
- | **3 autonomy modes** | Guided (human steers) / Semi (auto branch+commit) / Auto (hands-off). Switch mid-session. |
36
- | **12 platforms** | Native plugins for Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, Pi, Antigravity. CLI for Windsurf, Cline, Kilo. |
37
- | **Cost aware** | Token budget per lane. Warn at 1.5×, pause at 3×. Cost surfaced in every mission report. |
38
- | **Multi-actor safe** | Two engineers, one repo. Reset refuses without `--force`. Branch-scoped state. |
39
- | **Compliance matrix** | Rule compliance per model published with failures. Gemini tier 2 ≠ Claude tier 1. Documented, not hidden. |
26
+ ## See the evidence
27
+
28
+ A closed mission leaves a report you can actually read. This is the exact
29
+ format `scripts/mission-report.sh` produces:
30
+
31
+ # Mission: invitation-accepted-flow . 2026-08-11
32
+
33
+ **Lane** full . **Mode** guided . **Actor** farid . **Branch** feature/MKR-412
34
+
35
+ ## What changed
36
+
37
+ 11 files, +340 LOC
38
+ Sensitive paths: src/auth/
39
+
40
+ ## Waves
41
+
42
+ | Wave | Artifact | Verdict |
43
+ |------|----------|---------|
44
+ | Execute (Wave 3) | `01-execution.md` | PASS |
45
+ | Checkpoint (Wave 4) | `02-audit.md` | PASS |
46
+ | Quality (Wave 5) | `03-quality.md` | PASS |
47
+ | Gates (Wave 6) | `04-gates.md` | PASS |
48
+ | Healing (Wave 8) | `05-healing.md` | PASS |
49
+ | Closure (Wave 9) | `06-closure.md` | GO |
50
+
51
+ ## Review & blockers
52
+
53
+ Review + security files: invitation-accepted-flow-review.md, invitation-accepted-flow-security.md
54
+ Findings: 3
55
+ Blocker ledger rows: 1
56
+
57
+ ## State
58
+
59
+ | Field | Value |
60
+ |-------|-------|
61
+ | Wave | 9 |
62
+ | Tasks | 6/6 done |
63
+ | Blockers open | 0 |
64
+ | Heal cycles | 1 |
65
+ | Tokens used | 14,200 / 20,000 |
66
+
67
+ ## Lanes
68
+
69
+ Work is sized to the diff — a typo gets no pipeline, an auth migration gets
70
+ all nine waves. Mugiwara itself is free; token usage depends on the lane:
71
+
72
+ | Lane | Waves | Typical tokens |
73
+ | ------------------- | :---: | :------------: |
74
+ | Direct (typo) | 0 | ~0 |
75
+ | Lean (small bug) | 2 | ~4k |
76
+ | Standard (feature) | 5–7 | ~10k |
77
+ | Full (architecture) | 9–11 | ~20k |
78
+
79
+ Usage tracked in `.mugiwara/state.json` per mission. Budget warns at 1.5×,
80
+ pauses at 3×.
81
+
82
+ → [Full cost model](docs/concepts/cost.md)
40
83
 
41
84
  ## 30-second try
42
85
 
@@ -51,109 +94,256 @@ every agent, every skill, every rule is static markdown.
51
94
  npx @ionivetech/mugiwara@latest install --target all --yes
52
95
  ```
53
96
 
54
- Then ask something non-trivial. The crew auto-activates:
97
+ First run: `/mugiwara onboard` for guided setup. Then ask something non-trivial:
55
98
 
56
99
  ```
57
100
  > add role-based access control: admin, editor, viewer
101
+ > audit the auth middleware for security gaps
102
+ > review the last PR for breaking changes
103
+ > split this feature across the team: payment gateway, ledger, fraud
58
104
  ```
59
105
 
60
106
  A Standard lane mission (~10k tokens) produces a branch with test-first
61
107
  commits, an audit report, a security review, and a ready PR summary — visible
62
- at every step in your chat. See it work: [docs/getting-started.md](docs/getting-started.md).
63
-
64
- ## How it works
108
+ at every step in your chat.
65
109
 
66
110
  You ask. The crew routes automatically. **No agent names to memorize, no
67
- pipeline config to write.** The work is sized from your git diff (typo = instant
68
- fix; auth migration = full 9-wave pipeline).
69
-
70
- | You say | What happens |
71
- |---------|-------------|
72
- | `add search bar to products page` | Luffy triagesNami plans 3 tasks Zoro executes TDD Chopper audits Sanji runs testsFranky gates coverage Robin reviews code pushed, PR summary ready |
73
- | `Brook, fix the failing login test` | Healer reads failure ledger, root-cause fixes, proves fix ≤3 cycles. No pipeline overhead |
74
- | `Jinbe, audit auth middleware` | Security specialist runs STRIDE + OWASP. Read-only — never touches code |
75
- | `/mugiwara semi` | Switches to semi-autonomous mode: auto branch + commit, plan still needs your GO |
76
-
77
- - **Full pipeline** when the task is big or direction is unclear — Luffy figures it out
78
- - **Direct agent** when you know exactly what you need — just say the name
79
- - **Slash commands** when you want to drive:`/mugiwara-plan`, `/mugiwara-review`, `/mugiwara-security`, `/mugiwara-ship`
111
+ pipeline config to write.**
112
+
113
+ | You say | What happens |
114
+ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
115
+ | `add search bar to products page` | Luffy triages → Nami plans 3 tasks → Zoro executes TDD → Chopper audits → Sanji runs quality → Franky gates → Robin reviews → code pushed, PR summary ready |
116
+ | `split payment system: gateway, ledger, fraud` | Nami interviews team writes initiative plan with sub-missions + assigneeseach dev works in own branch`mugiwara initiative status` shows progressall done initiative closure |
117
+ | `Brook, fix the failing login test` | Healer reads failure ledger, root-cause fixes, proves fix ≤3 cycles |
118
+ | `Jinbe, audit auth middleware` | STRIDE + OWASP + dependency audit. Read-only — never touches code |
119
+ | `/mugiwara auto` | Switches to full autonomy from the next wave |
120
+
121
+ - **Full pipeline** when the task is big or direction is unclear
122
+ - **Direct agent** when you know exactly what you need — say the name
123
+ - **Slash commands** when you want to drive: `/mugiwara-plan`, `/mugiwara-review`, `/mugiwara-security`, `/mugiwara-ship`, `/mugiwara onboard`
124
+
125
+ → [Full walkthrough](docs/getting-started.md) · [Full workflow walkthrough](docs/concepts/workflow.md)
126
+
127
+ ## What Mugiwara does
128
+
129
+ ### All features
130
+
131
+ | Feature | What you get |
132
+ | ------------------------ | -------------------------------------------------------------------------------------- |
133
+ | **Lane sizing** | Work auto-sized from `git diff`. Typo = instant fix. Auth migration = full pipeline. |
134
+ | **Evidence trail** | `.mugiwara/` workspace: plans, audit reports, quality reports, review findings, blocker ledger. |
135
+ | **Self-healing** | Brook reads all failures at once, fixes root causes, re-runs verification. ≤3 cycles. |
136
+ | **Resume from anywhere** | Session lost? Rebuilds from `.mugiwara/state.json`. Continues, never restarts. |
137
+ | **12 platforms** | Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, Pi, Antigravity + CLI. |
138
+
139
+ → All 19 features, with how-to-use + scenarios: [Every feature](docs/concepts/features.md) · [Full pipeline](docs/concepts/workflow.md) · [Lanes](docs/concepts/lanes.md) · [Modes](docs/concepts/modes.md) · [Config](docs/concepts/config.md) · [Audit trail](docs/concepts/audit-trail.md) · [Cost](docs/concepts/cost.md)
140
+
141
+ ## The pipeline
142
+
143
+ ```mermaid
144
+ flowchart TB
145
+ L0["Luffy<br>Triage"] --> L1["Usopp<br>Brainstorm"] --> L2["Nami<br>Plan"] --> L3["Zoro<br>Execute"] --> L4["Chopper<br>Audit"]
146
+ L4 --> L5["Sanji<br>Quality"] --> L6["Franky<br>Gates"]
147
+ L6 --> L7R["Robin<br>Review"]
148
+ L6 --> L7J["Jinbe<br>Security"]
149
+ L7R --> L8["Brook<br>Heal"]
150
+ L7J --> L8
151
+ L8 --> L9["Luffy<br>Closure"]
152
+ L8 -. "heal ≤3 cycles" .-> L4
153
+ ```
80
154
 
81
- [Full workflow walkthrough →](docs/concepts/workflow.md)
155
+ [Full pipeline details](docs/concepts/workflow.md)
82
156
 
83
157
  ## The crew
84
158
 
85
- 14 specialists. Each has a role boundary (read-only for auditors/reviewers), a
86
- temperature, and a step limit. Call them by name or let the pipeline auto-route.
87
-
88
- | Agent | Role | Permission |
89
- |-------|------|:---:|
90
- | `luffy-orchestrator` | Captain — triage, check-ins, closure | |
91
- | `nami-planner` | Plannerinterviews, full scan, scaled plans | |
92
- | `zoro-execution` | ExecutorTDD per task, evidence per commit | |
93
- | `chopper-checkpoint` | Auditorre-runs criteria, failure ledger | **read-only** |
94
- | `sanji-quality` | Qualityformat, lint, test | |
95
- | `franky-gates` | Gatescoverage, build, DoD verdict | |
96
- | `robin-reviewer` | Reviewerbreaking-change map | **read-only** |
97
- | `jinbe-security` | SecuritySTRIDE, OWASP, secret scan | **read-only** |
98
- | `brook-healing` | Healerreads ledger, root-cause fixes ≤3 cycles | |
99
- | `usopp-brainstorm` | Critical friend interrogates, researches | |
100
- | `skeptic-verifier` | Adversarial verifierdoubts, never validates | **read-only** |
101
- | `eval-runner` | Harness tester task suites | |
102
- | `resume-coordinator` | Resumer — rebuilds from state.json | — |
103
- | `memory-keeper` | Institutional memory — past lessons | — |
104
-
105
- > The names are One Piece characters — just code names for specialist roles.
106
- > Agents are identified by their function (Orchestrator, Planner, Auditor, etc.),
107
- > not by their theme. The theme makes them memorable; the boundaries make them
108
- > safe.
159
+ 12 agents (+3 internal). Each has role boundaries auditors
160
+ and reviewers are read-only. Call them by name or let the pipeline auto-route.
161
+
162
+ | Agent | Role | Permission |
163
+ | -------------------- | --------------------------------------------------------------------------------------- | :-----------: |
164
+ | `luffy-orchestrator` | Captain — triage, check-ins, closure | |
165
+ | `usopp-brainstorm` | Critical friend interrogates, researches, recommends | |
166
+ | `nami-planner` | Plannerinterviews, full scan, scaled plans, team initiatives | |
167
+ | `zoro-execution` | ExecutorTDD per task, evidence per commit ||
168
+ | `chopper-checkpoint` | Auditorre-runs criteria, failure ledger | **read-only** |
169
+ | `sanji-quality` | Qualityformat, lint, test, duplication, complexity, maintainability, code attributes | — |
170
+ | `franky-gates` | Gatescoverage, build, DoD, per-condition sonar gate | — |
171
+ | `robin-reviewer` | Reviewerbreaking-change map, reliability rating, code attribute deep review | **read-only** |
172
+ | `jinbe-security` | SecuritySTRIDE, OWASP, hotspots, SCA license, secret scan, responsibility | **read-only** |
173
+ | `brook-healing` | Healerreads ledger, root-cause fixes ≤3 cycles | — |
174
+ | `onboarding-guide` | Onboarding wizard10Q guided setup, writes config | — |
175
+ | `resume-coordinator` | Resumerrebuilds state from `.mugiwara/`, continues never restarts | — |
176
+
177
+ **Internal agents** (dispatch-only):
178
+
179
+ | Agent | Role | Used by |
180
+ | ------------------ | ----------------------------------------------------- | ------------------------------ |
181
+ | `skeptic-verifier` | Adversarial verifier doubts every claim | Wave 4.5, high-stakes missions |
182
+ | `eval-runner` | Harness tester — task suites, judge rubric | `bun scripts/run-evals.ts` |
183
+ | `memory-keeper` | Lessons ledger — surface at start, capture at closure | Wave 0 (read), Wave 9 (write) |
109
184
 
110
185
  → [Agent details: summoning, boundaries, parameters](docs/concepts/agents.md)
111
186
 
112
- ## How much it costs
187
+ ## When not to use Mugiwara
113
188
 
114
- Mugiwara itself is free. Token usage depends on mission lane:
189
+ - **Prototyping or spikes** use Lane 4, or skip mugiwara entirely.
190
+ - **Unattended multi-hour runs** — the crew runs inline so you can interrupt it.
191
+ If you want to walk away, superpowers' subagent-driven-development is built
192
+ for that.
193
+ - **Solo scripts with no review path** — the audit trail has no audience.
194
+ - **Harnesses without agent dispatch** (Gemini, Codex, tier 3) — you get the
195
+ workflow and the trail, not enforced role boundaries.
115
196
 
116
- | Lane | Waves | Typical tokens |
117
- |------|:-----:|:--------------:|
118
- | Direct (typo) | 0 | ~0 |
119
- | Lean (small bug) | 2 | ~4k |
120
- | Standard (feature) | 5–7 | ~10k |
121
- | Full (architecture) | 9–11 | ~20k |
197
+ ## Configuration
122
198
 
123
- Usage tracked in `.mugiwara/state.json` per mission. Budget warns at 1.5×,
124
- pauses at 3×. See [cost model](docs/concepts/cost.md) for per-model pricing reference.
199
+ Switch mode any time: `/mugiwara guided | semi | auto`. Or edit `.mugiwara/config`:
200
+
201
+ | Key | Default | What |
202
+ | ------------------- | ------------------------------- | ---------------------------------------------- |
203
+ | `mode` | guided | guided / semi / auto |
204
+ | `branch` | `feature/{type}-{issue}-{slug}` | Branch naming |
205
+ | `commit` | conventional | conventional / gitmoji / plain |
206
+ | `base` | main | PR target branch |
207
+ | `coverage_new` | 90 | Coverage threshold for new files (%) |
208
+ | `coverage_modified` | 80 | Coverage threshold for modified files (%) |
209
+ | `review_depth` | full | full / standard / quick — Robin's review depth |
210
+ | `quality_depth` | full | full / standard / quick — Sanji's check depth |
211
+
212
+ Set via `/mugiwara onboard` or edit directly. Unknown keys ignored. Project
213
+ config (`.mugiwara/config`) overrides global (`~/.mugiwara/config`).
214
+
215
+ → [All config keys](docs/concepts/config.md) · [Mode details](docs/concepts/modes.md)
125
216
 
126
- [Full cost model and token budget](docs/concepts/cost.md)
217
+ ## Quick reference
218
+
219
+ | Need | Command / Doc |
220
+ | ----------------------- | ---------------------------------------- |
221
+ | First-time setup | `/mugiwara onboard` |
222
+ | Plan a feature | `/mugiwara-plan` or just describe it |
223
+ | Review a PR diff | `/mugiwara-review` or "review this PR" |
224
+ | Security audit | `/mugiwara-security` or "Jinbe, audit X" |
225
+ | Ship gate check | `/mugiwara-ship` |
226
+ | See initiative progress | `mugiwara initiative status <plan>` |
227
+ | Resume a mission | `/mugiwara resume plan <name>` |
228
+ | Switch mode | `/mugiwara guided\|semi\|auto` |
229
+ | Check gate locally | `bun run gate` |
230
+ | All docs | [docs/](docs/) |
127
231
 
128
232
  ## Install
129
233
 
130
- <details open>
131
- <summary><b>Native plugins</b> — one-command install</summary>
132
-
133
- | Platform | Command |
134
- |----------|---------|
135
- | **Claude Code** | `/plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara` |
136
- | **OpenCode** | Add `{ "plugin": ["@ionivetech/mugiwara"] }` to `opencode.json` |
137
- | **Gemini CLI** | `gemini extensions install https://github.com/ionivetech/mugiwara` |
138
- | **Codex** | `codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara` |
139
- | **Copilot** | `copilot plugin install https://github.com/ionivetech/mugiwara` |
140
- | **Cursor** | `/add-plugin mugiwara` |
141
- | **Antigravity** | `agy plugin install https://github.com/ionivetech/mugiwara` |
142
- | **Kimi** | `/plugins install https://github.com/ionivetech/mugiwara` |
143
- | **Pi** | `pi install git:github.com/ionivetech/mugiwara` |
234
+ <details>
235
+ <summary><b>Claude Code</b></summary>
236
+
237
+ ```bash
238
+ /plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara
239
+ ```
240
+
241
+ Uninstall: `/plugin uninstall mugiwara`
242
+
243
+ </details>
244
+
245
+ <details>
246
+ <summary><b>OpenCode</b></summary>
247
+
248
+ Add to `opencode.json`:
249
+
250
+ ```json
251
+ { "plugin": ["@ionivetech/mugiwara"] }
252
+ ```
253
+
254
+ Update: `rm -rf ~/.cache/opencode/packages/@ionivetech/mugiwara* && opencode plugin @ionivetech/mugiwara -g` ([details](docs/install/opencode.md#update))
255
+
256
+ Uninstall: remove `"@ionivetech/mugiwara"` from `opencode.json` plugins array
257
+
258
+ </details>
259
+
260
+ <details>
261
+ <summary><b>Gemini CLI</b></summary>
262
+
263
+ ```bash
264
+ gemini extensions install https://github.com/ionivetech/mugiwara
265
+ ```
266
+
267
+ Uninstall: `gemini extensions uninstall mugiwara`
144
268
 
145
269
  </details>
146
270
 
147
271
  <details>
148
- <summary><b>CLI install</b> — Windsurf, Cline, Kilo, and more</summary>
272
+ <summary><b>Codex</b></summary>
273
+
274
+ ```bash
275
+ codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
276
+ ```
277
+
278
+ Uninstall: `codex plugin remove mugiwara@mugiwara`
279
+
280
+ </details>
281
+
282
+ <details>
283
+ <summary><b>GitHub Copilot</b></summary>
284
+
285
+ ```bash
286
+ copilot plugin install https://github.com/ionivetech/mugiwara
287
+ ```
288
+
289
+ Uninstall: `copilot plugin uninstall mugiwara`
290
+
291
+ </details>
292
+
293
+ <details>
294
+ <summary><b>Cursor</b></summary>
295
+
296
+ ```bash
297
+ /add-plugin mugiwara
298
+ ```
299
+
300
+ Uninstall: `/remove-plugin mugiwara`
301
+
302
+ </details>
303
+
304
+ <details>
305
+ <summary><b>Antigravity</b></summary>
306
+
307
+ ```bash
308
+ agy plugin install https://github.com/ionivetech/mugiwara
309
+ ```
310
+
311
+ Uninstall: `agy plugin uninstall mugiwara`
312
+
313
+ </details>
314
+
315
+ <details>
316
+ <summary><b>Kimi</b></summary>
317
+
318
+ ```bash
319
+ /plugins install https://github.com/ionivetech/mugiwara
320
+ ```
321
+
322
+ Uninstall: `/plugins uninstall mugiwara`
323
+
324
+ </details>
325
+
326
+ <details>
327
+ <summary><b>Pi</b></summary>
328
+
329
+ ```bash
330
+ pi install git:github.com/ionivetech/mugiwara
331
+ ```
332
+
333
+ Uninstall: `pi uninstall mugiwara`
334
+
335
+ </details>
336
+
337
+ <details>
338
+ <summary><b>Windsurf / Cline / Kilo</b> — CLI install</summary>
149
339
 
150
340
  ```bash
151
341
  npx @ionivetech/mugiwara@latest install --target <id> --yes
152
- # or all targets
153
- npx @ionivetech/mugiwara@latest install --target all --yes
154
342
  ```
155
343
 
156
- Targets: `windsurf`, `cline`, `kilo`, `codex`. See [install/cli](docs/install/cli.md) for interactive wizard.
344
+ Uninstall: `npx @ionivetech/mugiwara@latest uninstall`
345
+
346
+ Targets: `windsurf`, `cline`, `kilo`, `codex`.
157
347
 
158
348
  </details>
159
349
 
@@ -163,69 +353,63 @@ Targets: `windsurf`, `cline`, `kilo`, `codex`. See [install/cli](docs/install/cl
163
353
  ```bash
164
354
  npm i -g @ionivetech/mugiwara
165
355
  mugiwara install --target all --yes
166
- mugiwara update --target all --yes
167
- mugiwara uninstall
168
356
  ```
169
357
 
358
+ Uninstall: `mugiwara uninstall`
359
+
170
360
  </details>
171
361
 
172
- All platforms get the full crew — 14 agents, 26 skills. No per-platform feature gaps.
362
+ All platforms get the full crew — 12 agents (+3 internal), 26 skills.
363
+ Enforcement depth varies by harness; see the [harness matrix](docs/reference/harness-matrix.md).
173
364
 
174
- → [Per-platform guides with update/verify/troubleshooting](docs/install/index.md)
365
+ → [Per-platform guides](docs/install/index.md)
175
366
 
176
367
  ## Update
177
368
 
178
369
  ```bash
179
- # npm-based (opencode, CLI targets)
180
- npm update @ionivetech/mugiwara
370
+ # opencode — clear the pinned cache, then reinstall (npm update alone does NOT work)
371
+ rm -rf ~/.cache/opencode/packages/@ionivetech/mugiwara* && opencode plugin @ionivetech/mugiwara -g
181
372
 
182
- # marketplace-based (Claude, Codex)
373
+ # Claude Code — marketplace
183
374
  /plugin update mugiwara
184
375
 
185
- # GitHub-based (Copilot, Gemini, Cursor, Antigravity, Kimi)
186
- # Reinstall with the same install command — pulls latest release
376
+ # CLI npm global
377
+ npm i -g @ionivetech/mugiwara@latest
187
378
  ```
188
379
 
189
- [Full update reference per platform](docs/install/index.md)
380
+ OpenCode pins the resolved version in its own package cache, so `npm update`
381
+ never touches it. Reinstall with the same command for GitHub-based plugins
382
+ (Gemini, Codex, Copilot, Cursor, Kimi, Pi, Antigravity).
383
+
384
+ → [Per-platform guides](docs/install/index.md)
190
385
 
191
386
  ## CLI
192
387
 
193
388
  ```bash
194
- mugiwara install # wizard (interactive)
195
- npx @ionivetech/mugiwara@latest install --yes # non-interactive (project + all)
196
- mugiwara update --target <id> --yes # overwrite to latest
197
- mugiwara uninstall # remove installed files
198
- mugiwara list # show installations
199
- mugiwara list --check # health check (missing files)
200
- mugiwara reset --keep-logs # wipe state, keep lessons
389
+ mugiwara install # wizard (interactive)
390
+ mugiwara install --target all --yes # non-interactive
391
+ mugiwara update --target <id> --yes # overwrite to latest
392
+ mugiwara uninstall # remove installed files
393
+ mugiwara list # show installations
394
+ mugiwara list --check # health check
395
+ mugiwara reset --keep-logs # wipe state, keep lessons
201
396
  ```
202
397
 
203
- ## Configuration
204
-
205
- Switch mode any time: `/mugiwara guided | semi | auto`. Or edit `.mugiwara/config`:
206
-
207
- | Key | Default | What |
208
- |-----|---------|------|
209
- | `mode` | guided | guided / semi / auto |
210
- | `branch` | `feature/{type}-{issue}-{slug}` | Branch naming |
211
- | `commit` | conventional | conventional / gitmoji / plain |
212
- | `base` | main | PR target branch |
213
-
214
- → [All config keys](docs/concepts/config.md) · [Mode details](docs/concepts/modes.md)
215
-
216
398
  ## Docs
217
399
 
218
- Getting started & concepts: **[Getting started](docs/getting-started.md)** · [What mugiwara replaces](docs/concepts/comparison.md) · [Execution model](docs/concepts/execution-model.md) · [Git strategy](docs/concepts/git-strategy.md)
400
+ **Start here:** [Getting started](docs/getting-started.md) · [What mugiwara replaces](docs/concepts/comparison.md)
401
+
402
+ **Concepts:** [Workflow](docs/concepts/workflow.md) · [Lanes](docs/concepts/lanes.md) · [Modes](docs/concepts/modes.md) · [Execution model](docs/concepts/execution-model.md) · [Git strategy](docs/concepts/git-strategy.md) · [Config](docs/concepts/config.md) · [Cost](docs/concepts/cost.md) · [Audit trail](docs/concepts/audit-trail.md)
219
403
 
220
- Crew & techniques: **[Agents](docs/concepts/agents.md)** · [Skills](docs/concepts/skills.md) · [Workflow](docs/concepts/workflow.md) · [Lanes](docs/concepts/lanes.md) · [Modes](docs/concepts/modes.md)
404
+ **Crew:** [Agents](docs/concepts/agents.md) · [Skills](docs/concepts/skills.md)
221
405
 
222
- Operations: [Config](docs/concepts/config.md) · [Audit trail](docs/concepts/audit-trail.md) · [Cost](docs/concepts/cost.md) · [Harness matrix](docs/reference/harness-matrix.md) · [Compliance](docs/reference/compliance-matrix.md) · [Troubleshooting](docs/troubleshooting.md)
406
+ **Reference:** [Agent anatomy](docs/reference/agent-anatomy.md) · [Skill anatomy](docs/reference/skill-anatomy.md) · [Harness matrix](docs/reference/harness-matrix.md) · [Compliance matrix](docs/reference/compliance-matrix.md) · [Developer onboarding](docs/reference/developer-onboarding.md)
223
407
 
224
- Deep dives: [Agent anatomy](docs/reference/agent-anatomy.md) · [Skill anatomy](docs/reference/skill-anatomy.md) · [Developer onboarding](docs/reference/developer-onboarding.md)
408
+ **Install per platform:** [Overview](docs/install/index.md) · [Claude](docs/install/claude.md) · [opencode](docs/install/opencode.md) · [Gemini](docs/install/gemini.md) · [Codex](docs/install/codex.md) · [Copilot](docs/install/copilot.md) · [CLI targets](docs/install/cli.md)
225
409
 
226
- Install per platform: **[Install overview](docs/install/index.md)** · [Claude](docs/install/claude.md) · [opencode](docs/install/opencode.md) · [Gemini](docs/install/gemini.md) · [Codex](docs/install/codex.md) · [Copilot](docs/install/copilot.md) · [CLI targets](docs/install/cli.md)
410
+ **Troubleshooting:** [Common problems](docs/troubleshooting.md)
227
411
 
228
- Roadmap: [ROADMAP.md](ROADMAP.md)
412
+ **Roadmap:** [ROADMAP.md](ROADMAP.md)
229
413
 
230
414
  ## License
231
415
 
@@ -1,11 +1,21 @@
1
1
  ---
2
2
  name: brook-healing
3
- description: Persona for mugiwara-healing. Root-cause healer: reads entire blocker ledger, triages + groups failures, spawns parallel heal workers for independent fixes, max 3 cycles.
4
- skills: mugiwara-healing, mugiwara-git, mugiwara-sunset, mugiwara-root-cause
3
+ description: Persona for mugiwara-healing. Root-cause healer: reads blocker ledger, triages failures, spawns parallel heal workers, max 3 cycles.
4
+ skills: mugiwara-healing, mugiwara-git, mugiwara-sunset, mugiwara-root-cause, mugiwara-orchestration
5
+ write-scope: source
5
6
  ---
6
7
 
7
8
  # Brook — Healing (Musician)
8
9
 
10
+ ## Before you start
11
+
12
+ 1. Read `.mugiwara/state.json` for this branch.
13
+ 2. No active mission → announce `## Wave 0 — Luffy (triage)`, classify the request, size the lane (`scripts/lane.sh`), read the mode, write the decision log, run `scripts/savepoint.sh`.
14
+ 3. Mission owned by another actor → stop, report the owner, ask.
15
+ 4. `base_sha` no longer an ancestor of HEAD → report drift, ask before continuing.
16
+ 5. Not a git repo → lane defaults to `standard`, state in-memory; say so once.
17
+ 6. Announce `→ Wave N — <crew>`. **If triage routed elsewhere, say so and stop.** Being summoned is not authorisation to do another crew member's job.
18
+
9
19
  ## Role
10
20
 
11
21
  Self-healing: repairs what failed in earlier waves, minimally, and proves each fix. Reads the failure ledger and works it down.
@@ -31,7 +41,11 @@ Wave 8 of `mugiwara-workflow`, with failure inputs from Chopper/Sanji/Franky/Rob
31
41
 
32
42
  ## Output
33
43
 
34
- Fixed list + escalated list in `.mugiwara/results/<mission>-healing.md` → summarized inline → back to Wave 4 (Chopper) for re-audit.
44
+ Fixed list + escalated list in `.mugiwara/results/<mission>/05-healing.md` → summarized inline → back to Wave 4 (Chopper) for re-audit.
45
+
46
+ ## Return to Luffy
47
+
48
+ Your output returns to Luffy. You do not choose the next step and you do not dispatch another crew member. Any decision outside your role — scope, lane, whether to build, who runs next — is Luffy's, always.
35
49
 
36
50
  ## Red flags
37
51
 
@@ -1,12 +1,22 @@
1
1
  ---
2
2
  name: chopper-checkpoint
3
- description: Persona for mugiwara-checkpoint. Audit results against the plan, never fixes code. Read-only: no code edits, no file writes outside .mugiwara/results/.
3
+ description: Persona for mugiwara-checkpoint. Audit results against the plan. Read-only.
4
4
  permissions: read-only, can-write: .mugiwara/results/ .mugiwara/issues/
5
- skills: mugiwara-checkpoint
5
+ skills: mugiwara-checkpoint, mugiwara-orchestration
6
+ write-scope: artifacts
6
7
  ---
7
8
 
8
9
  # Chopper — Checkpoint (Auditor)
9
10
 
11
+ ## Before you start
12
+
13
+ 1. Read `.mugiwara/state.json` for this branch.
14
+ 2. No active mission → announce `## Wave 0 — Luffy (triage)`, classify the request, size the lane (`scripts/lane.sh`), read the mode, write the decision log, run `scripts/savepoint.sh`.
15
+ 3. Mission owned by another actor → stop, report the owner, ask.
16
+ 4. `base_sha` no longer an ancestor of HEAD → report drift, ask before continuing.
17
+ 5. Not a git repo → lane defaults to `standard`, state in-memory; say so once.
18
+ 6. Announce `→ Wave N — <crew>`. **If triage routed elsewhere, say so and stop.** Being summoned is not authorisation to do another crew member's job.
19
+
10
20
  ## Role
11
21
 
12
22
  Audits execution against the plan. Trusts nothing; re-verifies everything — efficiently. Does not fix — findings only.
@@ -35,7 +45,11 @@ Wave 4 of `mugiwara-workflow`, with the plan doc and Zoro's execution report.
35
45
 
36
46
  ## Output
37
47
 
38
- Audit report to `.mugiwara/results/YYYY-MM-DD-<mission>-audit.md` + failure ledger rows in `.mugiwara/issues/` → summarized inline in the conversation (Luffy on PASS, Brook on FAIL).
48
+ Audit report to `.mugiwara/results/<mission>/02-audit.md` + failure ledger rows in `.mugiwara/issues/` → summarized inline in the conversation (Luffy on PASS, Brook on FAIL).
49
+
50
+ ## Return to Luffy
51
+
52
+ Your output returns to Luffy. You do not choose the next step and you do not dispatch another crew member. Any decision outside your role — scope, lane, whether to build, who runs next — is Luffy's, always.
39
53
 
40
54
  ## Red flags
41
55