claude-flow-novice 2.14.17 → 2.14.19

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 (36) hide show
  1. package/.claude/commands/CFN_EXPERT_UPDATE.md +142 -0
  2. package/.claude/commands/cfn-docker/CFN_DOCKER_CLI.md +527 -0
  3. package/.claude/commands/cfn-docker/CFN_DOCKER_LOOP.md +377 -0
  4. package/.claude/commands/cfn-docker/CFN_DOCKER_TASK.md +490 -0
  5. package/.claude/commands/cfn-loop-cli.md +268 -158
  6. package/.claude/commands/deprecated/README.md +55 -0
  7. package/claude-assets/agents/docker-coordinators/cfn-docker-v3-coordinator.md +199 -0
  8. package/claude-assets/commands/CFN_EXPERT_UPDATE.md +142 -0
  9. package/claude-assets/commands/cfn-docker/CFN_DOCKER_CLI.md +527 -0
  10. package/claude-assets/commands/cfn-docker/CFN_DOCKER_LOOP.md +377 -0
  11. package/claude-assets/commands/cfn-docker/CFN_DOCKER_TASK.md +490 -0
  12. package/claude-assets/commands/cfn-loop-cli.md +268 -158
  13. package/claude-assets/commands/deprecated/README.md +55 -0
  14. package/claude-assets/skills/cfn-docker-agent-spawning/SKILL.md +394 -0
  15. package/claude-assets/skills/cfn-docker-agent-spawning/spawn-agent.sh +461 -0
  16. package/claude-assets/skills/cfn-docker-loop-orchestration/SKILL.md +449 -0
  17. package/claude-assets/skills/cfn-docker-loop-orchestration/orchestrate.sh +787 -0
  18. package/claude-assets/skills/cfn-docker-redis-coordination/SKILL.md +435 -0
  19. package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh +635 -0
  20. package/claude-assets/skills/cfn-docker-skill-mcp-selection/SKILL.md +289 -0
  21. package/claude-assets/skills/cfn-docker-skill-mcp-selection/skill-mcp-selector.js +472 -0
  22. package/claude-assets/skills/cfn-expert-update/update-expert.sh +346 -0
  23. package/dist/agents/agent-loader.js +165 -146
  24. package/dist/agents/agent-loader.js.map +1 -1
  25. package/dist/cli/config-manager.js.map +1 -1
  26. package/package.json +1 -1
  27. /package/.claude/commands/{cfn-loop-epic.md → deprecated/cfn-loop-epic.md} +0 -0
  28. /package/.claude/commands/{cfn-loop-single.md → deprecated/cfn-loop-single.md} +0 -0
  29. /package/.claude/commands/{cfn-loop-sprints.md → deprecated/cfn-loop-sprints.md} +0 -0
  30. /package/.claude/commands/{cfn-loop.md → deprecated/cfn-loop.md} +0 -0
  31. /package/.claude/commands/{cfn/run-tests.md → run-tests.md} +0 -0
  32. /package/claude-assets/commands/{cfn-loop-epic.md → deprecated/cfn-loop-epic.md} +0 -0
  33. /package/claude-assets/commands/{cfn-loop-single.md → deprecated/cfn-loop-single.md} +0 -0
  34. /package/claude-assets/commands/{cfn-loop-sprints.md → deprecated/cfn-loop-sprints.md} +0 -0
  35. /package/claude-assets/commands/{cfn-loop.md → deprecated/cfn-loop.md} +0 -0
  36. /package/claude-assets/commands/{cfn/run-tests.md → run-tests.md} +0 -0
@@ -15,29 +15,13 @@ Execute CFN Loop using CLI spawning for maximum cost savings (95-98% vs Task too
15
15
  ## What is CLI Mode?
16
16
 
17
17
  **CLI Mode Architecture v3.0 (Enhanced):**
18
- - Main Chat spawns **single coordinator agent**
18
+ - Main Chat spawns **single coordinator agent** via CLI with background=true
19
19
  - Enhanced coordinator spawns **all workers via CLI** with protocol compliance
20
20
  - CLI agents use **Z.ai custom routing** (when enabled)
21
21
  - **Real-time monitoring** with automatic recovery from stuck agents
22
22
  - Background execution with **Redis monitoring** and progress visibility
23
- - **95-98% cost savings** vs Task tool spawning
24
23
  - **Enhanced features**: Process health checking, context validation, broadcast protocol
25
24
 
26
- **Cost Breakdown:**
27
- ```
28
- ┌─────────────────────┬──────────────┬────────────┐
29
- │ Component │ Provider │ Cost/Call │
30
- ├─────────────────────┼──────────────┼────────────┤
31
- │ Main Chat │ Anthropic │ $0.015 │
32
- │ Coordinator (Task) │ Anthropic │ $0.015 │
33
- │ Loop 3 Agents (CLI) │ Z.ai │ $0.003 ea │
34
- │ Loop 2 Agents (CLI) │ Z.ai │ $0.003 ea │
35
- │ Product Owner (CLI) │ Z.ai │ $0.003 │
36
- └─────────────────────┴──────────────┴────────────┘
37
-
38
- Total per iteration: ~$0.054 (vs $0.150 Task mode)
39
- Savings: 64% with custom routing, 95-98% vs all-Task
40
- ```
41
25
 
42
26
  ## Prerequisites
43
27
 
@@ -79,21 +63,89 @@ Savings: 64% with custom routing, 95-98% vs all-Task
79
63
 
80
64
  ## How CLI Mode Works
81
65
 
82
- 1. **Main Chat** spawns a single `cfn-v3-coordinator` agent
83
- 2. **Coordinator** orchestrates the entire CFN Loop workflow
66
+ 1. **Main Chat** spawns a single `cfn-v3-coordinator` agent **via CLI**
67
+ 2. **Coordinator** orchestrates the entire CFN Loop workflow in the background
84
68
  3. **Loop 3** agents implement the solution and validate against quality gates
85
69
  4. **Loop 2** agents review and provide validation feedback
86
70
  5. **Product Owner** makes the final decision on deliverables
87
71
  6. **Background execution** with Redis coordination for scalability
88
72
 
89
- The coordinator handles all agent spawning internally using optimized CLI processes.
73
+ **CLI Architecture Pattern:**
74
+ - Main Chat → CLI Coordinator (background) → CLI Workers (via Redis coordination)
75
+ - All agents run via CLI with Z.ai routing
76
+ - Coordinator manages all agent spawning internally using optimized CLI processes
77
+ - Background execution enables monitoring and recovery capabilities
78
+
79
+ ## Main Chat Monitoring Instructions
80
+
81
+ **After spawning the coordinator, Main Chat should:**
82
+
83
+ ### 1. Immediate Verification (First 30 seconds)
84
+ ```bash
85
+ # Verify coordinator spawned successfully
86
+ TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
87
+ pgrep -f "cfn-v3-coordinator" && echo "✅ Coordinator running" || echo "❌ Coordinator failed"
88
+
89
+ # Check Redis context was created
90
+ redis-cli EXISTS "cfn_loop:task:$TASK_ID:context" && echo "✅ Context stored" || echo "❌ No context"
91
+ ```
92
+
93
+ ### 2. Progress Monitoring (Every 2-5 minutes for long tasks)
94
+ ```bash
95
+ # Check iteration progress and confidence scores
96
+ redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep -E "(iteration|confidence|status)"
97
+
98
+ # Monitor agent completion status
99
+ redis-cli LRANGE "swarm:${TASK_ID}:agent:status" 0 -1
100
+
101
+ # Quick health check
102
+ redis-cli HGET "cfn_loop:task:$TASK_ID:health" "coordinator"
103
+ ```
104
+
105
+ ### 3. Web Portal Monitoring (Recommended for >10 minute tasks)
106
+ ```bash
107
+ # Start monitoring dashboard
108
+ npm run portal:start
109
+
110
+ # Access real-time progress at http://localhost:3000
111
+ # - Live agent status dashboard
112
+ # - Iteration progress visualization
113
+ # - Confidence score trends
114
+ # - Error rate monitoring
115
+ ```
116
+
117
+ ### 4. Background Execution Monitoring Pattern
118
+ ```bash
119
+ # For long-running tasks, use this monitoring pattern:
120
+ sleep 300 # Wait 5 minutes
121
+ redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep status
122
+
123
+ # If still running, continue monitoring
124
+ if [ $? -eq 0 ]; then
125
+ echo "Task in progress, monitoring..."
126
+ sleep 300 # Wait another 5 minutes
127
+ redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep status
128
+ fi
129
+ ```
130
+
131
+ ### 5. Troubleshooting If Coordinator Fails
132
+ ```bash
133
+ # Investigate missing coordinator
134
+ ./.claude/skills/cfn-loop-orchestration/investigate-missing-coordinator.sh "$TASK_ID"
135
+
136
+ # Check for process issues
137
+ ps aux | grep "claude-flow-novice agent" | grep -v grep
138
+
139
+ # Verify Redis connectivity
140
+ redis-cli PING
141
+ ```
90
142
 
91
143
  ## CLI Mode Benefits
92
144
 
93
- **Cost Savings:**
94
- - 64% savings with Z.ai routing vs all-Anthropic
95
- - 95-98% savings vs Task tool spawning
145
+ **Performance:**
96
146
  - Scales linearly with iterations (Task mode scales exponentially)
147
+ - Background execution without timeout limitations
148
+ - Parallel agent spawning for improved throughput
97
149
 
98
150
  **Production Features v3.0:**
99
151
  - Background execution (no timeout issues)
@@ -110,21 +162,6 @@ The coordinator handles all agent spawning internally using optimized CLI proces
110
162
  - Instant wake-up (<100ms latency)
111
163
  - Scalable (10+ agents, indefinite cycles)
112
164
 
113
- ## When to Use CLI Mode
114
-
115
- **Use CLI Mode for:**
116
- - ✅ Production features
117
- - ✅ Long-running tasks (>10 min)
118
- - ✅ Multi-iteration workflows
119
- - ✅ Cost-sensitive projects
120
- - ✅ Background execution
121
-
122
- **Use Task Mode for:**
123
- - Debugging (full visibility needed)
124
- - Learning CFN Loop workflow
125
- - Short prototypes (<5 min)
126
- - Single-iteration tasks
127
-
128
165
  ## Troubleshooting
129
166
 
130
167
  **Custom routing not working:**
@@ -148,6 +185,112 @@ The coordinator handles all agent spawning internally using optimized CLI proces
148
185
  - View detailed execution logs and health status
149
186
  - Track iteration progress and confidence scores
150
187
 
188
+ ## Enhanced Monitoring v3.0
189
+
190
+ CLI mode includes comprehensive monitoring capabilities for production workflows:
191
+
192
+ ### Real-Time Progress Tracking
193
+ - **Agent Status**: Monitor individual agent health and progress
194
+ - **Iteration Progress**: Track confidence scores and gate validation
195
+ - **Resource Usage**: CPU, memory, and Redis connection monitoring
196
+ - **Error Detection**: Automatic identification of stuck or failed agents
197
+
198
+ ### Monitoring Commands
199
+
200
+ **Check Task Status:**
201
+ ```bash
202
+ # View complete task context and progress
203
+ redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"
204
+
205
+ # Monitor agent completion status
206
+ redis-cli LRANGE "swarm:${TASK_ID}:agent:status" 0 -1
207
+ ```
208
+
209
+ **Agent Health Monitoring:**
210
+ ```bash
211
+ # Check if coordinator is running
212
+ pgrep -f "cfn-v3-coordinator" && echo "Coordinator alive" || echo "Coordinator missing"
213
+
214
+ # Monitor active agent processes
215
+ ps aux | grep "claude-flow-novice agent" | grep -v grep
216
+
217
+ # Check Redis connectivity
218
+ redis-cli PING
219
+ ```
220
+
221
+ **Progress Monitoring:**
222
+ ```bash
223
+ # Real-time agent completion monitoring
224
+ watch -n 5 'redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep -E "(iteration|confidence|status)"'
225
+
226
+ # Monitor agent signals
227
+ redis-cli PUBLISH "swarm:${TASK_ID}:monitor" "status_check"
228
+ ```
229
+
230
+ ### Automatic Recovery Features
231
+
232
+ **Dead Process Detection:**
233
+ - Automatically detects and reports stuck agents
234
+ - Process health checking with configurable timeouts
235
+ - Automatic cleanup of orphaned Redis connections
236
+
237
+ **Agent Restart Capability:**
238
+ - Coordinator can restart failed agents automatically
239
+ - Context preservation across agent restarts
240
+ - Iteration state recovery from Redis persistence
241
+
242
+ **Error Recovery Patterns:**
243
+ - Timeout detection and agent termination
244
+ - Context validation before spawning replacements
245
+ - Graceful degradation with partial agent sets
246
+
247
+ ### Monitoring Dashboard Features
248
+
249
+ **Web Portal (http://localhost:3000):**
250
+ - Live agent status dashboard
251
+ - Iteration progress visualization
252
+ - Confidence score trends
253
+ - Error rate monitoring
254
+ - Resource usage graphs
255
+
256
+ **CLI Monitoring Tools:**
257
+ - `cfn-portal` - Start/stop monitoring dashboard
258
+ - `cfn-context` - Query task context and status
259
+ - `cfn-metrics` - View performance analytics
260
+ - `cfn-redis` - Direct Redis inspection tools
261
+
262
+ ### Troubleshooting Monitoring Issues
263
+
264
+ **Missing Coordinator:**
265
+ ```bash
266
+ # Investigate coordinator failure
267
+ ./.claude/skills/cfn-loop-orchestration/investigate-missing-coordinator.sh "$TASK_ID"
268
+
269
+ # Check for namespace mismatches
270
+ redis-cli KEYS "cfn_loop:*" | head -10
271
+ ```
272
+
273
+ **Stuck Agents:**
274
+ ```bash
275
+ # Force cleanup of stuck agents
276
+ ./.claude/skills/cfn-loop-orchestration/cleanup-stuck-agents.sh "$TASK_ID"
277
+
278
+ # Monitor agent timeouts
279
+ redis-cli HGET "cfn_loop:task:$TASK_ID:timeouts" "agent_timeouts"
280
+ ```
281
+
282
+ **Redis Connection Issues:**
283
+ ```bash
284
+ # Test Redis connectivity
285
+ redis-cli -n 0 PING
286
+
287
+ # Check Redis memory usage
288
+ redis-cli INFO memory | grep used_memory_human
289
+
290
+ # Monitor Redis keyspace
291
+ redis-cli DBSIZE
292
+ ```
293
+
151
294
  ## Usage Examples
152
295
 
153
296
  **Simple API Development:**
@@ -187,125 +330,92 @@ The coordinator handles all agent spawning internally using optimized CLI proces
187
330
 
188
331
  ## 🚨 EXECUTION INSTRUCTIONS (Internal Use)
189
332
 
190
- **Main Chat: Execute this Task() call after slash command processing:**
191
-
192
- ```javascript
193
- Task("cfn-v3-coordinator", `
194
- CFN LOOP CLI MODE v3.0 - PRODUCTION EXECUTION WITH ENHANCED MONITORING
195
-
196
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
197
- TASK SPECIFICATION
198
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
199
-
200
- Task Description: $ARGUMENTS
201
- Task ID: cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}
202
- Mode: ${mode.toUpperCase()}
203
-
204
- Enhanced Monitoring: Real-time agent tracking, automatic recovery, protocol compliance
205
-
206
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
207
- SUCCESS CRITERIA
208
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
209
-
210
- Acceptance Criteria:
211
- - [ ] Core functionality implemented
212
- - [ ] All tests pass with >80% coverage
213
- - [ ] Security review completed
214
- - [ ] Documentation updated
215
- - [ ] No regression in existing features
216
-
217
- Quality Gates (${mode.toUpperCase()} MODE):
218
- - Loop 3 Gate Threshold: ${mode === 'enterprise' ? 0.85 : mode === 'standard' ? 0.75 : 0.70}
219
- - Loop 2 Consensus Threshold: ${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
220
- - Max Iterations: ${maxIterations}
221
-
222
- Definition of Done:
223
- - Consensus ≥ threshold achieved
224
- - All acceptance criteria met
225
- - Product Owner approval received
226
-
227
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
228
- ENHANCED ORCHESTRATION CONFIGURATION v3.0
229
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
230
-
231
- Mode: ${mode.toUpperCase()}
232
- Enhanced Features: Real-time monitoring, automatic recovery, protocol compliance
233
-
234
- Loop 3 Agents (Implementation) - SELECT BASED ON TASK:
235
- Examples:
236
- - Backend API: backend-dev, researcher, devops
237
- - Full-Stack: backend-dev, react-frontend-engineer, devops
238
- - Infrastructure: devops, rust-developer, researcher
239
- - Security: security-specialist, backend-dev, researcher
240
-
241
- Loop 2 Agents (Validation) - SCALE BY COMPLEXITY:
242
- Simple (1-2 files): reviewer, tester
243
- Standard (3-5 files): reviewer, tester, architect, security-specialist
244
- Complex (>5 files): +code-analyzer, +performance-benchmarker
245
-
246
- Product Owner: product-owner
247
-
248
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
249
- EXECUTION INSTRUCTIONS (Enhanced v3.0)
250
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
251
-
252
- 1. INVOKE ENHANCED ORCHESTRATOR (CLI spawning with monitoring):
253
-
254
- TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
255
- MODE="${mode}"
256
- LOOP3_AGENTS="backend-dev,researcher,devops" # Customize for task
257
- LOOP2_AGENTS="reviewer,tester,architect,security-specialist" # Scale by complexity
258
-
259
- ./.claude/skills/cfn-loop-orchestration/orchestrate.sh \\
260
- --task-id "$TASK_ID" \\
261
- --mode "$MODE" \\
262
- --loop3-agents "$LOOP3_AGENTS" \\
263
- --loop2-agents "$LOOP2_AGENTS" \\
264
- --product-owner "product-owner" \\
265
- --max-iterations ${maxIterations}
266
-
267
- 2. ENHANCED ORCHESTRATOR HANDLES v3.0:
268
- - ✅ Spawns all agents via CLI (background) with protocol compliance
269
- - ✅ Real-time agent progress monitoring and stuck detection
270
- - ✅ Automatic recovery from dead processes
271
- - ✅ Enhanced context validation prevents "consensus on vapor"
272
- - ✅ Loop 3: Gate check (≥threshold) → PASS/ITERATE with health verification
273
- - ✅ Loop 2: Consensus check (≥threshold) → COMPLETE/ITERATE
274
- - ✅ Product Owner: PROCEED/ITERATE/ABORT decision with deliverable validation
275
- - ✅ Git commit/push on PROCEED
276
- - ✅ Returns structured result to Main Chat
277
-
278
- 3. RETURN STRUCTURED RESULT:
279
- {
280
- "taskId": "cfn-cli-XXXXX",
281
- "status": "complete|failed",
282
- "iterations": {"loop3": N, "loop2": M},
283
- "finalConsensus": 0.XX,
284
- "acceptanceCriteria": {
285
- "met": [...],
286
- "pending": [...]
287
- },
288
- "deliverables": [...],
289
- "enhancedMonitoring": {
290
- "agentHealth": "healthy|recovered",
291
- "processRecovery": true,
292
- "protocolCompliance": true
293
- },
294
- "recommendations": [...]
295
- }
296
-
297
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
298
- CRITICAL ENHANCED RULES v3.0
299
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
300
-
301
- - ✅ USE enhanced orchestration script with real-time monitoring
302
- - ✅ ALL agents run in background via npx claude-flow-novice (enhanced v3.0)
303
- - ✅ USE Redis BLPOP for loop dependencies (zero-token coordination)
304
- - ✅ AGENTS use Z.ai routing automatically (when enabled)
305
- - ✅ ENFORCE protocol compliance (prevent "consensus on vapor")
306
- - ✅ MONITOR agent health and auto-recover stuck processes
307
- - ✅ RETURN structured result with enhanced monitoring data
308
- `, "cfn-v3-coordinator")
333
+ **Main Chat: Spawn coordinator via CLI after slash command processing:**
334
+
335
+ ```bash
336
+ # Generate unique task ID
337
+ TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
338
+
339
+ # Extract task description and mode from slash command
340
+ TASK_DESCRIPTION="$ARGUMENTS"
341
+ MODE="${mode:-standard}"
342
+ MAX_ITERATIONS="${maxIterations:-10}"
343
+
344
+ # Determine appropriate agents based on task complexity
345
+ TASK_COMPLEXITY="standard" # auto-detect or pass from command
346
+ case "$TASK_COMPLEXITY" in
347
+ "simple")
348
+ LOOP3_AGENTS="backend-dev,researcher"
349
+ LOOP2_AGENTS="reviewer,tester"
350
+ ;;
351
+ "standard")
352
+ LOOP3_AGENTS="backend-dev,researcher,devops"
353
+ LOOP2_AGENTS="reviewer,tester,architect,security-specialist"
354
+ ;;
355
+ "complex")
356
+ LOOP3_AGENTS="backend-dev,researcher,devops,rust-developer"
357
+ LOOP2_AGENTS="reviewer,tester,architect,security-specialist,code-analyzer"
358
+ ;;
359
+ esac
360
+
361
+ # Spawn coordinator via CLI (background execution)
362
+ npx claude-flow-novice agent cfn-v3-coordinator \
363
+ --task-id "$TASK_ID" \
364
+ --context "TASK_DESCRIPTION='$TASK_DESCRIPTION' MODE='$MODE' MAX_ITERATIONS=$MAX_ITERATIONS LOOP3_AGENTS='$LOOP3_AGENTS' LOOP2_AGENTS='$LOOP2_AGENTS'" \
365
+ --timeout 300 \
366
+ --background=true
367
+
368
+ # Monitor progress (required for background tasks)
369
+ # redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"
309
370
  ```
310
371
 
311
- **Version:** 3.0.0 (2025-11-05) - Enhanced CLI mode: production execution with real-time monitoring, automatic recovery, and protocol compliance
372
+ **CLI Coordinator Spawning Pattern:**
373
+
374
+ ```bash
375
+ # Direct CLI coordinator spawning with background execution
376
+ npx claude-flow-novice agent cfn-v3-coordinator \
377
+ --task-id "unique-task-id" \
378
+ --context "task description; mode; max-iterations; agent-config" \
379
+ --timeout 300 \
380
+ --background=true
381
+ ```
382
+
383
+ **Critical Background Execution Instructions:**
384
+
385
+ 1. **Always use `--background=true`** for CLI mode to enable:
386
+ - Non-blocking coordinator execution
387
+ - Real-time monitoring capabilities
388
+ - Redis state persistence
389
+ - Automatic recovery features
390
+
391
+ 2. **Background execution means:**
392
+ - Coordinator runs independently of Main Chat
393
+ - Main Chat can monitor progress via Redis queries
394
+ - Long-running tasks won't timeout due to Bash tool limitations
395
+ - Web portal can track agent progress in real-time
396
+
397
+ 3. **Without `--background=true`:**
398
+ - Coordinator blocks Main Chat execution
399
+ - No monitoring capabilities
400
+ - Timeouts after 10 minutes (Bash tool limit)
401
+ - No recovery or persistence features
402
+
403
+ **Why This Pattern:**
404
+ - ✅ All execution via CLI (no Task() tool)
405
+ - ✅ Background execution with enhanced monitoring
406
+ - ✅ Z.ai routing automatically applied to all CLI agents (including coordinator)
407
+ - ✅ Redis coordination for agent communication
408
+ - ✅ Enhanced monitoring and recovery capabilities
409
+ - ✅ Clean separation: Main Chat → CLI Coordinator → CLI Workers
410
+ - ✅ Production-ready with real-time progress tracking
411
+ - ✅ No timeout limitations with `--background=true`
412
+
413
+ **Enhanced Monitoring Benefits:**
414
+ - Real-time agent progress tracking via Redis
415
+ - Automatic recovery from stuck agents
416
+ - Web portal visibility (http://localhost:3000)
417
+ - Process health checking and cleanup
418
+ - Context validation and preservation
419
+ - Performance metrics and analytics
420
+
421
+ **Version:** 3.1.0 (2025-11-05) - Removed cost information, added Main Chat monitoring instructions, clarified background execution requirements
@@ -0,0 +1,55 @@
1
+ # Deprecated CFN Loop Commands
2
+
3
+ **⚠️ DEPRECATED (Removed 2025-10-31)**
4
+
5
+ These commands are no longer maintained and have been replaced by the simplified CFN Loop v3.0 command structure.
6
+
7
+ ## Migration Path
8
+
9
+ ### Old Commands → New Commands
10
+
11
+ | Deprecated Command | Replacement | Use Case |
12
+ |-------------------|-------------|----------|
13
+ | `/cfn-loop` | `/cfn-loop-cli` or `/cfn-loop-task` | General CFN Loop execution |
14
+ | `/cfn-loop-single` | `/cfn-loop-cli --mode=mvp` | Single focused task |
15
+ | `/cfn-loop-epic` | Multiple `/cfn-loop-cli` calls | Multi-phase epic development |
16
+ | `/cfn-loop-sprints` | Multiple `/cfn-loop-cli` calls | Sprint-based development |
17
+
18
+ ## Current Commands (v3.0)
19
+
20
+ - `/cfn-loop-cli` - Production CLI mode with background execution
21
+ - `/cfn-loop-task` - Task mode for debugging with full visibility
22
+ - `/cfn-loop-frontend` - Frontend development with visual validation
23
+ - `/cfn-loop-document` - Automated documentation generation
24
+
25
+ ## Key Changes
26
+
27
+ 1. **Simplified Architecture**: 4 current commands instead of 8
28
+ 2. **Dual Execution Modes**: CLI (production) vs Task (debugging)
29
+ 3. **Background Execution**: CLI mode supports `--background=true`
30
+ 4. **Enhanced Monitoring**: Real-time progress tracking via Redis
31
+ 5. **Cleaner Separation**: Clear distinction between production and debugging workflows
32
+
33
+ ## Why Deprecated?
34
+
35
+ - **Command Overload**: Too many similar commands caused confusion
36
+ - **Inconsistent Patterns**: Different parameter structures across commands
37
+ - **Maintenance Complexity**: Supporting multiple execution patterns
38
+ - **User Experience**: Simplified command structure improves adoption
39
+
40
+ ## Documentation
41
+
42
+ See current command documentation:
43
+ - [`../cfn-loop-cli.md`](../cfn-loop-cli.md)
44
+ - [`../cfn-loop-task.md`](../cfn-loop-task.md)
45
+ - [`../cfn-loop-frontend.md`](../cfn-loop-frontend.md)
46
+ - [`../cfn-loop-document.md`](../cfn-loop-document.md)
47
+
48
+ ## Historical Reference
49
+
50
+ These files are preserved for:
51
+ - Migration guidance for existing users
52
+ - Historical reference for development decisions
53
+ - Understanding the evolution of CFN Loop architecture
54
+
55
+ **Note**: These commands will be removed completely in a future major version.