claude-raid 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +295 -223
- package/bin/cli.js +16 -2
- package/package.json +1 -1
- package/src/descriptions.js +57 -0
- package/src/doctor.js +4 -29
- package/src/init.js +142 -7
- package/src/merge-settings.js +1 -1
- package/src/setup.js +45 -3
- package/src/ui.js +76 -5
- package/template/.claude/agents/archer.md +30 -0
- package/template/.claude/agents/rogue.md +30 -0
- package/template/.claude/agents/warrior.md +30 -0
- package/template/.claude/agents/wizard.md +68 -14
- package/template/.claude/hooks/raid-lib.sh +73 -55
- package/template/.claude/hooks/raid-session-end.sh +1 -1
- package/template/.claude/hooks/raid-session-start.sh +5 -8
- package/template/.claude/hooks/raid-stop.sh +11 -16
- package/template/.claude/hooks/raid-task-completed.sh +4 -0
- package/template/.claude/hooks/raid-teammate-idle.sh +9 -2
- package/template/.claude/hooks/validate-commit.sh +5 -1
- package/template/.claude/hooks/validate-dungeon.sh +11 -12
- package/template/.claude/skills/raid-design/SKILL.md +8 -3
- package/template/.claude/skills/raid-implementation/SKILL.md +24 -6
- package/template/.claude/skills/raid-protocol/SKILL.md +28 -6
package/README.md
CHANGED
|
@@ -5,231 +5,291 @@
|
|
|
5
5
|
|
|
6
6
|
[1;33m ██████╗██╗ █████╗ ██╗ ██╗██████╗ ███████╗[0m
|
|
7
7
|
[1;33m ██╔════╝██║ ██╔══██╗██║ ██║██╔══██╗██╔════╝[0m
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[1;
|
|
8
|
+
[33m ██║ ██║ ███████║██║ ██║██║ ██║█████╗ [0m
|
|
9
|
+
[33m ██║ ██║ ██╔══██║██║ ██║██║ ██║██╔══╝ [0m
|
|
10
|
+
[33m ╚██████╗███████╗██║ ██║╚██████╔╝██████╔╝███████╗[0m
|
|
11
|
+
[1;31m ╚═════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝[0m
|
|
12
12
|
[1;31m ██████╗ █████╗ ██╗██████╗ [0m
|
|
13
13
|
[1;31m ██╔══██╗██╔══██╗██║██╔══██╗[0m
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
14
|
+
[31m ██████╔╝███████║██║██║ ██║[0m
|
|
15
|
+
[31m ██╔══██╗██╔══██║██║██║ ██║[0m
|
|
16
|
+
[31m ██║ ██║██║ ██║██║██████╔╝[0m
|
|
17
|
+
[2;31m ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═════╝ [0m
|
|
18
18
|
|
|
19
|
-
[90m Adversarial multi-agent
|
|
19
|
+
[90m Adversarial multi-agent development for Claude Code[0m
|
|
20
20
|
|
|
21
21
|
[33m ⚔ ═══════════════════════════════════════════════════════ ⚔[0m
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Four agents
|
|
24
|
+
Four AI agents work through a strict 4-phase workflow where every design decision, implementation choice, and code review is stress-tested by competing perspectives before it ships.
|
|
25
|
+
|
|
26
|
+
Built for [Claude Code](https://claude.ai/claude-code). Zero dependencies. One command to install.
|
|
25
27
|
|
|
26
28
|
Adapted from [obra/superpowers](https://github.com/obra/superpowers) by Jesse Vincent.
|
|
27
29
|
|
|
28
30
|
---
|
|
29
31
|
|
|
30
|
-
##
|
|
32
|
+
## Quick Start
|
|
31
33
|
|
|
32
34
|
```bash
|
|
35
|
+
# Install into any project
|
|
33
36
|
npx claude-raid summon
|
|
34
|
-
```
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
# Preview what gets installed (no changes made)
|
|
39
|
+
npx claude-raid summon --dry-run
|
|
37
40
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
+
# Start a tmux session, then start the Raid
|
|
42
|
+
tmux new-session -s raid
|
|
41
43
|
claude --agent wizard
|
|
42
44
|
```
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
Each agent gets its own tmux pane. You can click into any pane to talk directly to that agent. Describe your task and the Wizard takes over.
|
|
45
47
|
|
|
46
48
|
### Prerequisites
|
|
47
49
|
|
|
48
|
-
The setup wizard checks these automatically during `summon`:
|
|
49
|
-
|
|
50
50
|
| Requirement | Why | Auto-configured? |
|
|
51
51
|
|---|---|---|
|
|
52
|
-
| **
|
|
53
|
-
| **
|
|
54
|
-
| **
|
|
55
|
-
| **
|
|
56
|
-
|
|
57
|
-
`jq` is required for hooks (pre-installed on macOS, `apt install jq` on Linux).
|
|
52
|
+
| **Node.js** 18+ | Runs the installer | No |
|
|
53
|
+
| **Claude Code** v2.1.32+ | Agent teams support | No |
|
|
54
|
+
| **tmux** | Multi-pane agent display | No — `brew install tmux` |
|
|
55
|
+
| **jq** | Hook config parsing | Pre-installed on macOS |
|
|
56
|
+
| **teammateMode** | Set to `tmux` in `~/.claude.json` | Yes (wizard prompts) |
|
|
58
57
|
|
|
59
|
-
|
|
58
|
+
**tmux is required for the multi-pane experience.** Each agent runs in its own pane so you can observe and interact with them independently. Without tmux, agents run in-process (single pane, cycle with Shift+Down).
|
|
60
59
|
|
|
61
|
-
|
|
60
|
+
The setup wizard checks all of these during `summon` and offers to fix what it can.
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
npx claude-raid heal
|
|
65
|
-
```
|
|
62
|
+
---
|
|
66
63
|
|
|
67
64
|
## How It Works
|
|
68
65
|
|
|
69
|
-
You describe
|
|
66
|
+
You describe a task. The Wizard assesses complexity, recommends a mode, and opens the Dungeon — a shared knowledge artifact where agents pin verified findings throughout each phase.
|
|
70
67
|
|
|
71
68
|
```
|
|
72
|
-
Phase 1: DESIGN
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Verified findings pinned to the Dungeon.
|
|
76
|
-
Wizard closes when design is battle-tested.
|
|
77
|
-
|
|
78
|
-
Phase 2: PLAN Agents decompose the design into tasks.
|
|
79
|
-
They fight directly over compliance, naming,
|
|
80
|
-
test coverage, and ordering.
|
|
81
|
-
Agreed tasks pinned to the Dungeon.
|
|
82
|
-
|
|
83
|
-
Phase 3: IMPLEMENTATION One agent implements each task. The others attack
|
|
84
|
-
directly -- and attack each other's reviews too.
|
|
85
|
-
TDD enforced. Every task earns approval.
|
|
86
|
-
|
|
87
|
-
Phase 4: REVIEW Independent reviews, then agents fight over findings
|
|
88
|
-
AND missing findings. Issues pinned by severity.
|
|
89
|
-
Critical and Important must be fixed.
|
|
90
|
-
|
|
91
|
-
FINISHING Agents debate completeness directly.
|
|
92
|
-
Wizard presents merge options. Dungeon cleaned up.
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Every phase follows the same pattern: Wizard opens the Dungeon and dispatches with angles, agents self-organize and interact directly (challenge, roast, build on each other's work), pin verified findings to the Dungeon, and the Wizard closes with a binding ruling. No phase is skipped. No work passes unchallenged.
|
|
96
|
-
|
|
97
|
-
## The Team
|
|
69
|
+
Phase 1: DESIGN Agents explore the problem from competing angles.
|
|
70
|
+
Challenge each other's findings. Pin what survives.
|
|
71
|
+
Wizard closes when the design is battle-tested.
|
|
98
72
|
|
|
99
|
-
|
|
73
|
+
Phase 2: PLAN Decompose the design into testable tasks.
|
|
74
|
+
Fight over naming, ordering, coverage, compliance.
|
|
75
|
+
Pin the agreed task list.
|
|
100
76
|
|
|
101
|
-
|
|
77
|
+
Phase 3: IMPLEMENTATION One agent builds each task (TDD enforced).
|
|
78
|
+
The others attack the implementation directly.
|
|
79
|
+
Every task earns approval before moving on.
|
|
102
80
|
|
|
103
|
-
|
|
81
|
+
Phase 4: REVIEW Independent reviews against design and plan.
|
|
82
|
+
Agents fight over findings AND missing findings.
|
|
83
|
+
Critical and Important issues must be fixed.
|
|
104
84
|
|
|
105
|
-
|
|
85
|
+
FINISHING Agents debate completeness. Wizard presents
|
|
86
|
+
merge options: merge, PR, keep branch, or discard.
|
|
87
|
+
```
|
|
106
88
|
|
|
107
|
-
|
|
89
|
+
No phase is skipped. No work passes unchallenged.
|
|
108
90
|
|
|
109
|
-
|
|
91
|
+
---
|
|
110
92
|
|
|
111
|
-
The
|
|
93
|
+
## The Team
|
|
112
94
|
|
|
113
|
-
|
|
95
|
+
### Wizard — Dungeon Master
|
|
114
96
|
|
|
115
|
-
|
|
97
|
+
Thinks 5 times before speaking. Opens phases, dispatches the team with precise angles, observes silently (90% of the time), and closes each phase with a binding ruling citing Dungeon evidence. The Wizard doesn't write code — it ensures the process produces the best possible outcome.
|
|
116
98
|
|
|
117
|
-
|
|
99
|
+
### Warrior — Stress Tester
|
|
118
100
|
|
|
119
|
-
|
|
101
|
+
Rips things apart. Race conditions, null input, scale, memory pressure — nothing passes unchecked. Demands evidence, proposes counter-examples, and pushes until things break. Concedes instantly when proven wrong.
|
|
120
102
|
|
|
121
|
-
|
|
103
|
+
### Archer — Pattern Seeker
|
|
122
104
|
|
|
123
|
-
|
|
105
|
+
Finds what brute force misses. Naming mismatches, violated conventions, design drift. Traces ripple effects — changing X in module A silently breaks Y in module C through an implicit contract in Z. Every finding includes the exact location and the exact consequence.
|
|
124
106
|
|
|
125
|
-
|
|
107
|
+
### Rogue — Assumption Destroyer
|
|
126
108
|
|
|
127
|
-
|
|
109
|
+
Thinks like a malicious user, a failing network, a corrupted database, a race condition at 3 AM. Constructs the exact sequence of events that turns a minor oversight into a critical failure. Every finding is a concrete attack scenario, not a theoretical concern.
|
|
128
110
|
|
|
129
|
-
|
|
111
|
+
---
|
|
130
112
|
|
|
131
113
|
## Modes
|
|
132
114
|
|
|
133
|
-
Not every task needs all four agents. The Wizard recommends a mode based on complexity, or you can
|
|
115
|
+
Not every task needs all four agents. The Wizard recommends a mode based on complexity, or you can override directly.
|
|
134
116
|
|
|
135
117
|
| | Full Raid | Skirmish | Scout |
|
|
136
118
|
|---|---|---|---|
|
|
137
|
-
| **Agents** | 3 | 2 | 1 |
|
|
138
|
-
| **Design
|
|
139
|
-
| **
|
|
119
|
+
| **Agents** | 3 + Wizard | 2 + Wizard | 1 + Wizard |
|
|
120
|
+
| **Design** | Full adversarial | Lightweight | Inline |
|
|
121
|
+
| **Planning** | Full adversarial | Merged with design | Inline |
|
|
140
122
|
| **Implementation** | 1 builds, 2 attack | 1 builds, 1 attacks | 1 builds, Wizard reviews |
|
|
141
123
|
| **Review** | 3 independent reviews | 1 review + Wizard | Wizard only |
|
|
142
|
-
| **TDD** |
|
|
143
|
-
| **Verification** | Triple | Double | Single + Wizard |
|
|
124
|
+
| **TDD** | Enforced | Enforced | Enforced |
|
|
144
125
|
|
|
145
|
-
**When to use:**
|
|
126
|
+
**When to use each:**
|
|
146
127
|
|
|
147
|
-
- **Full Raid**
|
|
148
|
-
- **Skirmish**
|
|
149
|
-
- **Scout**
|
|
128
|
+
- **Full Raid** — Architecture decisions, security-critical code, major refactors, cross-layer changes
|
|
129
|
+
- **Skirmish** — Medium features, non-trivial bugfixes, multi-file changes
|
|
130
|
+
- **Scout** — Config changes, documentation, single-file fixes
|
|
150
131
|
|
|
151
132
|
Override the Wizard's recommendation: *"Full Raid this"*, *"Skirmish this bugfix"*, *"Scout this"*.
|
|
152
133
|
|
|
153
134
|
The Wizard can escalate mid-task (Scout to Skirmish, Skirmish to Full Raid) with your approval. It cannot de-escalate without asking.
|
|
154
135
|
|
|
155
|
-
|
|
136
|
+
---
|
|
156
137
|
|
|
157
138
|
## The Dungeon
|
|
158
139
|
|
|
159
|
-
The Dungeon (`.claude/raid-dungeon.md`) is the team's shared knowledge artifact
|
|
140
|
+
The Dungeon (`.claude/raid-dungeon.md`) is the team's shared knowledge artifact — a curated board where agents pin verified findings during each phase.
|
|
160
141
|
|
|
161
|
-
**What goes in
|
|
142
|
+
**What goes in:** Findings that survived challenge from 2+ agents, active unresolved battles, key decisions, escalation points.
|
|
162
143
|
|
|
163
144
|
**What stays in conversation:** The back-and-forth of challenges and roasts, exploratory thinking, concessions. The conversation is the sparring ring. The Dungeon is the scoreboard.
|
|
164
145
|
|
|
165
|
-
**Lifecycle:** Wizard creates
|
|
146
|
+
**Lifecycle:** Wizard creates it when opening a phase, agents pin findings with `DUNGEON:` prefix, Wizard archives it when closing (`raid-dungeon-phase-N.md`), and all Dungeon files are cleaned up when the session ends.
|
|
166
147
|
|
|
167
|
-
|
|
148
|
+
Agents interact directly — `@Name` mentions, building on each other's discoveries, roasting weak analysis. The Wizard observes silently, intervening only on destructive loops, drift, deadlock, or misinformation.
|
|
168
149
|
|
|
169
|
-
|
|
150
|
+
---
|
|
170
151
|
|
|
171
|
-
|
|
152
|
+
## What Gets Installed
|
|
172
153
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
154
|
+
```
|
|
155
|
+
.claude/
|
|
156
|
+
├── raid.json # Project config (auto-detected, editable)
|
|
157
|
+
├── raid-rules.md # 17 team rules across 3 pillars (editable)
|
|
158
|
+
├── settings.json # Hooks merged with existing (backup created)
|
|
159
|
+
├── agents/
|
|
160
|
+
│ ├── wizard.md # Dungeon master
|
|
161
|
+
│ ├── warrior.md # Stress tester
|
|
162
|
+
│ ├── archer.md # Pattern seeker
|
|
163
|
+
│ └── rogue.md # Assumption destroyer
|
|
164
|
+
├── hooks/
|
|
165
|
+
│ ├── raid-lib.sh # Shared config and session state
|
|
166
|
+
│ ├── raid-session-start.sh # Session activation
|
|
167
|
+
│ ├── raid-session-end.sh # Archive and cleanup
|
|
168
|
+
│ ├── raid-stop.sh # Phase transition backup
|
|
169
|
+
│ ├── raid-pre-compact.sh # Pre-compaction backup
|
|
170
|
+
│ ├── raid-task-created.sh # Task subject validation
|
|
171
|
+
│ ├── raid-task-completed.sh # Test evidence gate
|
|
172
|
+
│ ├── raid-teammate-idle.sh # Idle agent nudge
|
|
173
|
+
│ ├── validate-commit.sh # Conventional commits + test gate
|
|
174
|
+
│ ├── validate-write-gate.sh # Design doc before implementation
|
|
175
|
+
│ ├── validate-file-naming.sh # Naming convention enforcement
|
|
176
|
+
│ ├── validate-no-placeholders.sh # No TBD/TODO in specs
|
|
177
|
+
│ ├── validate-dungeon.sh # Multi-agent verification on pins
|
|
178
|
+
│ ├── validate-browser-tests-exist.sh # Playwright test detection
|
|
179
|
+
│ └── validate-browser-cleanup.sh # Browser process cleanup
|
|
180
|
+
└── skills/
|
|
181
|
+
├── raid-protocol/ # Session lifecycle and team rules
|
|
182
|
+
├── raid-design/ # Phase 1: adversarial exploration
|
|
183
|
+
├── raid-implementation-plan/ # Phase 2: task decomposition
|
|
184
|
+
├── raid-implementation/ # Phase 3: TDD with direct challenge
|
|
185
|
+
├── raid-review/ # Phase 4: independent review + fighting
|
|
186
|
+
├── raid-finishing/ # Completeness debate + merge options
|
|
187
|
+
├── raid-tdd/ # RED-GREEN-REFACTOR enforcement
|
|
188
|
+
├── raid-debugging/ # Root-cause investigation
|
|
189
|
+
├── raid-verification/ # Evidence-before-claims gate
|
|
190
|
+
├── raid-git-worktrees/ # Isolated workspace creation
|
|
191
|
+
├── raid-browser/ # Browser startup discovery
|
|
192
|
+
├── raid-browser-playwright/ # Playwright test authoring
|
|
193
|
+
└── raid-browser-chrome/ # Live browser inspection
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Dungeon files (`raid-dungeon.md`, `raid-dungeon-phase-*.md`) and session state (`raid-session`) are created at runtime during Raid sessions and cleaned up automatically.
|
|
197
|
+
|
|
198
|
+
---
|
|
185
199
|
|
|
186
200
|
## Hooks
|
|
187
201
|
|
|
188
|
-
|
|
202
|
+
Hooks enforce workflow discipline automatically. They split into two categories:
|
|
189
203
|
|
|
190
|
-
|
|
204
|
+
### Lifecycle Hooks
|
|
191
205
|
|
|
192
|
-
|
|
206
|
+
Manage session state without manual intervention. These activate and deactivate as sessions begin and end.
|
|
207
|
+
|
|
208
|
+
| Hook | Trigger | Purpose |
|
|
209
|
+
|---|---|---|
|
|
210
|
+
| **raid-session-start** | SessionStart | Activates Raid workflow, checks Vault for past quests |
|
|
211
|
+
| **raid-session-end** | SessionEnd | Archives Dungeon, drafts Vault entry, removes session |
|
|
212
|
+
| **raid-stop** | Stop | Backs up Dungeon on phase transitions |
|
|
213
|
+
| **raid-pre-compact** | PreCompact | Backs up Dungeon before message compaction |
|
|
214
|
+
| **raid-task-created** | TaskCreated | Validates task subjects are meaningful |
|
|
215
|
+
| **raid-task-completed** | TaskCompleted | Blocks task completion without test evidence |
|
|
216
|
+
| **raid-teammate-idle** | TeammateIdle | Nudges idle agents to participate |
|
|
217
|
+
|
|
218
|
+
### Quality Gates
|
|
219
|
+
|
|
220
|
+
Enforce code standards and workflow compliance. Quality gates only activate during Raid sessions — they won't interfere with normal coding.
|
|
221
|
+
|
|
222
|
+
| Hook | Trigger | Purpose |
|
|
193
223
|
|---|---|---|
|
|
194
|
-
| **validate-
|
|
195
|
-
| **validate-
|
|
196
|
-
| **validate-
|
|
197
|
-
| **validate-
|
|
198
|
-
| **validate-
|
|
199
|
-
| **validate-
|
|
224
|
+
| **validate-commit** | PreToolUse (Bash) | Conventional commit format + test gate before commits |
|
|
225
|
+
| **validate-write-gate** | PreToolUse (Write) | Blocks implementation files before design doc exists |
|
|
226
|
+
| **validate-file-naming** | PostToolUse (Write) | Enforces naming convention (kebab-case, snake_case, etc.) |
|
|
227
|
+
| **validate-no-placeholders** | PostToolUse (Write) | Blocks TBD/TODO/FIXME in specs and plans |
|
|
228
|
+
| **validate-dungeon** | PostToolUse (Write) | Requires 2+ agents verified on Dungeon pins |
|
|
229
|
+
| **validate-browser-tests-exist** | PreToolUse (Bash) | Checks Playwright tests exist before commits |
|
|
230
|
+
| **validate-browser-cleanup** | PostToolUse (Bash) | Verifies browser processes cleaned up properly |
|
|
200
231
|
|
|
201
|
-
|
|
232
|
+
All hooks are POSIX-compatible, read configuration from `raid.json`, and use `#claude-raid` markers to avoid collisions with your existing hooks.
|
|
202
233
|
|
|
203
|
-
|
|
204
|
-
|
|
234
|
+
**Exit codes:** `0` = pass, `2` = block with message (agent sees the error and must fix it).
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Skills
|
|
239
|
+
|
|
240
|
+
13 specialized skills guide agent behavior at each stage of the workflow.
|
|
241
|
+
|
|
242
|
+
### Phase Skills
|
|
243
|
+
|
|
244
|
+
| Skill | Purpose |
|
|
245
|
+
|---|---|
|
|
246
|
+
| **raid-protocol** | Master orchestration. Session lifecycle, team composition, modes, rules, reference tables. Loaded at session start. |
|
|
247
|
+
| **raid-design** | Phase 1. Agents independently explore from assigned angles, challenge findings, pin discoveries. Produces a battle-tested design spec. |
|
|
248
|
+
| **raid-implementation-plan** | Phase 2. Decompose design into testable tasks. Agents debate naming, ordering, coverage, compliance. |
|
|
249
|
+
| **raid-implementation** | Phase 3. One implements (TDD), others attack. Rotate implementer per task. No task passes without all issues resolved. |
|
|
250
|
+
| **raid-review** | Phase 4. Independent reviews against design and plan. Issues classified as Critical (must fix), Important (must fix), or Minor (note). |
|
|
251
|
+
| **raid-finishing** | Completeness debate. Agents argue whether work is done. Four merge options: merge, PR, keep branch, discard. |
|
|
252
|
+
|
|
253
|
+
### Discipline Skills
|
|
254
|
+
|
|
255
|
+
| Skill | Purpose |
|
|
256
|
+
|---|---|
|
|
257
|
+
| **raid-tdd** | Strict RED-GREEN-REFACTOR. No production code before a failing test. Challengers attack test quality. |
|
|
258
|
+
| **raid-debugging** | Competing hypotheses in parallel. No fixes without confirmed root cause. 3+ failed fixes triggers architecture rethink. |
|
|
259
|
+
| **raid-verification** | Evidence before assertions. Fresh test run required. Forbidden phrases without evidence: "done", "working", "fixed". |
|
|
260
|
+
| **raid-git-worktrees** | Isolated workspace creation with safety verification and clean test baseline. |
|
|
261
|
+
|
|
262
|
+
### Browser Skills
|
|
263
|
+
|
|
264
|
+
| Skill | Purpose |
|
|
265
|
+
|---|---|
|
|
266
|
+
| **raid-browser** | Browser startup discovery. Detects dev server, auth requirements, startup steps. |
|
|
267
|
+
| **raid-browser-playwright** | Playwright MCP test authoring with network and console assertions. |
|
|
268
|
+
| **raid-browser-chrome** | Live browser inspection via Claude-in-Chrome MCP. Angle-driven investigation. |
|
|
269
|
+
|
|
270
|
+
---
|
|
205
271
|
|
|
206
272
|
## Team Rules
|
|
207
273
|
|
|
208
|
-
17 non-negotiable rules
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
14. **Dungeon discipline** -- only pin verified findings, don't spam
|
|
224
|
-
15. **Direct engagement** -- address agents by name, build on each other's work
|
|
225
|
-
16. **Escalate wisely** -- pull the Wizard only when genuinely stuck
|
|
226
|
-
17. **Roast with evidence** -- every critique carries proof
|
|
227
|
-
|
|
228
|
-
Edit this file to add project-specific rules. Updates via `claude-raid update` will overwrite it, so keep a backup if you've customized it.
|
|
274
|
+
17 non-negotiable rules organized into 3 pillars. Stored in `.claude/raid-rules.md` (editable).
|
|
275
|
+
|
|
276
|
+
### Pillar 1: Intellectual Honesty
|
|
277
|
+
|
|
278
|
+
Every claim has evidence you gathered yourself. If you haven't read the code or run the command this turn, you don't know what it says. Never fabricate evidence, certainty, or findings.
|
|
279
|
+
|
|
280
|
+
### Pillar 2: Zero Ego Collaboration
|
|
281
|
+
|
|
282
|
+
When proven wrong, concede instantly. Defend with evidence, never with authority. A teammate catching your mistake is a gift. Build on each other's work — the best findings come from combining perspectives.
|
|
283
|
+
|
|
284
|
+
### Pillar 3: Discipline and Efficiency
|
|
285
|
+
|
|
286
|
+
Maximum effort on every task. Every interaction carries work forward. Agents talk directly to each other — the Wizard is not a relay. Escalate to the Wizard only after you've tried to resolve it yourself.
|
|
287
|
+
|
|
288
|
+
---
|
|
229
289
|
|
|
230
290
|
## Configuration
|
|
231
291
|
|
|
232
|
-
`claude-raid summon` auto-detects your
|
|
292
|
+
`claude-raid summon` auto-detects your project and generates `.claude/raid.json`:
|
|
233
293
|
|
|
234
294
|
```json
|
|
235
295
|
{
|
|
@@ -250,149 +310,161 @@ Edit this file to add project-specific rules. Updates via `claude-raid update` w
|
|
|
250
310
|
"commits": "conventional"
|
|
251
311
|
},
|
|
252
312
|
"raid": {
|
|
253
|
-
"defaultMode": "full"
|
|
313
|
+
"defaultMode": "full",
|
|
314
|
+
"vault": { "path": ".claude/vault", "enabled": true },
|
|
315
|
+
"lifecycle": {
|
|
316
|
+
"autoSessionManagement": true,
|
|
317
|
+
"testWindowMinutes": 10
|
|
318
|
+
}
|
|
254
319
|
}
|
|
255
320
|
}
|
|
256
321
|
```
|
|
257
322
|
|
|
258
|
-
### Auto-
|
|
323
|
+
### Auto-Detection
|
|
259
324
|
|
|
260
|
-
| Marker File | Language | Test Command | Lint Command |
|
|
261
|
-
|
|
262
|
-
| `package.json` | JavaScript | `npm test` | `npm run lint` |
|
|
263
|
-
| `Cargo.toml` | Rust | `cargo test` | `cargo clippy` |
|
|
264
|
-
| `pyproject.toml` | Python | `pytest` / `poetry run pytest` | `ruff check .` |
|
|
265
|
-
| `requirements.txt` | Python | `pytest` | `ruff check .` |
|
|
266
|
-
| `go.mod` | Go | `go test ./...` | `go vet ./...` |
|
|
325
|
+
| Marker File | Language | Test Command | Lint Command |
|
|
326
|
+
|---|---|---|---|
|
|
327
|
+
| `package.json` | JavaScript | `npm test` | `npm run lint` |
|
|
328
|
+
| `Cargo.toml` | Rust | `cargo test` | `cargo clippy` |
|
|
329
|
+
| `pyproject.toml` | Python | `pytest` / `poetry run pytest` | `ruff check .` |
|
|
330
|
+
| `requirements.txt` | Python | `pytest` | `ruff check .` |
|
|
331
|
+
| `go.mod` | Go | `go test ./...` | `go vet ./...` |
|
|
267
332
|
|
|
268
|
-
Commands are
|
|
333
|
+
Commands are extracted from your project files (e.g., `scripts.test` in `package.json`). Package manager is auto-detected (npm, pnpm, yarn, bun, uv, poetry). Edit `raid.json` to override any value.
|
|
269
334
|
|
|
270
|
-
### Configuration
|
|
335
|
+
### Configuration Reference
|
|
271
336
|
|
|
272
337
|
| Key | Default | Description |
|
|
273
338
|
|---|---|---|
|
|
274
339
|
| `project.testCommand` | auto-detected | Command to run tests |
|
|
275
340
|
| `project.lintCommand` | auto-detected | Command to run linting |
|
|
276
341
|
| `project.buildCommand` | auto-detected | Command to build |
|
|
277
|
-
| `paths.specs` | `docs/raid/specs` |
|
|
278
|
-
| `paths.plans` | `docs/raid/plans` |
|
|
279
|
-
| `paths.worktrees` | `.worktrees` |
|
|
280
|
-
| `conventions.fileNaming` | `none` |
|
|
281
|
-
| `conventions.commits` | `conventional` | Commit format |
|
|
342
|
+
| `paths.specs` | `docs/raid/specs` | Design spec output directory |
|
|
343
|
+
| `paths.plans` | `docs/raid/plans` | Implementation plan output directory |
|
|
344
|
+
| `paths.worktrees` | `.worktrees` | Git worktree directory |
|
|
345
|
+
| `conventions.fileNaming` | `none` | `kebab-case`, `snake_case`, `camelCase`, or `none` |
|
|
346
|
+
| `conventions.commits` | `conventional` | Commit message format |
|
|
282
347
|
| `conventions.commitMinLength` | `15` | Minimum commit message length |
|
|
283
348
|
| `conventions.maxDepth` | `8` | Maximum file nesting depth |
|
|
284
349
|
| `raid.defaultMode` | `full` | Default mode: `full`, `skirmish`, `scout` |
|
|
350
|
+
| `raid.lifecycle.testWindowMinutes` | `10` | Max age (minutes) of test run for verification |
|
|
351
|
+
|
|
352
|
+
### Browser Testing
|
|
285
353
|
|
|
286
|
-
|
|
354
|
+
When a browser framework is detected (Next.js, Vite, Angular, etc.), a `browser` section is added to `raid.json`:
|
|
287
355
|
|
|
288
|
-
|
|
356
|
+
```json
|
|
357
|
+
{
|
|
358
|
+
"browser": {
|
|
359
|
+
"enabled": true,
|
|
360
|
+
"framework": "next",
|
|
361
|
+
"devCommand": "npm run dev",
|
|
362
|
+
"baseUrl": "http://localhost:3000",
|
|
363
|
+
"defaultPort": 3000,
|
|
364
|
+
"playwrightConfig": "playwright.config.ts"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
This enables browser-specific hooks and skills — Playwright test detection, browser process cleanup, and live browser inspection during reviews.
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
373
|
+
## CLI Commands
|
|
374
|
+
|
|
375
|
+
| Command | Purpose |
|
|
289
376
|
|---|---|
|
|
290
|
-
| `claude-raid summon` |
|
|
291
|
-
| `claude-raid
|
|
292
|
-
| `claude-raid
|
|
293
|
-
| `claude-raid
|
|
377
|
+
| `claude-raid summon` | Install Raid into your project |
|
|
378
|
+
| `claude-raid summon --dry-run` | Preview what would be installed |
|
|
379
|
+
| `claude-raid update` | Upgrade hooks, skills, and rules to latest version |
|
|
380
|
+
| `claude-raid dismantle` | Remove all Raid files, restore original settings |
|
|
381
|
+
| `claude-raid heal` | Check environment health, show reference card |
|
|
294
382
|
|
|
295
|
-
|
|
383
|
+
Old names (`init`, `remove`, `doctor`) still work as aliases.
|
|
296
384
|
|
|
297
385
|
### `summon`
|
|
298
386
|
|
|
299
|
-
|
|
387
|
+
Installs the full Raid system into your project. Auto-detects project type, copies agents/hooks/skills, generates `raid.json`, merges settings (with backup), and runs the setup wizard.
|
|
300
388
|
|
|
301
|
-
-
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
- Merges settings into existing `settings.json` (with backup)
|
|
305
|
-
- Makes hooks executable
|
|
306
|
-
- Adds session files to `.gitignore`
|
|
307
|
-
- Runs the setup wizard to check and configure prerequisites
|
|
308
|
-
- **Never overwrites** existing files with the same name
|
|
389
|
+
- Never overwrites existing files — customized agents are preserved
|
|
390
|
+
- Idempotent — safe to run multiple times
|
|
391
|
+
- `--dry-run` shows exactly what would be created without touching disk
|
|
309
392
|
|
|
310
393
|
### `update`
|
|
311
394
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
- Overwrites hooks, skills, and `raid-rules.md` with latest versions
|
|
315
|
-
- **Skips customized agents** (warns you which warriors were preserved)
|
|
316
|
-
- Does **not** touch `raid.json` (your realm config stays intact)
|
|
317
|
-
- Re-runs settings merge to pick up new hooks
|
|
395
|
+
Upgrades hooks, skills, and `raid-rules.md` to the latest version. Skips customized agents (warns which ones were preserved). Does not touch `raid.json` — your project config stays intact.
|
|
318
396
|
|
|
319
397
|
### `dismantle`
|
|
320
398
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
- Removes all Raid agents, hooks, skills, and config files
|
|
324
|
-
- Restores `settings.json` from backup (if backup exists)
|
|
325
|
-
- Preserves non-Raid files in `.claude/`
|
|
399
|
+
Removes all Raid agents, hooks, skills, and config files. Restores `settings.json` from the backup created during install. Preserves non-Raid files in `.claude/`.
|
|
326
400
|
|
|
327
401
|
### `heal`
|
|
328
402
|
|
|
329
|
-
|
|
403
|
+
Checks Node.js, Claude Code, jq, teammateMode, and split-pane support. Offers to fix missing configuration interactively. Shows the "How It Works" reference card with modes, phases, hook enforcement, and controls.
|
|
330
404
|
|
|
331
|
-
|
|
332
|
-
- Offers to fix missing configuration interactively
|
|
333
|
-
- Shows Quick Start, Controls, and Raid Modes reference
|
|
334
|
-
- Exits with code 1 in CI when required checks fail
|
|
405
|
+
---
|
|
335
406
|
|
|
336
|
-
##
|
|
407
|
+
## Controls
|
|
337
408
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
├── raid-debugging/ # Root cause analysis
|
|
364
|
-
├── raid-verification/ # Evidence before claims
|
|
365
|
-
└── raid-git-worktrees/ # Isolated workspaces
|
|
409
|
+
**tmux pane navigation (recommended):**
|
|
410
|
+
|
|
411
|
+
| Action | How |
|
|
412
|
+
|---|---|
|
|
413
|
+
| **Switch to agent pane** | Click the pane, or `Ctrl+B` then arrow key |
|
|
414
|
+
| **Talk to an agent** | Click their pane and type |
|
|
415
|
+
| **View all agents** | All panes visible simultaneously |
|
|
416
|
+
|
|
417
|
+
**In-process mode (no tmux):**
|
|
418
|
+
|
|
419
|
+
| Shortcut | Action |
|
|
420
|
+
|---|---|
|
|
421
|
+
| **Shift+Down** | Cycle through teammates |
|
|
422
|
+
| **Enter** | View a teammate's session |
|
|
423
|
+
| **Escape** | Interrupt a teammate's turn |
|
|
424
|
+
| **Ctrl+T** | Toggle the shared task list |
|
|
425
|
+
|
|
426
|
+
### Starting a Raid session
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
# Always start tmux first for multi-pane
|
|
430
|
+
tmux new-session -s raid
|
|
431
|
+
|
|
432
|
+
# Then start the Wizard inside tmux
|
|
433
|
+
claude --agent wizard
|
|
366
434
|
```
|
|
367
435
|
|
|
368
|
-
|
|
436
|
+
The Wizard creates a team and spawns agents — each gets its own tmux pane automatically. If you're not inside tmux, agents fall back to in-process mode (single pane).
|
|
437
|
+
|
|
438
|
+
---
|
|
369
439
|
|
|
370
440
|
## Non-Invasive Design
|
|
371
441
|
|
|
372
442
|
The Raid is a tool in your toolkit, not your project's operating system.
|
|
373
443
|
|
|
374
|
-
- **Never touches your `CLAUDE.md`**
|
|
444
|
+
- **Never touches your `CLAUDE.md`** — your project instructions stay yours
|
|
375
445
|
- **Merges settings** alongside your existing config, with automatic backup
|
|
376
446
|
- **Won't overwrite** existing agents, hooks, or skills that share a name
|
|
377
|
-
- **Session-scoped hooks**
|
|
447
|
+
- **Session-scoped hooks** — workflow hooks only activate during Raid sessions, never during normal coding
|
|
378
448
|
- **Clean removal** restores your original `settings.json` from backup
|
|
379
|
-
- **Zero npm dependencies**
|
|
449
|
+
- **Zero npm dependencies** — pure Node.js stdlib, fast `npx` cold-start
|
|
450
|
+
|
|
451
|
+
---
|
|
380
452
|
|
|
381
453
|
## Inherited from Superpowers
|
|
382
454
|
|
|
383
455
|
The Raid inherits and adapts the [Superpowers](https://github.com/obra/superpowers) behavioral harness:
|
|
384
456
|
|
|
385
|
-
| Concept | How
|
|
457
|
+
| Concept | How the Raid Uses It |
|
|
386
458
|
|---|---|
|
|
387
459
|
| HARD-GATEs | No code before design approval. No implementation before plan approval. |
|
|
388
460
|
| TDD Iron Law | No production code without a failing test first. Enforced in all modes. |
|
|
389
461
|
| Verification Iron Law | No completion claims without fresh test evidence. |
|
|
390
|
-
| No Placeholders |
|
|
391
|
-
|
|
|
392
|
-
|
|
393
|
-
|
|
462
|
+
| No Placeholders | Specs and plans must contain complete content, not "TBD" or "implement later". |
|
|
463
|
+
| Conventional Commits | Enforced via hook: `type(scope): description`. |
|
|
464
|
+
|
|
465
|
+
**What's different:** Superpowers uses a single agent with subagent delegation. The Raid uses 4 agents in an agent team with adversarial cross-testing, direct interaction, and collaborative learning. Agents talk to each other (not through the Wizard), pin verified findings to a shared Dungeon, and self-organize within phases. Every decision is stress-tested from multiple angles before it passes.
|
|
394
466
|
|
|
395
|
-
|
|
467
|
+
---
|
|
396
468
|
|
|
397
469
|
## License
|
|
398
470
|
|