agileflow 3.4.0 → 3.4.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.
- package/CHANGELOG.md +5 -0
- package/README.md +4 -4
- package/package.json +1 -1
- package/scripts/agileflow-welcome.js +79 -0
- package/scripts/claude-tmux.sh +12 -36
- package/scripts/lib/ac-test-matcher.js +452 -0
- package/scripts/lib/audit-registry.js +58 -2
- package/scripts/lib/configure-features.js +35 -0
- package/scripts/lib/model-profiles.js +25 -5
- package/scripts/lib/quality-gates.js +163 -0
- package/scripts/lib/signal-detectors.js +43 -0
- package/scripts/lib/status-writer.js +255 -0
- package/scripts/lib/story-claiming.js +128 -45
- package/scripts/lib/task-sync.js +32 -38
- package/scripts/lib/tmux-audit-monitor.js +611 -0
- package/scripts/lib/tool-registry.yaml +241 -0
- package/scripts/lib/tool-shed.js +441 -0
- package/scripts/native-team-observer.js +219 -0
- package/scripts/obtain-context.js +14 -0
- package/scripts/ralph-loop.js +30 -5
- package/scripts/smart-detect.js +21 -0
- package/scripts/spawn-audit-sessions.js +372 -44
- package/scripts/team-manager.js +19 -0
- package/src/core/agents/a11y-analyzer-aria.md +155 -0
- package/src/core/agents/a11y-analyzer-forms.md +162 -0
- package/src/core/agents/a11y-analyzer-keyboard.md +175 -0
- package/src/core/agents/a11y-analyzer-semantic.md +153 -0
- package/src/core/agents/a11y-analyzer-visual.md +158 -0
- package/src/core/agents/a11y-consensus.md +248 -0
- package/src/core/agents/ads-consensus.md +74 -0
- package/src/core/agents/ads-generate.md +145 -0
- package/src/core/agents/ads-performance-tracker.md +197 -0
- package/src/core/agents/api-quality-analyzer-conventions.md +148 -0
- package/src/core/agents/api-quality-analyzer-docs.md +176 -0
- package/src/core/agents/api-quality-analyzer-errors.md +183 -0
- package/src/core/agents/api-quality-analyzer-pagination.md +171 -0
- package/src/core/agents/api-quality-analyzer-versioning.md +143 -0
- package/src/core/agents/api-quality-consensus.md +214 -0
- package/src/core/agents/arch-analyzer-circular.md +148 -0
- package/src/core/agents/arch-analyzer-complexity.md +171 -0
- package/src/core/agents/arch-analyzer-coupling.md +146 -0
- package/src/core/agents/arch-analyzer-layering.md +151 -0
- package/src/core/agents/arch-analyzer-patterns.md +162 -0
- package/src/core/agents/arch-consensus.md +227 -0
- package/src/core/commands/adr.md +1 -0
- package/src/core/commands/ads/generate.md +238 -0
- package/src/core/commands/ads/health.md +327 -0
- package/src/core/commands/ads/test-plan.md +317 -0
- package/src/core/commands/ads/track.md +288 -0
- package/src/core/commands/ads.md +28 -16
- package/src/core/commands/assign.md +1 -0
- package/src/core/commands/audit.md +43 -6
- package/src/core/commands/babysit.md +90 -6
- package/src/core/commands/baseline.md +1 -0
- package/src/core/commands/blockers.md +1 -0
- package/src/core/commands/board.md +1 -0
- package/src/core/commands/changelog.md +1 -0
- package/src/core/commands/choose.md +1 -0
- package/src/core/commands/ci.md +1 -0
- package/src/core/commands/code/accessibility.md +347 -0
- package/src/core/commands/code/api.md +297 -0
- package/src/core/commands/code/architecture.md +297 -0
- package/src/core/commands/code/completeness.md +43 -6
- package/src/core/commands/code/legal.md +43 -6
- package/src/core/commands/code/logic.md +43 -6
- package/src/core/commands/code/performance.md +43 -6
- package/src/core/commands/code/security.md +43 -6
- package/src/core/commands/code/test.md +43 -6
- package/src/core/commands/configure.md +1 -0
- package/src/core/commands/council.md +1 -0
- package/src/core/commands/deploy.md +1 -0
- package/src/core/commands/diagnose.md +1 -0
- package/src/core/commands/docs.md +1 -0
- package/src/core/commands/epic/edit.md +213 -0
- package/src/core/commands/epic.md +1 -0
- package/src/core/commands/export.md +238 -0
- package/src/core/commands/help.md +16 -1
- package/src/core/commands/ideate/discover.md +7 -3
- package/src/core/commands/ideate/features.md +65 -4
- package/src/core/commands/ideate/new.md +158 -124
- package/src/core/commands/impact.md +1 -0
- package/src/core/commands/learn/explain.md +118 -0
- package/src/core/commands/learn/glossary.md +135 -0
- package/src/core/commands/learn/patterns.md +138 -0
- package/src/core/commands/learn/tour.md +126 -0
- package/src/core/commands/migrate/codemods.md +151 -0
- package/src/core/commands/migrate/plan.md +131 -0
- package/src/core/commands/migrate/scan.md +114 -0
- package/src/core/commands/migrate/validate.md +119 -0
- package/src/core/commands/multi-expert.md +1 -0
- package/src/core/commands/pr.md +1 -0
- package/src/core/commands/review.md +1 -0
- package/src/core/commands/sprint.md +1 -0
- package/src/core/commands/status/undo.md +191 -0
- package/src/core/commands/status.md +1 -0
- package/src/core/commands/story/edit.md +204 -0
- package/src/core/commands/story/view.md +29 -7
- package/src/core/commands/story-validate.md +1 -0
- package/src/core/commands/story.md +1 -0
- package/src/core/commands/tdd.md +1 -0
- package/src/core/commands/team/start.md +10 -6
- package/src/core/commands/tests.md +1 -0
- package/src/core/commands/verify.md +27 -1
- package/src/core/commands/workflow.md +2 -0
- package/src/core/teams/backend.json +41 -0
- package/src/core/teams/frontend.json +41 -0
- package/src/core/teams/qa.json +41 -0
- package/src/core/teams/solo.json +35 -0
- package/src/core/templates/agileflow-metadata.json +5 -0
- package/tools/cli/commands/setup.js +85 -3
- package/tools/cli/commands/update.js +42 -0
- package/tools/cli/installers/ide/claude-code.js +68 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Multi-agent architecture health analysis with consensus voting for coupling, layering, complexity, anti-patterns, and circular dependencies
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep|extreme] [FOCUS=coupling|layering|complexity|patterns|circular|all] [MODEL=haiku|sonnet|opus]"
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:code:architecture - Multi-agent architecture health analysis"
|
|
8
|
+
- "CRITICAL: Deploy analyzers IN PARALLEL in ONE message with multiple Task calls"
|
|
9
|
+
- "CRITICAL: Wait for all results before running consensus (use TaskOutput with block=true)"
|
|
10
|
+
- "CRITICAL: Severity scale: STRUCTURAL | DEGRADED | SMELL | STYLE"
|
|
11
|
+
- "MUST parse arguments: TARGET (file/dir), DEPTH (quick/deep/ultradeep), FOCUS (coupling|layering|complexity|patterns|circular|all)"
|
|
12
|
+
- "Pass consensus all analyzer outputs, let it synthesize the final report"
|
|
13
|
+
state_fields:
|
|
14
|
+
- target_path
|
|
15
|
+
- depth
|
|
16
|
+
- focus_areas
|
|
17
|
+
- analyzers_deployed
|
|
18
|
+
- findings_collected
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# /agileflow:code:architecture
|
|
22
|
+
|
|
23
|
+
Deploy multiple specialized architecture analyzers in parallel to assess structural health, then synthesize results through consensus voting into a prioritized Architecture Audit Report with a health score.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Quick Reference
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
/agileflow:code:architecture src/ # Analyze src directory (quick, all 5 analyzers)
|
|
31
|
+
/agileflow:code:architecture . DEPTH=deep # Deep analysis - all severity levels
|
|
32
|
+
/agileflow:code:architecture src/ FOCUS=coupling,circular # Focus on specific areas
|
|
33
|
+
/agileflow:code:architecture . DEPTH=deep FOCUS=all # Comprehensive full audit
|
|
34
|
+
/agileflow:code:architecture . DEPTH=ultradeep # Each analyzer in its own tmux session
|
|
35
|
+
/agileflow:code:architecture lib/ FOCUS=complexity # Check complexity only
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## How It Works
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
44
|
+
│ /agileflow:code:architecture │
|
|
45
|
+
│ │
|
|
46
|
+
│ 1. Parse arguments (target, depth, focus) │
|
|
47
|
+
│ 2. Deploy analyzers IN PARALLEL │
|
|
48
|
+
│ 3. Collect all findings │
|
|
49
|
+
│ 4. Run consensus coordinator to validate & score │
|
|
50
|
+
│ 5. Generate Architecture Audit Report with health score │
|
|
51
|
+
└─────────────────────────────────────────────────────────────┘
|
|
52
|
+
|
|
53
|
+
┌──────────┐ ┌──────────┐ ┌────────────┐ ┌──────────┐ ┌──────────┐
|
|
54
|
+
│ Coupling │ │ Layering │ │ Complexity │ │ Patterns │ │ Circular │
|
|
55
|
+
└────┬─────┘ └────┬─────┘ └─────┬──────┘ └────┬─────┘ └────┬─────┘
|
|
56
|
+
│ │ │ │ │
|
|
57
|
+
└────────────┴─────────────┼──────────────┴────────────┘
|
|
58
|
+
▼
|
|
59
|
+
┌──────────────────────┐
|
|
60
|
+
│ Consensus Coordinator│
|
|
61
|
+
│ (validates, scores, │
|
|
62
|
+
│ generates report) │
|
|
63
|
+
└──────────────────────┘
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Arguments
|
|
69
|
+
|
|
70
|
+
| Argument | Values | Default | Description |
|
|
71
|
+
|----------|--------|---------|-------------|
|
|
72
|
+
| TARGET | file/directory | `.` | What to analyze |
|
|
73
|
+
| DEPTH | quick, deep, ultradeep | quick | quick = STRUCTURAL/DEGRADED only, deep = all severities, ultradeep = separate tmux |
|
|
74
|
+
| FOCUS | coupling,layering,complexity,patterns,circular,all | all | Which analyzers to deploy |
|
|
75
|
+
| MODEL | haiku, sonnet, opus | haiku | Model for analyzer subagents |
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Step-by-Step Process
|
|
80
|
+
|
|
81
|
+
### STEP 1: Parse Arguments
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
TARGET = first argument or current directory
|
|
85
|
+
DEPTH = quick (default) or deep or ultradeep
|
|
86
|
+
FOCUS = all (default) or comma-separated list
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Analyzer Selection**:
|
|
90
|
+
|
|
91
|
+
| Condition | Analyzers Deployed |
|
|
92
|
+
|-----------|-------------------|
|
|
93
|
+
| `FOCUS=all` | All 5: coupling, layering, complexity, patterns, circular |
|
|
94
|
+
| `FOCUS=coupling` | arch-analyzer-coupling only |
|
|
95
|
+
| `FOCUS=layering` | arch-analyzer-layering only |
|
|
96
|
+
| `FOCUS=complexity` | arch-analyzer-complexity only |
|
|
97
|
+
| `FOCUS=patterns` | arch-analyzer-patterns only |
|
|
98
|
+
| `FOCUS=circular` | arch-analyzer-circular only |
|
|
99
|
+
|
|
100
|
+
**DEPTH behavior**:
|
|
101
|
+
- `quick` (default): Focus on STRUCTURAL and DEGRADED issues only.
|
|
102
|
+
- `deep`: Include SMELL and STYLE findings.
|
|
103
|
+
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux.
|
|
104
|
+
|
|
105
|
+
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
106
|
+
1. Show cost estimate:
|
|
107
|
+
```bash
|
|
108
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=architecture --target=TARGET --focus=FOCUS --model=MODEL --dry-run
|
|
109
|
+
```
|
|
110
|
+
2. Confirm with user before launching
|
|
111
|
+
3. Spawn sessions (use `--json` to capture trace ID):
|
|
112
|
+
```bash
|
|
113
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=architecture --target=TARGET --focus=FOCUS --model=MODEL --json
|
|
114
|
+
```
|
|
115
|
+
Parse the JSON output to get `traceId`. Example: `{"ok":true,"traceId":"abc123ef",...}`
|
|
116
|
+
4. Wait for all analyzers to complete:
|
|
117
|
+
```bash
|
|
118
|
+
node .agileflow/scripts/lib/tmux-audit-monitor.js wait TRACE_ID --timeout=1800
|
|
119
|
+
```
|
|
120
|
+
- Exit 0 = all complete (JSON results on stdout)
|
|
121
|
+
- Exit 1 = timeout (partial results on stdout, `missing` array shows what's left)
|
|
122
|
+
- To check progress without blocking: `node .agileflow/scripts/lib/tmux-audit-monitor.js status TRACE_ID`
|
|
123
|
+
- To retry stalled analyzers: `node .agileflow/scripts/lib/tmux-audit-monitor.js retry TRACE_ID`
|
|
124
|
+
5. Parse `results` array from the JSON output. Pass all findings to consensus coordinator (same as deep mode).
|
|
125
|
+
6. If tmux unavailable (spawn exits code 2), fall back to `DEPTH=deep` with warning
|
|
126
|
+
|
|
127
|
+
**EXTREME mode** (DEPTH=extreme):
|
|
128
|
+
Partition-based multi-agent audit. Instead of 1 analyzer per tmux window, the codebase is split into partitions and each partition runs ALL analyzers.
|
|
129
|
+
1. Scan the target directory to understand the codebase structure:
|
|
130
|
+
- Use Glob to find top-level source directories
|
|
131
|
+
- Group related directories into 3-7 logical partitions (coherent domains: auth, api, ui, etc.)
|
|
132
|
+
- If user provided PARTITIONS=N (a number), split into exactly N partitions
|
|
133
|
+
- If user provided PARTITIONS=dir1,dir2,dir3, use those exact directories
|
|
134
|
+
2. Show the partition plan and agent count to the user, confirm before launching:
|
|
135
|
+
Example: "5 partitions x 5 analyzers = 25 agents. Estimated cost: $X. Proceed?"
|
|
136
|
+
3. Spawn sessions with partitions:
|
|
137
|
+
```bash
|
|
138
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=architecture --target=TARGET --depth=extreme --partitions=dir1,dir2,dir3 --model=MODEL --json
|
|
139
|
+
```
|
|
140
|
+
4. Wait and collect results (same as ultradeep - use tmux-audit-monitor.js)
|
|
141
|
+
5. Run consensus on combined results from all partitions
|
|
142
|
+
|
|
143
|
+
**PARTITIONS argument** (only used with DEPTH=extreme):
|
|
144
|
+
| Value | Behavior |
|
|
145
|
+
|-------|----------|
|
|
146
|
+
| Not set | AI decides partitions (3-7 based on codebase size) |
|
|
147
|
+
| `PARTITIONS=5` | AI creates exactly 5 partitions |
|
|
148
|
+
| `PARTITIONS=src/auth,src/api,lib` | Use these exact directories |
|
|
149
|
+
|
|
150
|
+
### STEP 2: Deploy Analyzers in Parallel
|
|
151
|
+
|
|
152
|
+
**CRITICAL**: Deploy ALL selected analyzers in a SINGLE message with multiple Task calls.
|
|
153
|
+
|
|
154
|
+
**Prompt template for each analyzer**:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
TASK: Analyze the following code for {ARCH_DOMAIN} issues.
|
|
158
|
+
|
|
159
|
+
TARGET: {file_path or directory}
|
|
160
|
+
DEPTH: {quick|deep}
|
|
161
|
+
|
|
162
|
+
{For quick depth}: Focus on STRUCTURAL and DEGRADED severity issues only. Skip style improvements.
|
|
163
|
+
{For deep depth}: Be comprehensive. Include SMELL and STYLE findings.
|
|
164
|
+
|
|
165
|
+
Read the target files and apply your analysis methodology.
|
|
166
|
+
|
|
167
|
+
OUTPUT your findings in your standard format (FINDING-N with location, severity, confidence, metric, code, explanation, remediation).
|
|
168
|
+
|
|
169
|
+
If no issues found, output: "No {ARCH_DOMAIN} issues found in {TARGET}"
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Deploy all 5 analyzers** using these subagent types:
|
|
173
|
+
- `arch-analyzer-coupling` - Fan-in/fan-out, module independence
|
|
174
|
+
- `arch-analyzer-layering` - Layer violations, import direction
|
|
175
|
+
- `arch-analyzer-complexity` - Cyclomatic/cognitive complexity, file size
|
|
176
|
+
- `arch-analyzer-patterns` - God objects, feature envy, anti-patterns
|
|
177
|
+
- `arch-analyzer-circular` - Circular deps, import cycles
|
|
178
|
+
|
|
179
|
+
### STEP 3: Collect Results
|
|
180
|
+
|
|
181
|
+
Wait for all analyzers to complete using TaskOutput with `block=true`.
|
|
182
|
+
|
|
183
|
+
### STEP 4: Run Consensus Coordinator
|
|
184
|
+
|
|
185
|
+
Pass all analyzer outputs to the consensus coordinator:
|
|
186
|
+
|
|
187
|
+
```xml
|
|
188
|
+
<invoke name="Task">
|
|
189
|
+
<parameter name="description">Architecture audit consensus</parameter>
|
|
190
|
+
<parameter name="prompt">You are the Architecture Consensus Coordinator.
|
|
191
|
+
|
|
192
|
+
TARGET: {target_path}
|
|
193
|
+
DEPTH: {depth}
|
|
194
|
+
|
|
195
|
+
## Analyzer Outputs
|
|
196
|
+
|
|
197
|
+
### Coupling Analyzer Results:
|
|
198
|
+
{coupling_output}
|
|
199
|
+
|
|
200
|
+
### Layering Analyzer Results:
|
|
201
|
+
{layering_output}
|
|
202
|
+
|
|
203
|
+
### Complexity Analyzer Results:
|
|
204
|
+
{complexity_output}
|
|
205
|
+
|
|
206
|
+
### Anti-Patterns Analyzer Results:
|
|
207
|
+
{patterns_output}
|
|
208
|
+
|
|
209
|
+
### Circular Dependencies Analyzer Results:
|
|
210
|
+
{circular_output}
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
Follow your consensus process:
|
|
215
|
+
1. Detect architecture pattern (Clean, MVC, Feature-based, etc.)
|
|
216
|
+
2. Parse all findings into normalized structure
|
|
217
|
+
3. Group related findings by module/area
|
|
218
|
+
4. Vote on confidence (CONFIRMED if 2+ agree, LIKELY if 1 with evidence)
|
|
219
|
+
5. Filter by architecture pattern relevance
|
|
220
|
+
6. Compute Architecture Health Score (0-100)
|
|
221
|
+
7. Generate the final Architecture Audit Report
|
|
222
|
+
8. Save report to docs/08-project/arch-audits/arch-audit-{YYYYMMDD}.md
|
|
223
|
+
</parameter>
|
|
224
|
+
<parameter name="subagent_type">arch-consensus</parameter>
|
|
225
|
+
</invoke>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
### STEP 5: Present Results
|
|
229
|
+
|
|
230
|
+
After consensus completes, show the report summary and offer next steps:
|
|
231
|
+
|
|
232
|
+
```xml
|
|
233
|
+
<invoke name="AskUserQuestion">
|
|
234
|
+
<parameter name="questions">[{
|
|
235
|
+
"question": "Architecture audit complete: Health Score [N]/100 ([rating]). [N] findings across [files_count] files. Pattern: [arch_type].",
|
|
236
|
+
"header": "Next steps",
|
|
237
|
+
"multiSelect": false,
|
|
238
|
+
"options": [
|
|
239
|
+
{"label": "Fix [structural] Structural issues now (Recommended)", "description": "[top_issue_summary]"},
|
|
240
|
+
{"label": "Create stories for all findings", "description": "Track [structural] structural + [degraded] degraded items in backlog"},
|
|
241
|
+
{"label": "Re-run with DEPTH=deep", "description": "Current was quick - deep includes SMELL and STYLE findings"},
|
|
242
|
+
{"label": "Save report and done", "description": "Report saved to docs/08-project/arch-audits/"}
|
|
243
|
+
]
|
|
244
|
+
}]</parameter>
|
|
245
|
+
</invoke>
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
<!-- COMPACT_SUMMARY_START -->
|
|
251
|
+
## Compact Summary
|
|
252
|
+
|
|
253
|
+
**Command**: `/agileflow:code:architecture` - Multi-agent architecture health analysis with consensus
|
|
254
|
+
|
|
255
|
+
**Quick Usage**:
|
|
256
|
+
```
|
|
257
|
+
/agileflow:code:architecture src/ # Quick scan (all 5 analyzers)
|
|
258
|
+
/agileflow:code:architecture . DEPTH=deep # Comprehensive analysis
|
|
259
|
+
/agileflow:code:architecture lib/ FOCUS=coupling,circular # Specific areas
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
**What It Does**: Deploy arch analyzers in parallel -> Each checks different structural aspects -> Consensus validates, computes health score -> Architecture Audit Report
|
|
263
|
+
|
|
264
|
+
**Analyzers (all 5)**:
|
|
265
|
+
- `arch-analyzer-coupling` - Fan-in/fan-out, tight coupling, shared state
|
|
266
|
+
- `arch-analyzer-layering` - Layer violations, import direction, mixed concerns
|
|
267
|
+
- `arch-analyzer-complexity` - Cyclomatic complexity, file size, nesting depth
|
|
268
|
+
- `arch-analyzer-patterns` - God objects, feature envy, data clumps, repeated switches
|
|
269
|
+
- `arch-analyzer-circular` - Import cycles, barrel file cycles, initialization order
|
|
270
|
+
|
|
271
|
+
**Severity Levels**:
|
|
272
|
+
- STRUCTURAL: Architecture actively impeding development
|
|
273
|
+
- DEGRADED: Growing problems, increasing maintenance cost
|
|
274
|
+
- SMELL: Early warning signs
|
|
275
|
+
- STYLE: Convention/consistency issues
|
|
276
|
+
|
|
277
|
+
**Output**: `docs/08-project/arch-audits/arch-audit-{YYYYMMDD}.md`
|
|
278
|
+
<!-- COMPACT_SUMMARY_END -->
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Boundary Rules (No Overlap)
|
|
283
|
+
|
|
284
|
+
- **vs code:security**: No vulnerability analysis - that's security domain
|
|
285
|
+
- **vs code:logic**: No logic bugs or edge cases - that's logic domain
|
|
286
|
+
- **vs code:performance**: No runtime performance - that's performance domain
|
|
287
|
+
- **Focus on structural health** - coupling, layering, complexity, patterns, cycles
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Related Commands
|
|
292
|
+
|
|
293
|
+
- `/agileflow:code:security` - Security vulnerability analysis
|
|
294
|
+
- `/agileflow:code:logic` - Logic bug analysis
|
|
295
|
+
- `/agileflow:code:performance` - Performance bottleneck analysis
|
|
296
|
+
- `/agileflow:impact` - Change impact analysis
|
|
297
|
+
- `/agileflow:deps` - Dependency graph visualization
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent analysis for forgotten features, dead handlers, stub code, and incomplete implementations
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=handlers|routes|api|stubs|state|imports|conditional|all] [MODEL=haiku|sonnet|opus]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep|extreme] [FOCUS=handlers|routes|api|stubs|state|imports|conditional|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
@@ -122,12 +122,49 @@ FOCUS = all (default) or comma-separated list
|
|
|
122
122
|
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux. Requires tmux. Uses model profiles from metadata. Falls back to `deep` if tmux unavailable.
|
|
123
123
|
|
|
124
124
|
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
125
|
-
1. Show cost estimate:
|
|
125
|
+
1. Show cost estimate:
|
|
126
|
+
```bash
|
|
127
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=completeness --target=TARGET --focus=FOCUS --model=MODEL --dry-run
|
|
128
|
+
```
|
|
126
129
|
2. Confirm with user before launching
|
|
127
|
-
3. Spawn sessions
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
3. Spawn sessions (use `--json` to capture trace ID):
|
|
131
|
+
```bash
|
|
132
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=completeness --target=TARGET --focus=FOCUS --model=MODEL --json
|
|
133
|
+
```
|
|
134
|
+
Parse the JSON output to get `traceId`. Example: `{"ok":true,"traceId":"abc123ef",...}`
|
|
135
|
+
4. Wait for all analyzers to complete:
|
|
136
|
+
```bash
|
|
137
|
+
node .agileflow/scripts/lib/tmux-audit-monitor.js wait TRACE_ID --timeout=1800
|
|
138
|
+
```
|
|
139
|
+
- Exit 0 = all complete (JSON results on stdout)
|
|
140
|
+
- Exit 1 = timeout (partial results on stdout, `missing` array shows what's left)
|
|
141
|
+
- To check progress without blocking: `node .agileflow/scripts/lib/tmux-audit-monitor.js status TRACE_ID`
|
|
142
|
+
- To retry stalled analyzers: `node .agileflow/scripts/lib/tmux-audit-monitor.js retry TRACE_ID`
|
|
143
|
+
5. Parse `results` array from the JSON output. Pass all findings to consensus coordinator (same as deep mode).
|
|
144
|
+
6. If tmux unavailable (spawn exits code 2), fall back to `DEPTH=deep` with warning
|
|
145
|
+
|
|
146
|
+
**EXTREME mode** (DEPTH=extreme):
|
|
147
|
+
Partition-based multi-agent audit. Instead of 1 analyzer per tmux window, the codebase is split into partitions and each partition runs ALL analyzers.
|
|
148
|
+
1. Scan the target directory to understand the codebase structure:
|
|
149
|
+
- Use Glob to find top-level source directories
|
|
150
|
+
- Group related directories into 3-7 logical partitions (coherent domains: auth, api, ui, etc.)
|
|
151
|
+
- If user provided PARTITIONS=N (a number), split into exactly N partitions
|
|
152
|
+
- If user provided PARTITIONS=dir1,dir2,dir3, use those exact directories
|
|
153
|
+
2. Show the partition plan and agent count to the user, confirm before launching:
|
|
154
|
+
Example: "5 partitions x 7 analyzers = 35 agents. Estimated cost: $X. Proceed?"
|
|
155
|
+
3. Spawn sessions with partitions:
|
|
156
|
+
```bash
|
|
157
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=completeness --target=TARGET --depth=extreme --partitions=dir1,dir2,dir3 --model=MODEL --json
|
|
158
|
+
```
|
|
159
|
+
4. Wait and collect results (same as ultradeep - use tmux-audit-monitor.js)
|
|
160
|
+
5. Run consensus on combined results from all partitions
|
|
161
|
+
|
|
162
|
+
**PARTITIONS argument** (only used with DEPTH=extreme):
|
|
163
|
+
| Value | Behavior |
|
|
164
|
+
|-------|----------|
|
|
165
|
+
| Not set | AI decides partitions (3-7 based on codebase size) |
|
|
166
|
+
| `PARTITIONS=5` | AI creates exactly 5 partitions |
|
|
167
|
+
| `PARTITIONS=src/auth,src/api,lib` | Use these exact directories |
|
|
131
168
|
|
|
132
169
|
### STEP 2: Deploy Analyzers in Parallel
|
|
133
170
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent legal risk analysis with consensus voting for finding compliance gaps
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=privacy|terms|a11y|licensing|consumer|security|ai|content|international|all] [MODEL=haiku|sonnet|opus]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep|extreme] [FOCUS=privacy|terms|a11y|licensing|consumer|security|ai|content|international|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
@@ -112,12 +112,49 @@ FOCUS = all (default) or comma-separated list
|
|
|
112
112
|
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux. Requires tmux. Uses model profiles from metadata. Falls back to `deep` if tmux unavailable.
|
|
113
113
|
|
|
114
114
|
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
115
|
-
1. Show cost estimate:
|
|
115
|
+
1. Show cost estimate:
|
|
116
|
+
```bash
|
|
117
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=legal --target=TARGET --focus=FOCUS --model=MODEL --dry-run
|
|
118
|
+
```
|
|
116
119
|
2. Confirm with user before launching
|
|
117
|
-
3. Spawn sessions
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
3. Spawn sessions (use `--json` to capture trace ID):
|
|
121
|
+
```bash
|
|
122
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=legal --target=TARGET --focus=FOCUS --model=MODEL --json
|
|
123
|
+
```
|
|
124
|
+
Parse the JSON output to get `traceId`. Example: `{"ok":true,"traceId":"abc123ef",...}`
|
|
125
|
+
4. Wait for all analyzers to complete:
|
|
126
|
+
```bash
|
|
127
|
+
node .agileflow/scripts/lib/tmux-audit-monitor.js wait TRACE_ID --timeout=1800
|
|
128
|
+
```
|
|
129
|
+
- Exit 0 = all complete (JSON results on stdout)
|
|
130
|
+
- Exit 1 = timeout (partial results on stdout, `missing` array shows what's left)
|
|
131
|
+
- To check progress without blocking: `node .agileflow/scripts/lib/tmux-audit-monitor.js status TRACE_ID`
|
|
132
|
+
- To retry stalled analyzers: `node .agileflow/scripts/lib/tmux-audit-monitor.js retry TRACE_ID`
|
|
133
|
+
5. Parse `results` array from the JSON output. Pass all findings to consensus coordinator (same as deep mode).
|
|
134
|
+
6. If tmux unavailable (spawn exits code 2), fall back to `DEPTH=deep` with warning
|
|
135
|
+
|
|
136
|
+
**EXTREME mode** (DEPTH=extreme):
|
|
137
|
+
Partition-based multi-agent audit. Instead of 1 analyzer per tmux window, the codebase is split into partitions and each partition runs ALL analyzers.
|
|
138
|
+
1. Scan the target directory to understand the codebase structure:
|
|
139
|
+
- Use Glob to find top-level source directories
|
|
140
|
+
- Group related directories into 3-7 logical partitions (coherent domains: auth, api, ui, etc.)
|
|
141
|
+
- If user provided PARTITIONS=N (a number), split into exactly N partitions
|
|
142
|
+
- If user provided PARTITIONS=dir1,dir2,dir3, use those exact directories
|
|
143
|
+
2. Show the partition plan and agent count to the user, confirm before launching:
|
|
144
|
+
Example: "5 partitions x 9 analyzers = 45 agents. Estimated cost: $X. Proceed?"
|
|
145
|
+
3. Spawn sessions with partitions:
|
|
146
|
+
```bash
|
|
147
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=legal --target=TARGET --depth=extreme --partitions=dir1,dir2,dir3 --model=MODEL --json
|
|
148
|
+
```
|
|
149
|
+
4. Wait and collect results (same as ultradeep - use tmux-audit-monitor.js)
|
|
150
|
+
5. Run consensus on combined results from all partitions
|
|
151
|
+
|
|
152
|
+
**PARTITIONS argument** (only used with DEPTH=extreme):
|
|
153
|
+
| Value | Behavior |
|
|
154
|
+
|-------|----------|
|
|
155
|
+
| Not set | AI decides partitions (3-7 based on codebase size) |
|
|
156
|
+
| `PARTITIONS=5` | AI creates exactly 5 partitions |
|
|
157
|
+
| `PARTITIONS=src/auth,src/api,lib` | Use these exact directories |
|
|
121
158
|
|
|
122
159
|
### STEP 2: Deploy Analyzers in Parallel
|
|
123
160
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent logic analysis with consensus voting for finding logic bugs
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=edge|invariant|flow|type|race|all] [MODEL=haiku|sonnet|opus]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep|extreme] [FOCUS=edge|invariant|flow|type|race|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
@@ -88,12 +88,49 @@ FOCUS = all (default) or comma-separated list
|
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
91
|
-
1. Show cost estimate:
|
|
91
|
+
1. Show cost estimate:
|
|
92
|
+
```bash
|
|
93
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=logic --target=TARGET --focus=FOCUS --model=MODEL --dry-run
|
|
94
|
+
```
|
|
92
95
|
2. Confirm with user before launching
|
|
93
|
-
3. Spawn sessions
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
3. Spawn sessions (use `--json` to capture trace ID):
|
|
97
|
+
```bash
|
|
98
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=logic --target=TARGET --focus=FOCUS --model=MODEL --json
|
|
99
|
+
```
|
|
100
|
+
Parse the JSON output to get `traceId`. Example: `{"ok":true,"traceId":"abc123ef",...}`
|
|
101
|
+
4. Wait for all analyzers to complete:
|
|
102
|
+
```bash
|
|
103
|
+
node .agileflow/scripts/lib/tmux-audit-monitor.js wait TRACE_ID --timeout=1800
|
|
104
|
+
```
|
|
105
|
+
- Exit 0 = all complete (JSON results on stdout)
|
|
106
|
+
- Exit 1 = timeout (partial results on stdout, `missing` array shows what's left)
|
|
107
|
+
- To check progress without blocking: `node .agileflow/scripts/lib/tmux-audit-monitor.js status TRACE_ID`
|
|
108
|
+
- To retry stalled analyzers: `node .agileflow/scripts/lib/tmux-audit-monitor.js retry TRACE_ID`
|
|
109
|
+
5. Parse `results` array from the JSON output. Pass all findings to consensus coordinator (same as deep mode).
|
|
110
|
+
6. If tmux unavailable (spawn exits code 2), fall back to `DEPTH=deep` with warning
|
|
111
|
+
|
|
112
|
+
**EXTREME mode** (DEPTH=extreme):
|
|
113
|
+
Partition-based multi-agent audit. Instead of 1 analyzer per tmux window, the codebase is split into partitions and each partition runs ALL analyzers.
|
|
114
|
+
1. Scan the target directory to understand the codebase structure:
|
|
115
|
+
- Use Glob to find top-level source directories
|
|
116
|
+
- Group related directories into 3-7 logical partitions (coherent domains: auth, api, ui, etc.)
|
|
117
|
+
- If user provided PARTITIONS=N (a number), split into exactly N partitions
|
|
118
|
+
- If user provided PARTITIONS=dir1,dir2,dir3, use those exact directories
|
|
119
|
+
2. Show the partition plan and agent count to the user, confirm before launching:
|
|
120
|
+
Example: "5 partitions x 5 analyzers = 25 agents. Estimated cost: $X. Proceed?"
|
|
121
|
+
3. Spawn sessions with partitions:
|
|
122
|
+
```bash
|
|
123
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=logic --target=TARGET --depth=extreme --partitions=dir1,dir2,dir3 --model=MODEL --json
|
|
124
|
+
```
|
|
125
|
+
4. Wait and collect results (same as ultradeep - use tmux-audit-monitor.js)
|
|
126
|
+
5. Run consensus on combined results from all partitions
|
|
127
|
+
|
|
128
|
+
**PARTITIONS argument** (only used with DEPTH=extreme):
|
|
129
|
+
| Value | Behavior |
|
|
130
|
+
|-------|----------|
|
|
131
|
+
| Not set | AI decides partitions (3-7 based on codebase size) |
|
|
132
|
+
| `PARTITIONS=5` | AI creates exactly 5 partitions |
|
|
133
|
+
| `PARTITIONS=src/auth,src/api,lib` | Use these exact directories |
|
|
97
134
|
|
|
98
135
|
**Analyzer Selection by FOCUS**:
|
|
99
136
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent performance bottleneck analysis with consensus voting for finding optimization opportunities
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=queries|rendering|memory|bundle|compute|network|caching|assets|all] [MODEL=haiku|sonnet|opus]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep|extreme] [FOCUS=queries|rendering|memory|bundle|compute|network|caching|assets|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
@@ -111,12 +111,49 @@ FOCUS = all (default) or comma-separated list
|
|
|
111
111
|
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux. Requires tmux. Uses model profiles from metadata. Falls back to `deep` if tmux unavailable.
|
|
112
112
|
|
|
113
113
|
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
114
|
-
1. Show cost estimate:
|
|
114
|
+
1. Show cost estimate:
|
|
115
|
+
```bash
|
|
116
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=performance --target=TARGET --focus=FOCUS --model=MODEL --dry-run
|
|
117
|
+
```
|
|
115
118
|
2. Confirm with user before launching
|
|
116
|
-
3. Spawn sessions
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
3. Spawn sessions (use `--json` to capture trace ID):
|
|
120
|
+
```bash
|
|
121
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=performance --target=TARGET --focus=FOCUS --model=MODEL --json
|
|
122
|
+
```
|
|
123
|
+
Parse the JSON output to get `traceId`. Example: `{"ok":true,"traceId":"abc123ef",...}`
|
|
124
|
+
4. Wait for all analyzers to complete:
|
|
125
|
+
```bash
|
|
126
|
+
node .agileflow/scripts/lib/tmux-audit-monitor.js wait TRACE_ID --timeout=1800
|
|
127
|
+
```
|
|
128
|
+
- Exit 0 = all complete (JSON results on stdout)
|
|
129
|
+
- Exit 1 = timeout (partial results on stdout, `missing` array shows what's left)
|
|
130
|
+
- To check progress without blocking: `node .agileflow/scripts/lib/tmux-audit-monitor.js status TRACE_ID`
|
|
131
|
+
- To retry stalled analyzers: `node .agileflow/scripts/lib/tmux-audit-monitor.js retry TRACE_ID`
|
|
132
|
+
5. Parse `results` array from the JSON output. Pass all findings to consensus coordinator (same as deep mode).
|
|
133
|
+
6. If tmux unavailable (spawn exits code 2), fall back to `DEPTH=deep` with warning
|
|
134
|
+
|
|
135
|
+
**EXTREME mode** (DEPTH=extreme):
|
|
136
|
+
Partition-based multi-agent audit. Instead of 1 analyzer per tmux window, the codebase is split into partitions and each partition runs ALL analyzers.
|
|
137
|
+
1. Scan the target directory to understand the codebase structure:
|
|
138
|
+
- Use Glob to find top-level source directories
|
|
139
|
+
- Group related directories into 3-7 logical partitions (coherent domains: auth, api, ui, etc.)
|
|
140
|
+
- If user provided PARTITIONS=N (a number), split into exactly N partitions
|
|
141
|
+
- If user provided PARTITIONS=dir1,dir2,dir3, use those exact directories
|
|
142
|
+
2. Show the partition plan and agent count to the user, confirm before launching:
|
|
143
|
+
Example: "5 partitions x 8 analyzers = 40 agents. Estimated cost: $X. Proceed?"
|
|
144
|
+
3. Spawn sessions with partitions:
|
|
145
|
+
```bash
|
|
146
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=performance --target=TARGET --depth=extreme --partitions=dir1,dir2,dir3 --model=MODEL --json
|
|
147
|
+
```
|
|
148
|
+
4. Wait and collect results (same as ultradeep - use tmux-audit-monitor.js)
|
|
149
|
+
5. Run consensus on combined results from all partitions
|
|
150
|
+
|
|
151
|
+
**PARTITIONS argument** (only used with DEPTH=extreme):
|
|
152
|
+
| Value | Behavior |
|
|
153
|
+
|-------|----------|
|
|
154
|
+
| Not set | AI decides partitions (3-7 based on codebase size) |
|
|
155
|
+
| `PARTITIONS=5` | AI creates exactly 5 partitions |
|
|
156
|
+
| `PARTITIONS=src/auth,src/api,lib` | Use these exact directories |
|
|
120
157
|
|
|
121
158
|
### STEP 2: Deploy Analyzers in Parallel
|
|
122
159
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Multi-agent security vulnerability analysis with consensus voting for finding exploitable weaknesses
|
|
3
|
-
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep] [FOCUS=injection|auth|authz|secrets|input|deps|infra|api|all] [MODEL=haiku|sonnet|opus]"
|
|
3
|
+
argument-hint: "[file|directory] [DEPTH=quick|deep|ultradeep|extreme] [FOCUS=injection|auth|authz|secrets|input|deps|infra|api|all] [MODEL=haiku|sonnet|opus]"
|
|
4
4
|
compact_context:
|
|
5
5
|
priority: high
|
|
6
6
|
preserve_rules:
|
|
@@ -114,12 +114,49 @@ FOCUS = all (default) or comma-separated list
|
|
|
114
114
|
- `ultradeep`: Spawn each analyzer as a separate Claude Code session in tmux. Requires tmux. Uses model profiles from metadata. Falls back to `deep` if tmux unavailable.
|
|
115
115
|
|
|
116
116
|
**ULTRADEEP mode** (DEPTH=ultradeep):
|
|
117
|
-
1. Show cost estimate:
|
|
117
|
+
1. Show cost estimate:
|
|
118
|
+
```bash
|
|
119
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=security --target=TARGET --focus=FOCUS --model=MODEL --dry-run
|
|
120
|
+
```
|
|
118
121
|
2. Confirm with user before launching
|
|
119
|
-
3. Spawn sessions
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
3. Spawn sessions (use `--json` to capture trace ID):
|
|
123
|
+
```bash
|
|
124
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=security --target=TARGET --focus=FOCUS --model=MODEL --json
|
|
125
|
+
```
|
|
126
|
+
Parse the JSON output to get `traceId`. Example: `{"ok":true,"traceId":"abc123ef",...}`
|
|
127
|
+
4. Wait for all analyzers to complete:
|
|
128
|
+
```bash
|
|
129
|
+
node .agileflow/scripts/lib/tmux-audit-monitor.js wait TRACE_ID --timeout=1800
|
|
130
|
+
```
|
|
131
|
+
- Exit 0 = all complete (JSON results on stdout)
|
|
132
|
+
- Exit 1 = timeout (partial results on stdout, `missing` array shows what's left)
|
|
133
|
+
- To check progress without blocking: `node .agileflow/scripts/lib/tmux-audit-monitor.js status TRACE_ID`
|
|
134
|
+
- To retry stalled analyzers: `node .agileflow/scripts/lib/tmux-audit-monitor.js retry TRACE_ID`
|
|
135
|
+
5. Parse `results` array from the JSON output. Pass all findings to consensus coordinator (same as deep mode).
|
|
136
|
+
6. If tmux unavailable (spawn exits code 2), fall back to `DEPTH=deep` with warning
|
|
137
|
+
|
|
138
|
+
**EXTREME mode** (DEPTH=extreme):
|
|
139
|
+
Partition-based multi-agent audit. Instead of 1 analyzer per tmux window, the codebase is split into partitions and each partition runs ALL analyzers.
|
|
140
|
+
1. Scan the target directory to understand the codebase structure:
|
|
141
|
+
- Use Glob to find top-level source directories
|
|
142
|
+
- Group related directories into 3-7 logical partitions (coherent domains: auth, api, ui, etc.)
|
|
143
|
+
- If user provided PARTITIONS=N (a number), split into exactly N partitions
|
|
144
|
+
- If user provided PARTITIONS=dir1,dir2,dir3, use those exact directories
|
|
145
|
+
2. Show the partition plan and agent count to the user, confirm before launching:
|
|
146
|
+
Example: "5 partitions x 8 analyzers = 40 agents. Estimated cost: $X. Proceed?"
|
|
147
|
+
3. Spawn sessions with partitions:
|
|
148
|
+
```bash
|
|
149
|
+
node .agileflow/scripts/spawn-audit-sessions.js --audit=security --target=TARGET --depth=extreme --partitions=dir1,dir2,dir3 --model=MODEL --json
|
|
150
|
+
```
|
|
151
|
+
4. Wait and collect results (same as ultradeep - use tmux-audit-monitor.js)
|
|
152
|
+
5. Run consensus on combined results from all partitions
|
|
153
|
+
|
|
154
|
+
**PARTITIONS argument** (only used with DEPTH=extreme):
|
|
155
|
+
| Value | Behavior |
|
|
156
|
+
|-------|----------|
|
|
157
|
+
| Not set | AI decides partitions (3-7 based on codebase size) |
|
|
158
|
+
| `PARTITIONS=5` | AI creates exactly 5 partitions |
|
|
159
|
+
| `PARTITIONS=src/auth,src/api,lib` | Use these exact directories |
|
|
123
160
|
|
|
124
161
|
### STEP 2: Deploy Analyzers in Parallel
|
|
125
162
|
|