claude-flow-novice 2.14.8 → 2.14.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.claude/commands/cfn-loop-cli.md +1 -1
  2. package/.claude/skills/cfn-agent-selector/SKILL.md +2 -2
  3. package/.claude/skills/cfn-agent-selector/SKILL.md.backup_before_replace +91 -0
  4. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +26 -0
  5. package/README.md +4 -4
  6. package/README.md.backup_before_replace +781 -0
  7. package/claude-assets/agents/AGENT_LIFECYCLE.md +3 -3
  8. package/claude-assets/agents/AGENT_LIFECYCLE.md.backup_before_replace +530 -0
  9. package/claude-assets/agents/README-AGENT_LIFECYCLE.md +3 -3
  10. package/claude-assets/agents/README-AGENT_LIFECYCLE.md.backup_before_replace +522 -0
  11. package/claude-assets/agents/cfn-dev-team/CLAUDE.md +3 -3
  12. package/claude-assets/agents/cfn-dev-team/CLAUDE.md.backup_before_replace +1086 -0
  13. package/claude-assets/agents/cfn-dev-team/README.md +1 -1
  14. package/claude-assets/agents/cfn-dev-team/README.md.backup_before_replace +116 -0
  15. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +2 -2
  16. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md.backup_before_replace +451 -0
  17. package/claude-assets/agents/cfn-dev-team/developers/README.md +3 -3
  18. package/claude-assets/agents/cfn-dev-team/developers/README.md.backup_before_replace +69 -0
  19. package/claude-assets/agents/cfn-dev-team/documentation/agent-type-guidelines.md +1 -1
  20. package/claude-assets/agents/cfn-dev-team/documentation/agent-type-guidelines.md.backup_before_replace +465 -0
  21. package/claude-assets/agents/cfn-dev-team/test-agent.md +2 -2
  22. package/claude-assets/agents/cfn-dev-team/test-agent.md.backup_before_replace +141 -0
  23. package/claude-assets/commands/cfn-loop-cli.md +1 -1
  24. package/claude-assets/skills/cfn-agent-selector/SKILL.md +2 -2
  25. package/claude-assets/skills/cfn-agent-selector/SKILL.md.backup_before_replace +91 -0
  26. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +26 -0
  27. package/claude-assets/skills/cfn-mcp-container-selector/SKILL.md +555 -0
  28. package/claude-assets/skills/cfn-memory-monitoring/SKILL.md +531 -0
  29. package/claude-assets/skills/cfn-redis-cleanup/cleanup-redis.sh +130 -0
  30. package/dist/cli/cli-agent-context.js +6 -0
  31. package/dist/cli/cli-agent-context.js.map +1 -1
  32. package/dist/cli/config-manager.js +109 -91
  33. package/dist/cli/config-manager.js.map +1 -1
  34. package/dist/types/index.js +11 -0
  35. package/dist/types/index.js.map +1 -0
  36. package/dist/types/user.js +22 -0
  37. package/dist/types/user.js.map +1 -0
  38. package/package.json +1 -1
  39. package/readme/README.md +1 -1
  40. package/scripts/docker-playwright-fix.sh +312 -0
  41. package/scripts/zone-d-type-fixes.sh +333 -0
@@ -0,0 +1,522 @@
1
+ # Agent Lifecycle Documentation
2
+
3
+ **Version:** 2.0 (Post-Waiting Mode Removal)
4
+ **Last Updated:** 2025-10-21
5
+ **Status:** Current Standard
6
+
7
+ ---
8
+
9
+ ## Overview
10
+
11
+ This document clarifies the complete lifecycle of agents in the CFN Loop system, removing ambiguity about exit vs. waiting patterns.
12
+
13
+ **Core Principle:** Agents are **stateless, single-execution workers** that exit cleanly after completing their work and reporting results.
14
+
15
+ ---
16
+
17
+ ## Lifecycle States
18
+
19
+ ### State 1: Spawned
20
+ **Duration:** Instantaneous
21
+ **Who:** Orchestrator via CLI (`npx cfn-spawn agent <type>`)
22
+ **Agent State:** Process starting, loading context
23
+
24
+ **Actions:**
25
+ - Agent process created
26
+ - Context injected via CLI parameters
27
+ - Tools initialized
28
+ - Task description received
29
+
30
+ ### State 2: Executing
31
+ **Duration:** Variable (15 seconds - 60 minutes depending on agent type)
32
+ **Who:** Agent (autonomous)
33
+ **Agent State:** Working on assigned task
34
+
35
+ **Actions:**
36
+ - Read task specifications
37
+ - Execute work (code, review, validation, decision)
38
+ - Use tools (Read, Write, Edit, Bash, etc.)
39
+ - Build results
40
+
41
+ ### State 3: Reporting
42
+ **Duration:** 1-5 seconds
43
+ **Who:** Agent (mandatory protocol)
44
+ **Agent State:** Completing execution
45
+
46
+ **Actions (in order):**
47
+ 1. **Signal completion:**
48
+ ```bash
49
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
50
+ ```
51
+
52
+ 2. **Report confidence:**
53
+ ```bash
54
+ ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
55
+
56
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
57
+
58
+ **Why This Matters:**
59
+ - Orchestrator collects confidence/consensus scores from Redis
60
+ - Enables adaptive agent specialization for next iteration
61
+ - Prevents orchestrator blocking on wait $PID
62
+ - Coordinator spawns appropriate specialist based on feedback type
63
+
64
+ --task-id "$TASK_ID" \
65
+ --agent-id "$AGENT_ID" \
66
+ --confidence [0.0-1.0] \
67
+ --iteration $ITERATION
68
+ ```
69
+
70
+ 3. **Store results (if applicable):**
71
+ ```bash
72
+ redis-cli setex "swarm:${TASK_ID}:${AGENT_ID}:result" 86400 "$RESULT_JSON"
73
+ ```
74
+
75
+ ### State 4: Exiting
76
+ **Duration:** Instantaneous
77
+ **Who:** Agent (natural process termination)
78
+ **Agent State:** Process terminating
79
+
80
+ **Actions:**
81
+ - Clean exit (exit code 0)
82
+ - Process terminates
83
+ - Resources released
84
+ - ~~NO waiting mode~~ ❌ (removed)
85
+ - ~~NO wake signal needed~~ ❌ (removed)
86
+
87
+ ---
88
+
89
+ ## CFN Loop Protocol (Complete)
90
+
91
+ ### For Loop 3 Implementers (coder, backend-dev, etc.)
92
+
93
+ ```markdown
94
+ ## CFN Loop Redis Completion Protocol
95
+
96
+ When participating in CFN Loop workflows, agents MUST follow this protocol:
97
+
98
+ ### Step 1: Complete Work
99
+ Execute assigned task (code implementation, feature development, bug fixing)
100
+
101
+ ### Step 2: Signal Completion
102
+ ```bash
103
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
104
+ ```
105
+
106
+ ### Step 3: Report Confidence Score
107
+ ```bash
108
+ ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
109
+
110
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
111
+
112
+ **Why This Matters:**
113
+ - Orchestrator collects confidence/consensus scores from Redis
114
+ - Enables adaptive agent specialization for next iteration
115
+ - Prevents orchestrator blocking on wait $PID
116
+ - Coordinator spawns appropriate specialist based on feedback type
117
+
118
+ --task-id "$TASK_ID" \
119
+ --agent-id "$AGENT_ID" \
120
+ --confidence [0.0-1.0] \
121
+ --iteration 1
122
+ ```
123
+
124
+ Confidence score guidelines:
125
+ - 1.0: Perfect implementation, all requirements met, no issues
126
+ - 0.9-0.99: Excellent, minor refinements possible
127
+ - 0.75-0.89: Good, gate threshold met, ready for validation
128
+ - 0.5-0.74: Below gate, needs iteration
129
+ - 0.0-0.49: Significant issues, requires major rework
130
+
131
+ ### Step 4: Exit Cleanly
132
+ Agent work is complete. Exit cleanly to allow orchestrator to proceed.
133
+
134
+ **Note:** If another iteration is needed, orchestrator will spawn a fresh agent
135
+ (possibly a different specialist based on feedback). This enables adaptive
136
+ agent specialization per PATTERN-022.
137
+ ```
138
+
139
+ ### For Loop 2 Validators (reviewer, tester, security-specialist, etc.)
140
+
141
+ ```markdown
142
+ ## CFN Loop Redis Completion Protocol
143
+
144
+ ### Step 1: Wait for Gate Pass Signal
145
+ ```bash
146
+ # Wait for Loop 3 to pass gate threshold
147
+ redis-cli blpop "swarm:${TASK_ID}:gate-passed" 0
148
+ ```
149
+
150
+ ### Step 2: Retrieve Loop 3 Results
151
+ ```bash
152
+ # Get agent outputs and confidence scores from Redis
153
+ redis-cli get "swarm:${TASK_ID}:coder-1:result"
154
+ redis-cli get "swarm:${TASK_ID}:coder-1:confidence"
155
+ ```
156
+
157
+ ### Step 3: Perform Validation
158
+ Execute validation task (code review, security audit, testing)
159
+
160
+ ### Step 4: Signal Completion
161
+ ```bash
162
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
163
+ ```
164
+
165
+ ### Step 5: Report Consensus Score
166
+ ```bash
167
+ ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
168
+
169
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
170
+
171
+ **Why This Matters:**
172
+ - Orchestrator collects confidence/consensus scores from Redis
173
+ - Enables adaptive agent specialization for next iteration
174
+ - Prevents orchestrator blocking on wait $PID
175
+ - Coordinator spawns appropriate specialist based on feedback type
176
+
177
+ --task-id "$TASK_ID" \
178
+ --agent-id "$AGENT_ID" \
179
+ --confidence [0.0-1.0] \
180
+ --iteration 1
181
+ ```
182
+
183
+ Consensus score guidelines:
184
+ - 1.0: Perfect quality, no issues found
185
+ - 0.9-0.99: Excellent, consensus threshold typically met
186
+ - 0.75-0.89: Good, minor issues found
187
+ - 0.5-0.74: Below consensus, needs iteration
188
+ - 0.0-0.49: Significant issues, requires rework
189
+
190
+ ### Step 6: Exit Cleanly
191
+ Validation complete. Exit cleanly to allow orchestrator to calculate consensus.
192
+ ```
193
+
194
+ ### For Product Owner
195
+
196
+ ```markdown
197
+ ## CFN Loop Product Owner Protocol
198
+
199
+ ### Step 1: Wait for Consensus Completion
200
+ ```bash
201
+ # Wait for Loop 2 to complete consensus validation
202
+ redis-cli blpop "swarm:${TASK_ID}:consensus-complete" 0
203
+ ```
204
+
205
+ ### Step 2: Retrieve All Context
206
+ ```bash
207
+ # Get Loop 2 consensus, feedback, acceptance criteria
208
+ redis-cli get "swarm:${TASK_ID}:loop2:consensus"
209
+ redis-cli lrange "swarm:${TASK_ID}:loop2:feedback" 0 -1
210
+ redis-cli get "swarm:${TASK_ID}:success-criteria"
211
+ ```
212
+
213
+ ### Step 3: Make Strategic Decision
214
+ Analyze consensus, feedback, and business requirements.
215
+
216
+ Output one of:
217
+ - **PROCEED:** Task complete, meets acceptance criteria
218
+ - **ITERATE:** Needs another iteration (provide specific feedback)
219
+ - **ABORT:** Out of scope or max iterations reached
220
+
221
+ ### Step 4: Report Decision
222
+ ```bash
223
+ redis-cli lpush "swarm:${TASK_ID}:product-owner:decision" "$DECISION_JSON"
224
+ ```
225
+
226
+ ### Step 5: Exit Cleanly
227
+ Decision made. Exit to allow orchestrator to proceed with final actions.
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Orchestrator Responsibilities
233
+
234
+ ### Agent Spawning
235
+ ```bash
236
+ # Spawn agent via CLI
237
+ npx cfn-spawn agent <agent-type> \
238
+ --task-id "$TASK_ID" \
239
+ --iteration "$ITERATION" \
240
+ --context "$CONTEXT_JSON" &
241
+
242
+ AGENT_PID=$!
243
+ ```
244
+
245
+ ### Agent Monitoring
246
+ ```bash
247
+ # Wait for agent to complete and exit naturally
248
+ wait $AGENT_PID
249
+ EXIT_CODE=$?
250
+
251
+ # Check completion signal
252
+ DONE_SIGNAL=$(redis-cli lpop "swarm:${TASK_ID}:${AGENT_ID}:done")
253
+
254
+ # Retrieve confidence
255
+ CONFIDENCE=$(redis-cli get "swarm:${TASK_ID}:${AGENT_ID}:confidence")
256
+ ```
257
+
258
+ ### No Wake Calls Needed
259
+ ❌ **Removed:** `invoke-waiting-mode.sh wake` calls
260
+ ✅ **Current:** Agents exit, orchestrator spawns fresh agents for next iteration
261
+
262
+ ---
263
+
264
+ ## Iteration Pattern
265
+
266
+ ### Single Iteration (Typical)
267
+ ```
268
+ 1. Orchestrator spawns Loop 3 agents
269
+ 2. Loop 3 agents work → report confidence → EXIT
270
+ 3. Orchestrator checks gate threshold
271
+ 4. If PASS: Orchestrator spawns Loop 2 agents
272
+ 5. Loop 2 agents validate → report consensus → EXIT
273
+ 6. Orchestrator checks consensus threshold
274
+ 7. If PASS: Orchestrator spawns Product Owner
275
+ 8. Product Owner decides → EXIT
276
+ 9. Task complete
277
+ ```
278
+
279
+ ### Multi-Iteration (If Gate/Consensus Fails)
280
+ ```
281
+ 1. Orchestrator spawns Loop 3 agents (iteration 1)
282
+ 2. Loop 3 agents work → report confidence → EXIT
283
+ 3. Gate check FAILS (confidence < 0.75)
284
+ 4. Orchestrator spawns NEW Loop 3 agents (iteration 2) ← Fresh agents!
285
+ 5. New agents work → report confidence → EXIT
286
+ 6. Gate check PASSES
287
+ 7. Continue to Loop 2...
288
+ ```
289
+
290
+ **Key Point:** Each iteration spawns **fresh agents**, enabling adaptive specialization:
291
+ - Iteration 1: coder
292
+ - Iteration 2: rust-developer (if feedback mentions Rust)
293
+ - Iteration 3: backend-dev (if feedback mentions API)
294
+
295
+ ---
296
+
297
+ ## Anti-Patterns (Forbidden)
298
+
299
+ ### ❌ Anti-Pattern 1: Waiting Mode
300
+ ```bash
301
+ # WRONG - DO NOT USE:
302
+ --task-id "$TASK_ID" \
303
+ --agent-id "$AGENT_ID"
304
+ ```
305
+
306
+ **Why forbidden:**
307
+ - Blocks orchestrator indefinitely
308
+ - Creates process zombies
309
+ - Prevents adaptive specialization
310
+ - Requires manual wake calls (complexity)
311
+
312
+ ### ❌ Anti-Pattern 2: Fork/Resume Pattern
313
+ ```bash
314
+ # WRONG - DO NOT USE:
315
+ redis-cli get "swarm:${TASK_ID}:${AGENT}:fork-id"
316
+ npx cfn-fork resume --fork-id "$FORK_ID"
317
+ ```
318
+
319
+ **Why forbidden:**
320
+ - Adds complexity (conversation state management)
321
+ - Not needed (fresh agents work better)
322
+ - Harder to debug (stateful resume)
323
+
324
+ ### ❌ Anti-Pattern 3: Manual Agent Spawning
325
+ ```bash
326
+ # WRONG - DO NOT USE in CFN Loop:
327
+ Task("coder", "implement feature")
328
+ ```
329
+
330
+ **Why forbidden:**
331
+ - Bypasses CFN Loop protocol
332
+ - No confidence reporting
333
+ - No Redis coordination
334
+ - Breaks orchestrator flow
335
+
336
+ ---
337
+
338
+ ## Correct Patterns (Recommended)
339
+
340
+ ### ✅ Pattern 1: Clean Exit After Reporting
341
+ ```bash
342
+ # Agent code (end of execution):
343
+
344
+ # Step 1: Signal done
345
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
346
+
347
+ # Step 2: Report confidence
348
+ ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
349
+
350
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
351
+
352
+ **Why This Matters:**
353
+ - Orchestrator collects confidence/consensus scores from Redis
354
+ - Enables adaptive agent specialization for next iteration
355
+ - Prevents orchestrator blocking on wait $PID
356
+ - Coordinator spawns appropriate specialist based on feedback type
357
+
358
+ --task-id "$TASK_ID" \
359
+ --agent-id "$AGENT_ID" \
360
+ --confidence 0.95 \
361
+ --iteration 1
362
+
363
+ # Step 3: Exit cleanly
364
+ exit 0
365
+ ```
366
+
367
+ ### ✅ Pattern 2: Orchestrator Wait Pattern
368
+ ```bash
369
+ # Orchestrator code:
370
+
371
+ # Spawn agent in background
372
+ npx cfn-spawn agent coder \
373
+ --task-id "$TASK_ID" \
374
+ --context "$CONTEXT" &
375
+ AGENT_PID=$!
376
+
377
+ # Wait for agent to complete
378
+ wait $AGENT_PID
379
+ EXIT_CODE=$?
380
+
381
+ # Retrieve results from Redis (agent already exited)
382
+ CONFIDENCE=$(redis-cli get "swarm:${TASK_ID}:coder-1:confidence")
383
+ ```
384
+
385
+ ### ✅ Pattern 3: Adaptive Specialization
386
+ ```bash
387
+ # Orchestrator iteration logic:
388
+
389
+ if [ "$GATE_PASSED" = "false" ]; then
390
+ # Analyze feedback to select specialist
391
+ if [[ "$FEEDBACK" =~ "security" ]]; then
392
+ SPECIALIST="security-specialist"
393
+ elif [[ "$FEEDBACK" =~ "performance" ]]; then
394
+ SPECIALIST="perf-analyzer"
395
+ else
396
+ SPECIALIST="$ORIGINAL_AGENT" # Retry with same type
397
+ fi
398
+
399
+ # Spawn fresh specialist (not resume old agent)
400
+ npx cfn-spawn agent "$SPECIALIST" \
401
+ --task-id "$TASK_ID" \
402
+ --iteration $((ITERATION + 1)) \
403
+ --feedback "$FEEDBACK" &
404
+ fi
405
+ ```
406
+
407
+ ---
408
+
409
+ ## Timeout Handling
410
+
411
+ ### Agent-Level Timeouts
412
+ Agents have role-based timeouts:
413
+ - **Implementers:** 60 minutes (coder, backend-dev)
414
+ - **Validators:** 30 minutes (reviewer, tester)
415
+ - **Product Owner:** 15 minutes (strategic decision)
416
+ - **Researchers:** 120 minutes (deep analysis)
417
+
418
+ ### Timeout Behavior
419
+ ```bash
420
+ # If agent times out:
421
+ # 1. Process killed by orchestrator
422
+ # 2. Agent marked as failed
423
+ # 3. No confidence reported (defaults to 0.0)
424
+ # 4. Orchestrator spawns replacement agent
425
+ ```
426
+
427
+ ---
428
+
429
+ ## Error Handling
430
+
431
+ ### Agent Failure Scenarios
432
+
433
+ **1. Exit Code Non-Zero:**
434
+ ```bash
435
+ wait $AGENT_PID
436
+ EXIT_CODE=$?
437
+
438
+ if [ "$EXIT_CODE" -ne 0 ]; then
439
+ # Agent failed - log error, spawn replacement
440
+ CONFIDENCE=0.0
441
+ fi
442
+ ```
443
+
444
+ **2. No Completion Signal:**
445
+ ```bash
446
+ DONE_SIGNAL=$(redis-cli lpop "swarm:${TASK_ID}:${AGENT_ID}:done")
447
+
448
+ if [ -z "$DONE_SIGNAL" ]; then
449
+ # Agent didn't signal completion - treat as failure
450
+ CONFIDENCE=0.0
451
+ fi
452
+ ```
453
+
454
+ **3. Missing Confidence:**
455
+ ```bash
456
+ CONFIDENCE=$(redis-cli get "swarm:${TASK_ID}:${AGENT_ID}:confidence")
457
+
458
+ if [ -z "$CONFIDENCE" ] || [ "$CONFIDENCE" = "(nil)" ]; then
459
+ # No confidence reported - default to 0.0
460
+ CONFIDENCE=0.0
461
+ fi
462
+ ```
463
+
464
+ ---
465
+
466
+ ## Redis Key Conventions
467
+
468
+ ### Agent Completion Keys
469
+ ```
470
+ swarm:{TASK_ID}:{AGENT_ID}:done → "complete" (signal)
471
+ swarm:{TASK_ID}:{AGENT_ID}:confidence → "0.95" (score)
472
+ swarm:{TASK_ID}:{AGENT_ID}:result → JSON (output)
473
+ ```
474
+
475
+ ### Coordination Keys
476
+ ```
477
+ swarm:{TASK_ID}:gate-passed → "1" (Loop 3 → Loop 2 signal)
478
+ swarm:{TASK_ID}:consensus-complete → "1" (Loop 2 → PO signal)
479
+ swarm:{TASK_ID}:product-owner:decision → JSON (PO decision)
480
+ ```
481
+
482
+ ### Metrics Keys
483
+ ```
484
+ swarm:{TASK_ID}:metrics:loop3_consensus → List of JSON metrics
485
+ swarm:{TASK_ID}:metrics:loop2_consensus → List of JSON metrics
486
+ swarm:{TASK_ID}:metrics:iteration_start → List of timestamps
487
+ ```
488
+
489
+ ---
490
+
491
+ ## Summary
492
+
493
+ **Agent Lifecycle (4 States):**
494
+ 1. **Spawned** - Process starts, context loaded
495
+ 2. **Executing** - Agent works autonomously
496
+ 3. **Reporting** - Signal completion, report confidence
497
+ 4. **Exiting** - Clean exit (exit code 0)
498
+
499
+ **Key Changes from v1.0:**
500
+ - ❌ Removed: Waiting mode (Step 4)
501
+ - ❌ Removed: Wake calls from orchestrator
502
+ - ❌ Removed: Fork/resume pattern
503
+ - ✅ Added: Clean exit after reporting
504
+ - ✅ Added: Adaptive agent specialization
505
+ - ✅ Added: Fresh agents per iteration
506
+
507
+ **Benefits:**
508
+ - Simpler orchestrator (no wake logic)
509
+ - Stateless agents (easier debugging)
510
+ - Adaptive specialization (better results)
511
+ - No process zombies (clean resource management)
512
+
513
+ **Next Steps:**
514
+ - See P4: Product Owner structured JSON output
515
+ - See P5: Coordinator simplification (780 → 200 lines)
516
+ - See P6: Unified agent spawning patterns
517
+
518
+ ---
519
+
520
+ **Version History:**
521
+ - v1.0: Original with waiting mode
522
+ - v2.0 (2025-10-21): Waiting mode removed, PATTERN-022 compliant
@@ -112,7 +112,7 @@ npx claude-flow-novice agent-spawn my-first-agent --task-id test-1
112
112
  │ ├── tester.md # Testing & validation
113
113
  │ └── coordinator.md # Multi-agent coordination
114
114
  ├── development/ # Development-focused agents
115
- │ ├── backend-dev.md
115
+ │ ├── backend-developer.md
116
116
  │ ├── react-frontend-engineer.md
117
117
  │ └── devops-engineer.md
118
118
  ├── security/ # Security-focused agents
@@ -613,7 +613,7 @@ Agents can work together using Redis pub/sub and CLI spawning:
613
613
  ### Agent Spawning Pattern
614
614
  ```bash
615
615
  # Spawn agents via CLI (coordinators only)
616
- npx claude-flow-novice agent-spawn backend-dev --task-id "${TASK_ID}"
616
+ npx claude-flow-novice agent-spawn backend-developer --task-id "${TASK_ID}"
617
617
  npx claude-flow-novice agent-spawn reviewer --task-id "${TASK_ID}"
618
618
  ```
619
619
 
@@ -948,7 +948,7 @@ acl_level: 1
948
948
  - `.claude/agents/core-agents/coder.md` - Code implementation
949
949
  - `.claude/agents/core-agents/reviewer.md` - Code review
950
950
  - `.claude/agents/core-agents/tester.md` - Testing & validation
951
- - `.claude/agents/development/backend-dev.md` - Backend development
951
+ - `.claude/agents/development/backend-developer.md` - Backend development
952
952
  - `.claude/agents/security/security-specialist.md` - Security analysis
953
953
 
954
954
  ### Documentation