@ionivetech/mugiwara 0.3.0 → 0.5.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/.opencode/commands/mugiwara-plan.md +4 -0
- package/README.md +214 -418
- package/content/agents/brook-healing.md +2 -2
- package/content/agents/chopper-checkpoint.md +2 -1
- package/content/agents/eval-runner.md +4 -4
- package/content/agents/franky-gates.md +1 -1
- package/content/agents/jinbe-security.md +2 -1
- package/content/agents/luffy-orchestrator.md +3 -3
- package/content/agents/memory-keeper.md +1 -1
- package/content/agents/nami-planner.md +2 -2
- package/content/agents/resume-coordinator.md +8 -9
- package/content/agents/robin-reviewer.md +3 -2
- package/content/agents/sanji-quality.md +1 -1
- package/content/agents/skeptic-verifier.md +4 -3
- package/content/agents/using-mugiwara.md +3 -3
- package/content/agents/usopp-brainstorm.md +3 -3
- package/content/agents/zoro-execution.md +4 -3
- package/content/skills/mugiwara-agent-security/SKILL.md +19 -2
- package/content/skills/mugiwara-backend/SKILL.md +7 -8
- package/content/skills/mugiwara-backend/references/source-backed-example.md +77 -0
- package/content/skills/mugiwara-brainstorm/SKILL.md +7 -2
- package/content/skills/mugiwara-checkpoint/SKILL.md +7 -2
- package/content/skills/mugiwara-checkpoint/references/ledger-format.md +34 -0
- package/content/skills/{mugiwara-doubt-driven-development → mugiwara-claim-audit}/SKILL.md +7 -2
- package/content/skills/{mugiwara-context-engineering → mugiwara-context-budget}/SKILL.md +7 -2
- package/content/skills/mugiwara-context-budget/references/context-budget.md +37 -0
- package/content/skills/{mugiwara-api-and-interface-design → mugiwara-contract-first}/SKILL.md +9 -2
- package/content/skills/mugiwara-contract-first/references/versioning-playbook.md +36 -0
- package/content/skills/mugiwara-execution/SKILL.md +9 -2
- package/content/skills/mugiwara-execution/references/worked-example.md +88 -0
- package/content/skills/mugiwara-frontend/SKILL.md +21 -22
- package/content/skills/mugiwara-frontend/references/design-tokens.md +25 -0
- package/content/skills/mugiwara-frontend/references/slop-catalog.md +19 -0
- package/content/skills/mugiwara-gates/SKILL.md +9 -4
- package/content/skills/mugiwara-git/SKILL.md +6 -1
- package/content/skills/mugiwara-healing/SKILL.md +39 -7
- package/content/skills/mugiwara-healing/references/failure-taxonomy.md +23 -0
- package/content/skills/mugiwara-lessons/SKILL.md +6 -1
- package/content/skills/mugiwara-orchestration/SKILL.md +18 -5
- package/content/skills/mugiwara-planning/SKILL.md +16 -15
- package/content/skills/mugiwara-planning/references/anti-patterns.md +17 -0
- package/content/skills/mugiwara-planning/references/plan-template.md +46 -0
- package/content/skills/mugiwara-pr/SKILL.md +6 -1
- package/content/skills/{mugiwara-test-driven-development → mugiwara-proof-order}/SKILL.md +7 -2
- package/content/skills/mugiwara-proof-order/references/proof-order-examples.md +62 -0
- package/content/skills/mugiwara-quality/SKILL.md +8 -3
- package/content/skills/mugiwara-resume/SKILL.md +46 -30
- package/content/skills/mugiwara-review/SKILL.md +6 -1
- package/content/skills/mugiwara-review/references/five-axis-worksheet.md +36 -0
- package/content/skills/mugiwara-review/references/severity-rubric.md +20 -0
- package/content/skills/{mugiwara-systematic-debugging → mugiwara-root-cause}/SKILL.md +9 -2
- package/content/skills/mugiwara-root-cause/references/four-phase-worked.md +71 -0
- package/content/skills/mugiwara-security/SKILL.md +18 -18
- package/content/skills/mugiwara-security/references/owasp-mapping.md +30 -0
- package/content/skills/mugiwara-security/references/stride-worksheet.md +37 -0
- package/content/skills/mugiwara-ship/SKILL.md +6 -1
- package/content/skills/{mugiwara-deprecation → mugiwara-sunset}/SKILL.md +7 -2
- package/content/skills/mugiwara-testcases/SKILL.md +6 -1
- package/content/skills/mugiwara-testcases/references/intake-formats.md +42 -0
- package/content/skills/mugiwara-workflow/SKILL.md +26 -24
- package/dist/mugiwara.js +165 -28
- package/docs/adoption-guide.md +2 -2
- package/docs/agents.md +2 -2
- package/docs/audit-trail.md +65 -0
- package/docs/comparison.md +58 -63
- package/docs/compliance-matrix.md +81 -0
- package/docs/config.md +7 -2
- package/docs/cost.md +45 -0
- package/docs/developer-onboarding.md +17 -13
- package/docs/enforcement.md +35 -0
- package/docs/getting-started.md +103 -41
- package/docs/harness-matrix.md +41 -0
- package/docs/index.md +11 -5
- package/docs/lanes.md +82 -0
- package/docs/skill-anatomy.md +42 -49
- package/docs/skills.md +36 -54
- package/docs/troubleshooting.md +91 -0
- package/docs/workflow.md +15 -6
- package/evals/cases/adversarial-pressure-fake-pass.json +12 -0
- package/evals/cases/adversarial-pressure-skip-review.json +13 -0
- package/evals/cases/lane-exploratory-vague.json +12 -0
- package/evals/cases/lane-sensitivity-payment.json +12 -0
- package/evals/cases/negative-secrets-typo.json +12 -0
- package/evals/cases/negative-security-docs-change.json +12 -0
- package/evals/cases/positive-refactor-existing-tests.json +11 -0
- package/evals/cases/positive-resume-mid-mission.json +11 -0
- package/evals/cases/routing-auth-feature.json +13 -0
- package/evals/cases/routing-bug-one-file.json +13 -0
- package/evals/cases/routing-typo.json +13 -0
- package/package.json +6 -4
- package/references/definition-of-done.md +42 -0
- package/references/multi-actor.md +44 -0
- package/references/skill-versioning.md +44 -0
- package/references/source-grounding.md +23 -0
- package/references/token-budget.md +34 -0
- package/scripts/evidence.sh +37 -0
- package/scripts/lane.sh +74 -0
- package/scripts/mission-report.sh +88 -0
- package/scripts/release-notes.ts +65 -0
- package/scripts/retrieval-eval.ts +152 -0
- package/scripts/run-evals.ts +113 -0
- package/scripts/savepoint.sh +165 -0
- package/scripts/sync-version.ts +30 -0
- package/scripts/validate-content.ts +226 -0
- package/src/args.ts +2 -1
- package/src/cli.ts +21 -20
- package/src/installer.ts +31 -3
- package/src/mission.ts +48 -0
- package/src/targets/claude.ts +4 -0
- package/src/targets/copilot.ts +4 -0
- package/src/targets/generic.ts +33 -1
- package/src/targets/kilo.ts +1 -0
- package/src/targets/opencode.ts +4 -0
- package/content/skills/mugiwara-dynamic-workflow/SKILL.md +0 -85
- package/content/skills/mugiwara-eval/SKILL.md +0 -82
- package/content/skills/mugiwara-git-worktrees/SKILL.md +0 -62
- package/content/skills/mugiwara-mode/SKILL.md +0 -72
- package/content/skills/mugiwara-observability/SKILL.md +0 -54
- package/content/skills/mugiwara-writing-skills/SKILL.md +0 -60
package/README.md
CHANGED
|
@@ -3,512 +3,308 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@ionivetech/mugiwara)
|
|
4
4
|
[](https://github.com/ionivetech/mugiwara/blob/main/LICENSE)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Your coding agent becomes a governed engineering team. 15 specialists — triage,
|
|
7
|
+
plan, build, audit, review, heal — with evidence at every step, cost tracking,
|
|
8
|
+
and a process that sizes itself to your work. Pure markdown, zero runtime.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
engineering team applies to software, packaged so your agent follows them
|
|
11
|
-
consistently across every phase of development. The crew **auto-activates**:
|
|
12
|
-
give a non-trivial request and the pipeline runs inline in your main
|
|
13
|
-
conversation — with checkpoint reports at every stage, nothing hidden behind a
|
|
14
|
-
subagent click.
|
|
10
|
+
## Quick start
|
|
15
11
|
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
│ Luffy │ ──▶ │ Nami │ ──▶ │ Zoro │ ──▶ │ Chopper │ ──▶ │ Robin + │ ──▶ │ push + │
|
|
20
|
-
│ 5-way │ │ waves + │ │ TDD per │ │ Sanji + │ │ Jinbe │ │ ready PR │
|
|
21
|
-
│ triage │ │ tasks │ │ task │ │ Franky │ │ review+ │ │ summary │
|
|
22
|
-
└──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Zero runtime: pure markdown your existing AI agent runs with its own subagent
|
|
26
|
-
machinery — no daemons, no plugins to keep updated, nothing to host. 32 skills,
|
|
27
|
-
15 agents, and per-stage commands, ready for Claude Code, opencode, Gemini CLI,
|
|
28
|
-
Codex, Cursor, Copilot, Kimi, pi, Windsurf, Cline, Kilo Code, and Antigravity.
|
|
29
|
-
|
|
30
|
-
## Philosophy
|
|
31
|
-
|
|
32
|
-
- 🧭 **Skills are the product, agents are the engine.** Skills are the
|
|
33
|
-
user-facing surface — they auto-activate, they ship to any harness, and you
|
|
34
|
-
never need to learn an agent name. The named agents are opencode-native
|
|
35
|
-
enforcement underneath: permission isolation, role lenses, parallel review.
|
|
36
|
-
Pick mugiwara up the same way you'd pick up a skills pack.
|
|
37
|
-
- 🧑🚀 **The crew runs in the main thread.** No crew member is dispatched as a
|
|
38
|
-
hidden subagent. You watch the pipeline happen, you can interrupt any time,
|
|
39
|
-
and every wave shows a checkpoint report — never a narration of every tool call.
|
|
40
|
-
- ⚖️ **Mode owns autonomy, config owns writing standards.** Whether branch,
|
|
41
|
-
commit, and PR run automatically is decided by one lever: the mode
|
|
42
|
-
(guided / semi / auto). The config only shapes HOW those artifacts are
|
|
43
|
-
written when they are created.
|
|
44
|
-
- 🛡 **Evidence over claims.** No wave passes on assertion — the owning agent
|
|
45
|
-
shows output. No evidence, not complete.
|
|
46
|
-
- 📦 **No runtime.** Ships markdown only: native skills and agents for
|
|
47
|
-
Claude Code, opencode, Copilot, Gemini CLI, Codex, Cursor, Kimi, pi,
|
|
48
|
-
Windsurf, Cline, Kilo Code, and Antigravity.
|
|
49
|
-
|
|
50
|
-
## The crew — 15 agents
|
|
51
|
-
|
|
52
|
-
Each agent is a focused specialist. The main thread embodies each crew role
|
|
53
|
-
inline using its skill; agents may also be summoned directly by your AI tool's
|
|
54
|
-
agent machinery and may call the crew's shared skills.
|
|
55
|
-
|
|
56
|
-
| Agent | Crew member | Role |
|
|
57
|
-
|-------|-------------|------|
|
|
58
|
-
| `using-mugiwara` | Front Door | Optional router: explains the crew, routes any request to the right crew member — no agent names to remember |
|
|
59
|
-
| `luffy-orchestrator` | Luffy | Captain: 5-way triage, check-ins, work splitting, decision log, detailed closure |
|
|
60
|
-
| `usopp-brainstorm` | Usopp | Critical brainstorming friend: facts over hype, options + trade-offs, no over-engineering |
|
|
61
|
-
| `nami-planner` | Nami | Interview-first planner: full-context scan, waves-first plans, file-level dependency edges, break points |
|
|
62
|
-
| `zoro-execution` | Zoro | Execute plans inline: todo list first, sequential tasks in the main thread, parallel batches via worker subagents, evidence per task |
|
|
63
|
-
| `chopper-checkpoint` | Chopper | Verify-everything audit of wave results; writes the failure ledger (never fixes code) |
|
|
64
|
-
| `sanji-quality` | Sanji | Discover the stack, then format/lint/test; integration and optional e2e tests only with consent |
|
|
65
|
-
| `franky-gates` | Franky | Binary gates: coverage ≥90/80, build exit 0, Definition of Done |
|
|
66
|
-
| `robin-reviewer` | Robin | Doubt-driven diff review: breaking-change first, five-axis, severity-tagged findings |
|
|
67
|
-
| `jinbe-security` | Jinbe | Security review: STRIDE first, OWASP, secrets, injection, auth, dependencies, untrusted-data doctrine |
|
|
68
|
-
| `brook-healing` | Brook | Reads the blocker ledger, Stop-the-Line root-cause fixes, worker subagents for fast re-verification, ≤3 heal cycles |
|
|
69
|
-
| `skeptic-verifier` | Skeptic | Adversarial verification: doubt every output/plan/verdict, find what's wrong, do NOT validate |
|
|
70
|
-
| `eval-runner` | Eval Runner | Test engineer for the harness itself: task suites, judge-agent rubric comparison |
|
|
71
|
-
| `resume-coordinator` | Resume Coordinator | Rebuild the picture from `.mugiwara/` state after context loss; continue, never restart |
|
|
72
|
-
| `memory-keeper` | Memory Keeper | Institutional memory: surface past lessons at mission start, capture new ones at closure |
|
|
73
|
-
|
|
74
|
-
## The techniques — 32 skills
|
|
75
|
-
|
|
76
|
-
| Skill | Purpose |
|
|
77
|
-
|-------|---------|
|
|
78
|
-
| `mugiwara-workflow` | The harness entry point: inline execution model, gateway triage, wave pipeline, checkpoint reports, workspace layout, blocker protocol |
|
|
79
|
-
| `mugiwara-orchestration` | Luffy's captain behavior: 5-way classifier, check-ins, work splitting, decision log, detailed closure |
|
|
80
|
-
| `mugiwara-mode` | Runtime levels guided / semi / auto via `.mugiwara/config`: mode owns autonomy, config owns writing standards, consent invariants, gated auto-GO, push + ready-PR terminal |
|
|
81
|
-
| `mugiwara-brainstorm` | Usopp's critical sparring: interrogate, research facts, cut over-engineering, recommend |
|
|
82
|
-
| `mugiwara-planning` | Interview-first, waves-first plans with file-level dependency edges, break points, parallel-safe waves + anti-patterns |
|
|
83
|
-
| `mugiwara-execution` | Todo list, sequential tasks inline + parallel worker batches, one commit per logical task, checkpoint-report batching |
|
|
84
|
-
| `mugiwara-checkpoint` | Verify-everything audit of every acceptance criterion — deduped and scoped to the wave's diff |
|
|
85
|
-
| `mugiwara-quality` | Discover the project's real tooling; formatter, linter, unit tests, optional e2e gate (only when the repo has e2e AND changes touch e2e) |
|
|
86
|
-
| `mugiwara-gates` | Coverage ≥90% new / ≥80% modified files, build validation, Definition of Done; optional e2e position after quality |
|
|
87
|
-
| `mugiwara-testcases` | User-test intake (ATDD): accepted formats, immutable-gold rule, declarative-AC routing, consent, failure adjudication |
|
|
88
|
-
| `mugiwara-review` | Doubt-driven review: breaking-change analysis, five-axis, severity-tagged findings |
|
|
89
|
-
| `mugiwara-security` | STRIDE-first security review, OWASP Top 10 mapping, authn/authz, secrets, dependency audit, boundary system, untrusted-data doctrine |
|
|
90
|
-
| `mugiwara-healing` | Reads the ledger, Stop-the-Line + Prove-It root-cause fixes, worker subagents (reviewer/security/re-run), rollback prep |
|
|
91
|
-
| `mugiwara-deprecation` | Sunset & migration discipline: keep-or-retire gate, cutover playbooks, safe schema changes |
|
|
92
|
-
| `mugiwara-frontend` | Anti-slop frontend: audit-first redesigns, component architecture, design systems, state, responsive, WCAG 2.1 AA |
|
|
93
|
-
| `mugiwara-git` | Atomic commits, save-points, multi-commit splitting, bisect/blame debugging |
|
|
94
|
-
| `mugiwara-pr` | Terminal: push + verdict file with a ready PR summary block; never creates a PR, stop-at-PR invariant |
|
|
95
|
-
| `mugiwara-dynamic-workflow` | Runtime workflow patterns: fan-out-and-synthesize, tournament, loop-until-done, classify-and-act, adversarial verification |
|
|
96
|
-
| `mugiwara-agent-security` | Secure the agent layer: prompt injection, memory poisoning, excessive agency, secret handling, sandboxing |
|
|
97
|
-
| `mugiwara-backend` | Backend/server code: repo standards first, API design, data integrity, error handling, correctness, performance, server-side security |
|
|
98
|
-
| `mugiwara-eval` | Test the harness itself: task suites, judge-agent rubric comparison, pass/fail per case |
|
|
99
|
-
| `mugiwara-observability` | Trace the crew: structured logs, OTel-compatible spans, session correlation, end-of-mission summary |
|
|
100
|
-
| `mugiwara-resume` | Session resume: rebuild state from `.mugiwara/` after compaction/loss; never restart |
|
|
101
|
-
| `mugiwara-lessons` | Cross-mission memory: actionable lessons ledger, read at triage, written at closure |
|
|
102
|
-
| `mugiwara-writing-skills` | Meta-skill: how mugiwara authors skills — anatomy, ≤120-line rule, progressive disclosure, anti-rationalization |
|
|
103
|
-
| `mugiwara-systematic-debugging` | 4-phase root-cause discipline: reproduce → localize → reduce → fix + guard; stop-the-line, prove-it first |
|
|
104
|
-
| `mugiwara-test-driven-development` | RED-GREEN-REFACTOR, proof-of-when, test pyramid, one test = one behavior |
|
|
105
|
-
| `mugiwara-api-and-interface-design` | Contract-first design, error semantics, boundary validation, backward compatibility, versioning |
|
|
106
|
-
| `mugiwara-doubt-driven-development` | Adversarial fresh-context verification of in-flight decisions: claim → extract → doubt → reconcile → stop |
|
|
107
|
-
| `mugiwara-git-worktrees` | Isolated parallel branches via `git worktree`, branch hygiene, safe cleanup |
|
|
108
|
-
| `mugiwara-context-engineering` | Token/context management: feed selectively, trust-sort sources, progressive disclosure, rules files |
|
|
109
|
-
|
|
110
|
-
### Every capability, always
|
|
111
|
-
|
|
112
|
-
Every install ships the full crew — all 32 skills and 15 agents, including
|
|
113
|
-
the anti-slop `mugiwara-frontend`, `mugiwara-backend`, and `mugiwara-agent-security`
|
|
114
|
-
skills. No project-type selection: you get every capability, and the harness
|
|
115
|
-
routes each task to the right skill.
|
|
116
|
-
|
|
117
|
-
## How it works
|
|
118
|
-
|
|
119
|
-
**The workflow auto-activates.** At session start the crew is announced; when
|
|
120
|
-
you give a non-trivial request, the pipeline runs by itself — you do not need
|
|
121
|
-
to call `/using-mugiwara`. It remains an optional explicit router if you want
|
|
122
|
-
to hand-route a mission.
|
|
123
|
-
|
|
124
|
-
From there the mission runs as a **wave pipeline** owned by one crew member
|
|
125
|
-
per wave, executed inline in your main conversation.
|
|
126
|
-
|
|
127
|
-
```mermaid
|
|
128
|
-
flowchart TD
|
|
129
|
-
U[User request] --> G{Luffy triage}
|
|
130
|
-
G -- exploratory --> B[Usopp brainstorm]
|
|
131
|
-
G -- clear work --> N[Nami plan]
|
|
132
|
-
B --> N
|
|
133
|
-
N --> Z[Zoro execute]
|
|
134
|
-
Z --> CP[Chopper audit]
|
|
135
|
-
CP --> SQ[Sanji quality]
|
|
136
|
-
SQ --> FG[Franky gates]
|
|
137
|
-
FG --> RJ[Robin + Jinbe review]
|
|
138
|
-
RJ -- pass --> LC[Luffy closure]
|
|
139
|
-
RJ -- fail --> BH[Brook heal]
|
|
140
|
-
BH --> CP
|
|
141
|
-
LC --> CL[push + ready PR summary]
|
|
142
|
-
```
|
|
12
|
+
```bash
|
|
13
|
+
# Claude Code
|
|
14
|
+
/plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara
|
|
143
15
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
| 0 Triage | Luffy | `mugiwara-orchestration` | 5-way route decision + reason |
|
|
147
|
-
| 1 Brainstorm | Usopp | `mugiwara-brainstorm` | refined direction, options, recommendation |
|
|
148
|
-
| 2 Planning | Nami | `mugiwara-planning` | plan doc: waves, tasks, file-level dependency edges, acceptance |
|
|
149
|
-
| 3 Execution | Zoro | `mugiwara-execution` | implemented tasks with evidence |
|
|
150
|
-
| 4 Checkpoint | Chopper | `mugiwara-checkpoint` | audit report + failure ledger |
|
|
151
|
-
| 5 Quality | Sanji | `mugiwara-quality` | formatter/linter/test results (+ optional e2e) |
|
|
152
|
-
| 6 Gates | Franky | `mugiwara-gates` | coverage + build verdict |
|
|
153
|
-
| 7 Review | Robin ∥ Jinbe | `mugiwara-review` + `mugiwara-security` | severity-tagged findings (parallel) |
|
|
154
|
-
| 8 Healing | Brook | `mugiwara-healing` | fixes via worker subagents; loops to Wave 4, max 3 cycles |
|
|
155
|
-
| 9 Closure | Luffy | `mugiwara-orchestration` | detailed summary + push + ready PR summary (see Modes) |
|
|
156
|
-
|
|
157
|
-
### Checkpoint reports
|
|
158
|
-
|
|
159
|
-
You see progress as **checkpoint reports**, not a firehose: a wave banner
|
|
160
|
-
(`## Wave N — <crew> (<skill>)`), one compact report per crew member at each
|
|
161
|
-
stage boundary (what ran / result / evidence pointer), a progress summary per
|
|
162
|
-
wave, and a pause when something fails or gets risky. Subagents are used only
|
|
163
|
-
where they genuinely help: independent `[PARALLEL]` task batches, Brook's
|
|
164
|
-
reviewer/security re-verification workers, and background checks.
|
|
165
|
-
|
|
166
|
-
## Manual stages
|
|
167
|
-
|
|
168
|
-
Want to drive the stages yourself? Every stage has a slash command that loads
|
|
169
|
-
the skill, runs the crew role inline, and bridges state from `.mugiwara/`:
|
|
170
|
-
|
|
171
|
-
| Command | Runs | Reads state from |
|
|
172
|
-
|---------|------|------------------|
|
|
173
|
-
| `/mugiwara-plan` | Nami | `.mugiwara/spec/` |
|
|
174
|
-
| `/mugiwara-execute` | Zoro | `.mugiwara/plans/` |
|
|
175
|
-
| `/mugiwara-review` | Robin | `.mugiwara/results/` + diff |
|
|
176
|
-
| `/mugiwara-security` | Jinbe | `.mugiwara/results/` + diff |
|
|
177
|
-
| `/mugiwara-heal` | Brook | `.mugiwara/issues/` |
|
|
178
|
-
| `/mugiwara-ship` | Luffy | plan + results |
|
|
179
|
-
|
|
180
|
-
You can jump into any stage — e.g. run `/mugiwara-plan` first, then
|
|
181
|
-
`/mugiwara-execute` later when you're ready.
|
|
182
|
-
|
|
183
|
-
## Modes
|
|
184
|
-
|
|
185
|
-
The crew runs at one of three autonomy levels, set in `.mugiwara/config`
|
|
186
|
-
(project, overrides global `~/.mugiwara/config`):
|
|
16
|
+
# opencode — add to opencode.json
|
|
17
|
+
{ "plugin": ["@ionivetech/mugiwara"] }
|
|
187
18
|
|
|
19
|
+
# CLI for any target
|
|
20
|
+
npx @ionivetech/mugiwara@latest --project . --target all --yes
|
|
188
21
|
```
|
|
189
|
-
mode=guided
|
|
190
|
-
branch=feature/{type}-{issue}-{slug}
|
|
191
|
-
commit=conventional
|
|
192
|
-
base=main
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
| Level | Plan GO | Branch/commit | Ambiguities | Check-ins |
|
|
196
|
-
|-------|---------|---------------|-------------|-----------|
|
|
197
|
-
| **guided** | ask the user | ask the user | ask the user | ask the user |
|
|
198
|
-
| **semi** | present plan for user GO | auto | self-answer + log | log, no pause |
|
|
199
|
-
| **auto** | gated auto-GO | auto | self-answer + log | log, no pause |
|
|
200
22
|
|
|
201
|
-
|
|
202
|
-
answer ambiguities, and open the PR yourself.
|
|
203
|
-
- **semi** — the crew self-manages branch, commits, and ambiguities (logging
|
|
204
|
-
each decision), but you still give the plan an explicit GO.
|
|
205
|
-
- **auto** — hands-off, with one safety line: the plan proceeds past approval
|
|
206
|
-
only with zero blocking ambiguities AND zero high-risk tasks (deploy /
|
|
207
|
-
migration / DB / public API / state-mutating).
|
|
23
|
+
Then just ask. The crew auto-activates — no agent names to remember.
|
|
208
24
|
|
|
209
|
-
|
|
25
|
+
## What it looks like
|
|
210
26
|
|
|
211
|
-
|
|
212
|
-
writes, network, browsers) always require your explicit consent. Provably
|
|
213
|
-
isolated mutation (in-memory / temp / testcontainer-backed) is auto-safe.
|
|
214
|
-
- **Terminal.** Every mode ends at push + ready PR summary + verdict file (you
|
|
215
|
-
open the PR). The crew never creates a PR, merges, deploys, or auto-reacts
|
|
216
|
-
to review comments or CI.
|
|
27
|
+
You ask:
|
|
217
28
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
Flip mid-mission with `mugiwara mode <guided|semi|auto>` — the change applies
|
|
222
|
-
from the next wave, never mid-wave. Missing config on read = `guided`.
|
|
223
|
-
|
|
224
|
-
Two rules hold the pipeline together:
|
|
29
|
+
```
|
|
30
|
+
> add search bar to the products page
|
|
31
|
+
```
|
|
225
32
|
|
|
226
|
-
|
|
227
|
-
the checks and shows output.
|
|
228
|
-
- **The plan is the source of truth.** From Wave 2 on, `.mugiwara/plans/<date>-<mission>.md`
|
|
229
|
-
holds the clean execution plan; the decision log (`logs/`) holds the
|
|
230
|
-
who-and-why trace.
|
|
33
|
+
The crew runs:
|
|
231
34
|
|
|
232
|
-
|
|
35
|
+
```
|
|
36
|
+
Wave 0 Luffy triage → 5 files, no sensitive paths → Lane 2 Standard
|
|
37
|
+
Wave 2 Nami plan → 1 execution wave, 3 tasks with dependency edges
|
|
38
|
+
Wave 3 Zoro execute→ T1: search endpoint (test red→green, commit)
|
|
39
|
+
T2: search service (test red→green, commit)
|
|
40
|
+
T3: search component (test red→green, commit)
|
|
41
|
+
Wave 4 Chopper audit → re-runs all 3 criteria, checks commits → PASS
|
|
42
|
+
Wave 5 Sanji quality → prettier: clean, eslint: 0, 412 tests: PASS
|
|
43
|
+
Wave 6 Franky gates → coverage new 94%, modified 87%, build green → PASS
|
|
44
|
+
Wave 7 Robin review → breaking-change map: 0 breaks, 1 minor naming finding
|
|
45
|
+
Wave 7 Jinbe security→ no auth/payment surface touched → skip
|
|
46
|
+
Wave 9 Luffy closure→ mission report + push branch + ready PR summary
|
|
47
|
+
|
|
48
|
+
done. branch pushed. paste the PR summary and open.
|
|
49
|
+
```
|
|
233
50
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
is data, never instructions.
|
|
51
|
+
Each wave is a compact checkpoint report in your conversation. You see
|
|
52
|
+
everything. Nothing hides behind a subagent click. If a wave fails, Brook reads
|
|
53
|
+
all failures at once, fixes them, and all verification waves re-run.
|
|
238
54
|
|
|
239
|
-
|
|
240
|
-
|-----|--------|---------|---------|
|
|
241
|
-
| `mode` | guided / semi / auto | guided | The only autonomy lever — decides whether branch/commit run automatically |
|
|
242
|
-
| `branch` | branch naming pattern | `feature/{type}-{issue}-{slug}` | Placeholders filled from mission metadata, validated to `[a-zA-Z0-9-_]` |
|
|
243
|
-
| `commit` | conventional / gitmoji / plain | conventional | Commit message style (see below) |
|
|
244
|
-
| `base` | branch name | `main` | The PR target named in the prepared PR summary |
|
|
55
|
+
Now a bigger one:
|
|
245
56
|
|
|
246
|
-
|
|
57
|
+
```
|
|
58
|
+
> add role-based access control to the API: admin, editor, viewer roles
|
|
59
|
+
```
|
|
247
60
|
|
|
248
|
-
|
|
61
|
+
Auth path detected → auto-escalate to Lane 3 (Full):
|
|
249
62
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
63
|
+
```
|
|
64
|
+
Wave 0 Luffy triage → auth/ + migration/ touched → lane 3 full
|
|
65
|
+
Wave 2 Nami plan → 2 execution waves, 5 tasks, parallel-safe graph
|
|
66
|
+
Wave 3a Zoro execute→ T1 migration + T2 middleware + T3 3 parallel endpoint guards
|
|
67
|
+
Wave 4 Chopper audit → T3-C: viewer can still POST /api/settings → 1 ledger row
|
|
68
|
+
Wave 5 Sanji quality → 2 integration tests fail after middleware change → 2 rows
|
|
69
|
+
Wave 6 Franky gates → coverage 91% / 85%, build green, DoD blocked (3 open rows)
|
|
70
|
+
Wave 7 Robin review → 1 major: error message format inconsistent → 1 row
|
|
71
|
+
Wave 7 Jinbe security→ STRIDE: PASS. 0 high. deny-by-default enforced.
|
|
72
|
+
Wave 8 Brook heal → reads 4 ledger rows → 3 parallel heal workers → fix all
|
|
73
|
+
Wave 4 Chopper re-audit→ PASS (cycle 2)
|
|
74
|
+
Wave 5 Sanji re-qual → PASS
|
|
75
|
+
Wave 6 Franky re-gate → PASS
|
|
76
|
+
Wave 7 Robin re-rev → PASS
|
|
77
|
+
Wave 3b Zoro execute→ T4 admin dashboard RBAC UI + T5 integration tests
|
|
78
|
+
Wave 4 Chopper audit → PASS
|
|
79
|
+
Wave 9 Luffy closure→ state.json + mission report + push + PR summary
|
|
80
|
+
|
|
81
|
+
1 heal cycle. 4 failures from 3 different waves — all fixed at once.
|
|
82
|
+
```
|
|
258
83
|
|
|
259
|
-
|
|
260
|
-
one-logical-task-one-commit rule.
|
|
84
|
+
At closure you get a mission report:
|
|
261
85
|
|
|
262
|
-
|
|
86
|
+
```
|
|
87
|
+
.mugiwara/reports/2026-08-11-rbac.md
|
|
263
88
|
|
|
264
|
-
|
|
89
|
+
Lane full · Mode guided · Actor you · Branch feature/feat-rbac
|
|
265
90
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
├── spec/ # brainstorm output: YYYY-MM-DD-<mission>.md
|
|
270
|
-
├── plans/ # plan docs — clean, Nami-only, single source of truth from Wave 2
|
|
271
|
-
├── results/ # wave results: audits, test output, gate verdicts, todos, closure report
|
|
272
|
-
├── review/ # review + security findings
|
|
273
|
-
├── issues/ # blocker + failure ledger: YYYY-MM-DD-<mission>-blockers.md
|
|
274
|
-
└── logs/ # Luffy's decision + check-in log per mission (deleted at cleanup)
|
|
91
|
+
What changed: 12 files, +340/-82
|
|
92
|
+
Gates: Audit PASS · Quality PASS · Coverage 91%/85% · Security PASS
|
|
93
|
+
State: 12/12 tasks · 0 blockers · 1 heal cycle · 18.5k/20k tokens
|
|
275
94
|
```
|
|
276
95
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
96
|
+
One file. Any reviewer reads it in 30 seconds. That's the governance trail.
|
|
97
|
+
|
|
98
|
+
## Capabilities
|
|
99
|
+
|
|
100
|
+
| Capability | What it does |
|
|
101
|
+
|-----------|-------------|
|
|
102
|
+
| **15 specialist agents** | Luffy triages, Nami plans, Zoro builds TDD, Chopper audits, Sanji checks quality, Franky enforces gates, Robin maps breaking changes, Jinbe runs STRIDE, Brook heals failures. Each with role boundaries: auditors read-only, executor no-network. |
|
|
103
|
+
| **Lane sizing** | Process scaled to work size — computed from `git diff` by `scripts/lane.sh`. Typo = 0 waves. Auth migration = full 9-wave pipeline. Sensitive paths auto-escalate. |
|
|
104
|
+
| **9-wave gated pipeline** | Triage → Plan → Execute → Audit → Quality → Gates → Review+Security → Heal → Closure. Each wave gated by evidence. Pipeline runs inline — you watch everything. |
|
|
105
|
+
| **Evidence trail** | No wave passes on a claim. `scripts/evidence.sh` captures command output. Chopper re-runs criteria. Mission report at closure — one file any reviewer reads in 30 seconds. |
|
|
106
|
+
| **State on disk** | `state.json` written at every wave boundary by `scripts/savepoint.sh`. Lane, files, blockers, token budget — all computed, zero model judgement. Resume reads one file. |
|
|
107
|
+
| **Token budget** | Budget per lane. Warns at 1.5×, pauses at 3×. You decide: continue, split, or reduce. Cost surfaced in mission report — governance, not a kill switch. |
|
|
108
|
+
| **Self-healing** | Brook reads entire blocker ledger after all verification waves. Groups failures, spawns parallel heal workers for independent fixes. Max 3 cycles. |
|
|
109
|
+
| **Deterministic tooling** | `savepoint.sh` (state), `lane.sh` (sizing), `evidence.sh` (output capture), `mission-report.sh` (report). Scripts compute what models shouldn't remember. |
|
|
110
|
+
| **Configurable gates** | Coverage thresholds in `.mugiwara/config`: `coverage_new=90`, `coverage_modified=80`. Raise for strict repos, lower for legacy. |
|
|
111
|
+
| **3 autonomy modes** | Guided (ask everything), semi (auto branch/commit, plan needs GO), auto (hands-off except high-risk). All modes end at push + PR summary — no auto-merge. |
|
|
112
|
+
| **3-layer skills** | 26 skills: trigger description (~150 chars) → body (≤120 lines) → 23 reference files (on demand). 5.2k char index budget — loaded every session. |
|
|
113
|
+
| **Multi-actor safe** | Two engineers, one repo. Reset refuses without `--force`. Branch-scoped state. Shared lessons ledger. |
|
|
114
|
+
| **Compliance matrix** | Rule compliance per model/tier/harness. Published with failures — Gemini tier 2 ≠ Claude tier 1. Documented, not hidden. |
|
|
115
|
+
| **12 harnesses** | Claude Code, opencode, Copilot, Gemini, Codex, Cursor, Kimi, pi, Windsurf, Cline, Kilo, Antigravity. 70+ more via skills.sh. Pure markdown, zero runtime. |
|
|
116
|
+
|
|
117
|
+
## Why this instead of just asking my agent?
|
|
118
|
+
|
|
119
|
+
Your agent alone has no governance. It forgets context, skips verification, and
|
|
120
|
+
burns tokens on small fixes the same way it does on architecture changes. There's
|
|
121
|
+
no audit trail — when someone asks "what did the agent do?", you have nothing to
|
|
122
|
+
show.
|
|
123
|
+
|
|
124
|
+
Mugiwara wraps your agent in a team structure with defined roles, evidence gates,
|
|
125
|
+
and cost tracking. The same discipline you'd expect from a senior engineering
|
|
126
|
+
team — in your chat window, running inline, visible at every step.
|
|
127
|
+
|
|
128
|
+
## The crew
|
|
129
|
+
|
|
130
|
+
15 personas, 26 skills. Each with a permission boundary.
|
|
131
|
+
|
|
132
|
+
| Agent | Role | Permission |
|
|
133
|
+
|-------|------|------------|
|
|
134
|
+
| Luffy | Captain — triage, lane sizing, check-ins, closure | — |
|
|
135
|
+
| Nami | Planner — interviews, scans codebase, writes scaled plans | — |
|
|
136
|
+
| Zoro | Executor — TDD per task, commits per logical unit | **no-network** |
|
|
137
|
+
| Chopper | Auditor — re-runs criteria, writes failure ledger, never fixes | **read-only** |
|
|
138
|
+
| Sanji | Quality — format, lint, test. Never weakens configs | — |
|
|
139
|
+
| Franky | Gates — coverage (configurable thresholds), build, DoD | — |
|
|
140
|
+
| Robin | Reviewer — breaking-change map, five-axis, severity tagging | **read-only** |
|
|
141
|
+
| Jinbe | Security — STRIDE, OWASP, secret scan, dependency audit | **read-only** |
|
|
142
|
+
| Brook | Healer — reads ledger, parallel heal workers, max 3 cycles | — |
|
|
143
|
+
| Skeptic | Adversarial verifier — doubts everything, never validates | **read-only** |
|
|
144
|
+
| Usopp | Brainstorm — interrogates ideas, researches, recommends | — |
|
|
145
|
+
| Resume | Continuity — rebuilds from state.json, never restarts | — |
|
|
146
|
+
| Memory | Cross-mission lessons — read at start, write at closure | — |
|
|
147
|
+
|
|
148
|
+
See [all 15 agents](docs/agents.md) and [all 26 skills](docs/skills.md).
|
|
285
149
|
|
|
286
150
|
## Install
|
|
287
151
|
|
|
288
|
-
###
|
|
152
|
+
### Claude Code
|
|
289
153
|
|
|
290
154
|
<details>
|
|
291
|
-
<summary><
|
|
292
|
-
|
|
293
|
-
**Install**
|
|
155
|
+
<summary><b>Install / Update / Uninstall</b></summary>
|
|
294
156
|
|
|
295
157
|
```bash
|
|
296
|
-
/plugin marketplace add ionivetech/mugiwara
|
|
297
|
-
/plugin
|
|
158
|
+
/plugin marketplace add ionivetech/mugiwara && /plugin install mugiwara # install
|
|
159
|
+
/plugin update mugiwara # update
|
|
160
|
+
/plugin uninstall mugiwara # uninstall
|
|
298
161
|
```
|
|
299
|
-
|
|
300
|
-
**Update** — re-install from the marketplace (or `mugiwara update` via CLI).
|
|
301
|
-
|
|
302
|
-
**Uninstall** — `/plugin uninstall mugiwara`, or `mugiwara uninstall` via CLI.
|
|
303
162
|
</details>
|
|
304
163
|
|
|
305
|
-
|
|
306
|
-
<summary><strong>opencode</strong> — native skills + agents via plugin</summary>
|
|
164
|
+
### opencode
|
|
307
165
|
|
|
308
|
-
|
|
166
|
+
<details>
|
|
167
|
+
<summary><b>Install / Update / Uninstall</b></summary>
|
|
309
168
|
|
|
310
169
|
```json
|
|
311
|
-
{ "plugin": ["@ionivetech/mugiwara"] }
|
|
170
|
+
{ "plugin": ["@ionivetech/mugiwara"] } // add to opencode.json
|
|
312
171
|
```
|
|
313
172
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
{ "plugin": ["mugiwara@git+https://github.com/ionivetech/mugiwara.git"] }
|
|
173
|
+
```bash
|
|
174
|
+
mugiwara update # update
|
|
175
|
+
# remove the plugin entry from opencode.json to uninstall
|
|
318
176
|
```
|
|
319
177
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
**Uninstall** — remove the entry from the array.
|
|
178
|
+
Restart opencode after install.
|
|
323
179
|
</details>
|
|
324
180
|
|
|
325
|
-
|
|
326
|
-
<summary><strong>GitHub Copilot CLI</strong> — same marketplace</summary>
|
|
181
|
+
### GitHub Copilot
|
|
327
182
|
|
|
328
|
-
|
|
183
|
+
<details>
|
|
184
|
+
<summary><b>Install / Update / Uninstall</b></summary>
|
|
329
185
|
|
|
330
186
|
```bash
|
|
331
|
-
copilot plugin marketplace add ionivetech/mugiwara
|
|
332
|
-
copilot plugin
|
|
187
|
+
copilot plugin marketplace add ionivetech/mugiwara && copilot plugin install mugiwara
|
|
188
|
+
copilot plugin update mugiwara
|
|
189
|
+
copilot plugin uninstall mugiwara
|
|
333
190
|
```
|
|
334
|
-
|
|
335
|
-
> Copilot caveat: skills install and function; the agents are Claude-native
|
|
336
|
-
> `.md` files and are best consumed via the CLI install path, which writes
|
|
337
|
-
> Copilot-native `.instructions.md` skills.
|
|
338
|
-
|
|
339
|
-
**Update** — `copilot plugin update mugiwara`. **Uninstall** — `copilot plugin uninstall mugiwara`.
|
|
340
191
|
</details>
|
|
341
192
|
|
|
342
|
-
|
|
343
|
-
<summary><strong>Gemini CLI</strong> — extension</summary>
|
|
193
|
+
### Gemini CLI · Codex · Cursor
|
|
344
194
|
|
|
345
|
-
|
|
195
|
+
<details>
|
|
196
|
+
<summary><b>Gemini</b></summary>
|
|
346
197
|
|
|
347
198
|
```bash
|
|
348
199
|
gemini extensions install https://github.com/ionivetech/mugiwara
|
|
200
|
+
gemini extensions update mugiwara
|
|
201
|
+
gemini extensions remove mugiwara
|
|
349
202
|
```
|
|
350
|
-
|
|
351
|
-
**Update** — `gemini extensions update mugiwara`.
|
|
352
|
-
**Uninstall** — `gemini extensions remove mugiwara`.
|
|
353
203
|
</details>
|
|
354
204
|
|
|
355
205
|
<details>
|
|
356
|
-
<summary><
|
|
357
|
-
|
|
358
|
-
**Install**
|
|
206
|
+
<summary><b>Codex</b></summary>
|
|
359
207
|
|
|
360
208
|
```bash
|
|
361
|
-
codex plugin marketplace add ionivetech/mugiwara
|
|
362
|
-
codex plugin
|
|
209
|
+
codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
|
|
210
|
+
codex plugin update mugiwara
|
|
211
|
+
codex plugin remove mugiwara
|
|
363
212
|
```
|
|
364
|
-
|
|
365
|
-
**Update** — `codex plugin update mugiwara`. **Uninstall** — `codex plugin remove mugiwara`.
|
|
366
213
|
</details>
|
|
367
214
|
|
|
368
215
|
<details>
|
|
369
|
-
<summary><
|
|
370
|
-
|
|
371
|
-
**Install**
|
|
216
|
+
<summary><b>Cursor</b></summary>
|
|
372
217
|
|
|
373
218
|
```
|
|
374
|
-
/add-plugin mugiwara
|
|
219
|
+
/add-plugin mugiwara # install & update
|
|
220
|
+
/remove-plugin mugiwara # uninstall
|
|
375
221
|
```
|
|
376
|
-
|
|
377
|
-
**Update** — re-run `/add-plugin mugiwara`. **Uninstall** — `/remove-plugin mugiwara`.
|
|
378
222
|
</details>
|
|
379
223
|
|
|
380
|
-
|
|
381
|
-
<summary><strong>Kimi Code</strong> — plugin</summary>
|
|
382
|
-
|
|
383
|
-
**Install**
|
|
384
|
-
|
|
385
|
-
```
|
|
386
|
-
/plugins install https://github.com/ionivetech/mugiwara
|
|
387
|
-
```
|
|
388
|
-
|
|
389
|
-
**Update** — `/plugins update mugiwara`. **Uninstall** — `/plugins remove mugiwara`.
|
|
390
|
-
</details>
|
|
224
|
+
### Kimi · pi · Windsurf · Cline · Kilo · Antigravity
|
|
391
225
|
|
|
392
226
|
<details>
|
|
393
|
-
<summary><
|
|
394
|
-
|
|
395
|
-
**Install**
|
|
227
|
+
<summary><b>All other harnesses</b></summary>
|
|
396
228
|
|
|
397
229
|
```bash
|
|
398
|
-
|
|
230
|
+
npx @ionivetech/mugiwara@latest --project . --target all --yes # install
|
|
231
|
+
mugiwara update # update
|
|
232
|
+
mugiwara uninstall # uninstall
|
|
399
233
|
```
|
|
400
|
-
|
|
401
|
-
**Update** — `pi update mugiwara`. **Uninstall** — `pi remove mugiwara`.
|
|
402
234
|
</details>
|
|
403
235
|
|
|
404
|
-
|
|
405
|
-
<summary><strong>npx / npm / curl / PowerShell</strong> — the mugiwara CLI</summary>
|
|
406
|
-
|
|
407
|
-
Requires **Node.js >= 20.11**. Bun is optional — only needed to build from source.
|
|
408
|
-
|
|
409
|
-
**Install**
|
|
236
|
+
### Any agent (skills only)
|
|
410
237
|
|
|
411
238
|
```bash
|
|
412
|
-
#
|
|
413
|
-
npx @ionivetech/mugiwara@latest
|
|
414
|
-
|
|
415
|
-
# non-interactive: global Claude Code install, no prompts
|
|
416
|
-
npx @ionivetech/mugiwara@latest --global --target claude --yes
|
|
417
|
-
|
|
418
|
-
# non-interactive: project install for opencode + GitHub Copilot
|
|
419
|
-
npx @ionivetech/mugiwara@latest --project ./my-app --target opencode,copilot --yes
|
|
420
|
-
|
|
421
|
-
# npm — global install, run `mugiwara` anywhere
|
|
422
|
-
npm install -g @ionivetech/mugiwara
|
|
239
|
+
npx skills add ionivetech/mugiwara # 70+ agents via skills.sh
|
|
423
240
|
```
|
|
424
241
|
|
|
242
|
+
### One-liner
|
|
243
|
+
|
|
425
244
|
```bash
|
|
426
|
-
#
|
|
245
|
+
# macOS / Linux
|
|
427
246
|
curl -fsSL https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.sh | bash
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
```powershell
|
|
431
|
-
# PowerShell — Windows one-liner
|
|
247
|
+
# Windows
|
|
432
248
|
irm https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.ps1 | iex
|
|
433
249
|
```
|
|
434
250
|
|
|
435
|
-
**
|
|
251
|
+
Requires **Node.js >= 20.11**.
|
|
436
252
|
|
|
437
|
-
|
|
438
|
-
|
|
253
|
+
## Configuration
|
|
254
|
+
|
|
255
|
+
`.mugiwara/config` (project) overrides `~/.mugiwara/config` (global).
|
|
256
|
+
|
|
257
|
+
| Key | Default | Meaning |
|
|
258
|
+
|-----|---------|---------|
|
|
259
|
+
| `mode` | guided | Autonomy: guided / semi / auto |
|
|
260
|
+
| `branch` | `feature/{type}-{issue}-{slug}` | Branch naming |
|
|
261
|
+
| `commit` | conventional | conventional / gitmoji / plain |
|
|
262
|
+
| `base` | main | PR target branch |
|
|
263
|
+
| `coverage_new` | 90 | Coverage threshold for new files |
|
|
264
|
+
| `coverage_modified` | 80 | Coverage threshold for modified files |
|
|
265
|
+
|
|
266
|
+
[Full config →](docs/config.md)
|
|
439
267
|
|
|
440
|
-
|
|
441
|
-
[agentskills.io](https://agentskills.io) layout (`skills/<name>/SKILL.md`), so
|
|
442
|
-
you can install just the skills into Claude Code, opencode, Copilot, Cursor,
|
|
443
|
-
Codex, Gemini CLI, and 70+ other agents via [skills.sh](https://skills.sh):
|
|
268
|
+
## CLI
|
|
444
269
|
|
|
445
270
|
```bash
|
|
446
|
-
|
|
271
|
+
mugiwara install # wizard (interactive)
|
|
272
|
+
mugiwara install --project . --target all --yes # non-interactive
|
|
273
|
+
mugiwara update # replace existing files
|
|
274
|
+
mugiwara uninstall # remove what manifest recorded
|
|
275
|
+
mugiwara list # show installations
|
|
276
|
+
mugiwara reset --keep-logs # wipe mission state, keep lessons
|
|
277
|
+
mugiwara reset --force # override multi-actor guard
|
|
447
278
|
```
|
|
448
279
|
|
|
449
|
-
##
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
|
466
|
-
|
|
467
|
-
|
|
|
468
|
-
|
|
|
469
|
-
|
|
|
470
|
-
|
|
|
471
|
-
|
|
|
472
|
-
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
use to operate safely.
|
|
477
|
-
|
|
478
|
-
## Targets
|
|
479
|
-
|
|
480
|
-
| Target | Scope | Installs as |
|
|
481
|
-
|--------|-------|-------------|
|
|
482
|
-
| Claude Code | global + project | Native skills (`SKILL.md`) + agents in `.claude/skills` / `.claude/agents` |
|
|
483
|
-
| opencode | global + project | Native skills + agents in `.opencode/skills` / `.opencode/agents` |
|
|
484
|
-
| GitHub Copilot | global + project | Skills as `.instructions.md` files + agents in `instructions/` / `agents/` |
|
|
485
|
-
| Gemini CLI | project only | Markdown rules in `.gemini/mugiwara/` + `GEMINI.md` pointer |
|
|
486
|
-
| Codex | project only | Markdown rules in `.codex/mugiwara/` + `AGENTS.md` pointer |
|
|
487
|
-
| Windsurf | project only | Rules files in `.devin/rules` |
|
|
488
|
-
| Cline | project only | Rules files in `.clinerules` |
|
|
489
|
-
| Kilo Code | project only | Rules files in `.kilo/rules` + `kilo.jsonc` pointer |
|
|
490
|
-
| Antigravity | project only | Rules files in `.agents/rules` |
|
|
491
|
-
|
|
492
|
-
## Plugin manifests
|
|
493
|
-
|
|
494
|
-
Mugiwara ships native plugin manifests at the repo root so each harness's own
|
|
495
|
-
installer can pick it up: `.claude-plugin/`, `.opencode/plugins/mugiwara.mjs`,
|
|
496
|
-
`gemini-extension.json` + `GEMINI.md`, `.codex-plugin/plugin.json`,
|
|
497
|
-
`.cursor-plugin/plugin.json`, `.kimi-plugin/plugin.json`, and the `"pi"` entry
|
|
498
|
-
in `package.json`. All manifests are skills-only and mirror `content/` as the
|
|
499
|
-
source of truth. The opencode plugin also registers the 15 agents. Versions
|
|
500
|
-
sync from `package.json` via `bun run sync-version`.
|
|
501
|
-
|
|
502
|
-
## Contributing
|
|
503
|
-
|
|
504
|
-
Open an issue or pull request on GitHub.
|
|
505
|
-
|
|
506
|
-
## Resources
|
|
507
|
-
|
|
508
|
-
- Docs: [docs/index.md](docs/index.md) — adoption guide, per-harness installs, crew & skill references
|
|
509
|
-
- GitHub: <https://github.com/ionivetech/mugiwara>
|
|
510
|
-
- npm: <https://www.npmjs.com/package/@ionivetech/mugiwara>
|
|
280
|
+
## When not to use mugiwara
|
|
281
|
+
|
|
282
|
+
- **Autonomous marathon runs** — the agent disappears for hours. Use superpowers.
|
|
283
|
+
- **Deep per-skill reference encyclopedia** — use agent-skills.
|
|
284
|
+
- **A deployable runtime** — use LangGraph / CrewAI.
|
|
285
|
+
- **One large instruction with no ceremony** — use a mega-prompt.
|
|
286
|
+
|
|
287
|
+
Mugiwara is for visibility, governance, and cost awareness. If those don't
|
|
288
|
+
matter to you, this is the wrong tool.
|
|
289
|
+
|
|
290
|
+
## Docs
|
|
291
|
+
|
|
292
|
+
| Doc | What it covers |
|
|
293
|
+
|-----|---------------|
|
|
294
|
+
| [Getting started](docs/getting-started.md) | First mission, lane 0-3 examples, setup walkthrough |
|
|
295
|
+
| [Workflow](docs/workflow.md) | Full 9-wave pipeline with heal loop detail |
|
|
296
|
+
| [Agents](docs/agents.md) | 15 crew members, roles, permissions, how to summon |
|
|
297
|
+
| [Skills](docs/skills.md) | 26 techniques, 3-layer disclosure model |
|
|
298
|
+
| [Lanes](docs/lanes.md) | Deterministic lane sizing — computed from git diff |
|
|
299
|
+
| [Audit trail](docs/audit-trail.md) | 15 artifact types, how to read as reviewer |
|
|
300
|
+
| [Cost model](docs/cost.md) | Index/body/references layers, cost per lane |
|
|
301
|
+
| [Harness matrix](docs/harness-matrix.md) | Tier 1/2/3 — what differs per harness |
|
|
302
|
+
| [Config](docs/config.md) | All `.mugiwara/config` keys with defaults |
|
|
303
|
+
| [Modes](docs/modes.md) | Guided / semi / auto autonomy levels |
|
|
304
|
+
| [Compliance matrix](docs/compliance-matrix.md) | Rule compliance per model — published with failures |
|
|
305
|
+
| [Comparison](docs/comparison.md) | Positioning. When to use mugiwara vs something else. |
|
|
306
|
+
| [Roadmap](ROADMAP.md) | Now — Next — Then — After |
|
|
511
307
|
|
|
512
308
|
## License
|
|
513
309
|
|
|
514
|
-
MIT. Copyright (c) 2026 ionive.
|
|
310
|
+
MIT. Copyright (c) 2026 ionive.
|