claude-flow-novice 2.14.14 β†’ 2.14.15

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.
@@ -79,138 +79,57 @@ Savings: 64% with custom routing, 95-98% vs all-Task
79
79
 
80
80
  ## 🚨 CRITICAL EXECUTION INSTRUCTIONS
81
81
 
82
- **YOU ARE MAIN CHAT. YOU SPAWN ONLY ONE AGENT: cfn-v3-coordinator**
82
+ **THIS IS A SLASH COMMAND - MAIN CHAT EXECUTES THIS DIRECTLY**
83
83
 
84
+ **DO NOT manually spawn Task() agents for CFN Loop workflows**
85
+ **DO NOT spawn cfn-v3-coordinator manually**
84
86
  **DO NOT spawn Loop 3 agents (backend-dev, researcher, etc.)**
85
87
  **DO NOT spawn Loop 2 agents (reviewer, tester, etc.)**
86
88
  **DO NOT spawn product-owner**
87
- **DO NOT ask user which agents to use**
88
89
 
89
- The coordinator handles ALL agent spawning internally via CLI.
90
+ **Main Chat simply executes the slash command - everything else is automatic**
90
91
 
91
92
  ---
92
93
 
93
- ### Execute This Task() Call:
94
-
95
- ```javascript
96
- Task("cfn-v3-coordinator", `
97
- CFN LOOP CLI MODE - PRODUCTION EXECUTION
98
-
99
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
100
- TASK SPECIFICATION
101
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
102
-
103
- Task Description: $ARGUMENTS
104
- Task ID: cfn-cli-$(date +%s)
105
- Mode: ${mode.toUpperCase()}
106
-
107
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
108
- SUCCESS CRITERIA
109
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110
-
111
- Acceptance Criteria:
112
- - [ ] Core functionality implemented
113
- - [ ] All tests pass with >80% coverage
114
- - [ ] Security review completed
115
- - [ ] Documentation updated
116
- - [ ] No regression in existing features
117
-
118
- Quality Gates (${mode.toUpperCase()} MODE):
119
- - Loop 3 Gate Threshold: ${mode === 'enterprise' ? 0.85 : mode === 'standard' ? 0.75 : 0.70}
120
- - Loop 2 Consensus Threshold: ${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
121
- - Max Iterations: ${maxIterations}
122
-
123
- Definition of Done:
124
- - Consensus β‰₯ threshold achieved
125
- - All acceptance criteria met
126
- - Product Owner approval received
127
-
128
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
129
- ORCHESTRATION CONFIGURATION
130
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
131
-
132
- Mode: ${mode.toUpperCase()}
133
-
134
- Loop 3 Agents (Implementation) - SELECT BASED ON TASK:
135
- Examples:
136
- - Backend API: backend-dev, researcher, devops
137
- - Full-Stack: backend-dev, react-frontend-engineer, devops
138
- - Infrastructure: devops, rust-developer, researcher
139
- - Security: security-specialist, backend-dev, researcher
140
-
141
- Loop 2 Agents (Validation) - SCALE BY COMPLEXITY:
142
- Simple (1-2 files): reviewer, tester
143
- Standard (3-5 files): reviewer, tester, architect, security-specialist
144
- Complex (>5 files): +code-analyzer, +performance-benchmarker
145
-
146
- Product Owner: product-owner
147
-
148
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
149
- EXECUTION INSTRUCTIONS
150
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
151
-
152
- 1. INVOKE ORCHESTRATOR (CLI spawning):
153
-
154
- TASK_ID="cfn-cli-$(date +%s)"
155
- MODE="${mode}"
156
- LOOP3_AGENTS="backend-dev,researcher,devops" # Customize for task
157
- LOOP2_AGENTS="reviewer,tester,architect,security-specialist" # Scale by complexity
158
-
159
- ./.claude/skills/cfn-loop-orchestration/orchestrate.sh \\
160
- --task-id "$TASK_ID" \\
161
- --mode "$MODE" \\
162
- --loop3-agents "$LOOP3_AGENTS" \\
163
- --loop2-agents "$LOOP2_AGENTS" \\
164
- --product-owner "product-owner" \\
165
- --max-iterations ${maxIterations}
166
-
167
- 2. ORCHESTRATOR HANDLES:
168
- - Spawns all agents via CLI (background)
169
- - Loop 3: Gate check (β‰₯threshold) β†’ PASS/ITERATE
170
- - Loop 2: Consensus check (β‰₯threshold) β†’ COMPLETE/ITERATE
171
- - Product Owner: PROCEED/ITERATE/ABORT decision
172
- - Git commit/push on PROCEED
173
- - Returns structured result to Main Chat
174
-
175
- 3. RETURN STRUCTURED RESULT:
176
- {
177
- "taskId": "cfn-cli-XXXXX",
178
- "status": "complete|failed",
179
- "iterations": {"loop3": N, "loop2": M},
180
- "finalConsensus": 0.XX,
181
- "acceptanceCriteria": {
182
- "met": [...],
183
- "pending": [...]
184
- },
185
- "deliverables": [...],
186
- "recommendations": [...]
187
- }
188
-
189
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
- CRITICAL RULES
191
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
192
-
193
- - DO NOT spawn agents with Task() - orchestrator uses CLI
194
- - ALL agents run in background via npx claude-flow-novice
195
- - USE Redis BLPOP for loop dependencies
196
- - AGENTS use Z.ai routing automatically (when enabled)
197
- - RETURN structured result when complete
198
- `, "cfn-v3-coordinator")
199
- ```
94
+ ## How This Command Works:
95
+
96
+ When Main Chat executes `/cfn-loop-cli "task description"`, this slash command:
97
+
98
+ 1. **Automatically spawns cfn-v3-coordinator** with proper parameters
99
+ 2. **Coordinator invokes enhanced orchestrator** with monitoring v3.0
100
+ 3. **Orchestrator spawns all agents via CLI** (background execution)
101
+ 4. **Handles complete CFN Loop workflow** with real-time monitoring
102
+ 5. **Returns structured result** to Main Chat when complete
103
+
104
+ ## Enhanced Features v3.0:
105
+
106
+ - βœ… **Real-time monitoring** with automatic stuck agent recovery
107
+ - βœ… **Process health checking** and dead process cleanup
108
+ - βœ… **Protocol compliance** preventing "consensus on vapor" anti-patterns
109
+ - βœ… **Progress visibility** with detailed timestamped reports
110
+ - βœ… **95-98% cost savings** with Z.ai routing optimization
111
+ - βœ… **Background execution** with Redis persistence
200
112
 
201
- ## Autonomous Execution Rules
113
+ ## Main Chat Execution Rules
114
+
115
+ **THIS SLASH COMMAND HANDLES EVERYTHING AUTOMATICALLY**
116
+
117
+ **Main Chat simply executes:**
118
+ ```bash
119
+ /cfn-loop-cli "Task description" --mode=standard
120
+ ```
202
121
 
203
- **YOU ARE FORBIDDEN FROM:**
204
- - ❌ Asking "Should I retry?" (coordinator handles automatically)
205
- - ❌ Asking "Proceed to consensus?" (orchestrator decides)
206
- - ❌ Waiting for approval during CFN Loop cycles
207
- - ❌ Spawning workers with Task() (use coordinator only)
122
+ **The slash command automatically:**
123
+ - βœ… Spawns coordinator with proper parameters
124
+ - βœ… Handles all agent spawning via CLI
125
+ - βœ… Manages complete CFN Loop workflow
126
+ - βœ… Returns structured result when complete
208
127
 
209
- **YOU MUST:**
210
- - βœ… ALWAYS spawn single coordinator agent
211
- - βœ… LET coordinator invoke orchestrator internally
212
- - βœ… COORDINATOR handles all loop execution autonomously
213
- - βœ… ONLY return to chat when complete or blocked
128
+ **Main Chat should NOT:**
129
+ - ❌ Manually spawn any Task() agents for CFN Loop
130
+ - ❌ Ask about retry/iteration decisions (handled automatically)
131
+ - ❌ Monitor agent progress (slash command handles this)
132
+ - ❌ Coordinate between agents (built-in coordination)
214
133
 
215
134
  ## CLI Mode Benefits
216
135
 
@@ -219,11 +138,15 @@ Task("cfn-v3-coordinator", `
219
138
  - 95-98% savings vs Task tool spawning
220
139
  - Scales linearly with iterations (Task mode scales exponentially)
221
140
 
222
- **Production Features:**
141
+ **Production Features v3.0:**
223
142
  - Background execution (no timeout issues)
224
143
  - Redis state persistence (crash recovery)
225
144
  - Zero-token waiting (BLPOP blocks without API calls)
226
145
  - Web portal visibility (http://localhost:3000)
146
+ - **Enhanced monitoring**: Real-time agent progress tracking
147
+ - **Automatic recovery**: Dead process cleanup and agent restart
148
+ - **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
149
+ - **Progress visibility**: Detailed reports with timestamps and health status
227
150
 
228
151
  **Performance:**
229
152
  - Parallel agent spawning (no sequential bottleneck)
@@ -79,138 +79,57 @@ Savings: 64% with custom routing, 95-98% vs all-Task
79
79
 
80
80
  ## 🚨 CRITICAL EXECUTION INSTRUCTIONS
81
81
 
82
- **YOU ARE MAIN CHAT. YOU SPAWN ONLY ONE AGENT: cfn-v3-coordinator**
82
+ **THIS IS A SLASH COMMAND - MAIN CHAT EXECUTES THIS DIRECTLY**
83
83
 
84
+ **DO NOT manually spawn Task() agents for CFN Loop workflows**
85
+ **DO NOT spawn cfn-v3-coordinator manually**
84
86
  **DO NOT spawn Loop 3 agents (backend-dev, researcher, etc.)**
85
87
  **DO NOT spawn Loop 2 agents (reviewer, tester, etc.)**
86
88
  **DO NOT spawn product-owner**
87
- **DO NOT ask user which agents to use**
88
89
 
89
- The coordinator handles ALL agent spawning internally via CLI.
90
+ **Main Chat simply executes the slash command - everything else is automatic**
90
91
 
91
92
  ---
92
93
 
93
- ### Execute This Task() Call:
94
-
95
- ```javascript
96
- Task("cfn-v3-coordinator", `
97
- CFN LOOP CLI MODE - PRODUCTION EXECUTION
98
-
99
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
100
- TASK SPECIFICATION
101
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
102
-
103
- Task Description: $ARGUMENTS
104
- Task ID: cfn-cli-$(date +%s)
105
- Mode: ${mode.toUpperCase()}
106
-
107
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
108
- SUCCESS CRITERIA
109
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110
-
111
- Acceptance Criteria:
112
- - [ ] Core functionality implemented
113
- - [ ] All tests pass with >80% coverage
114
- - [ ] Security review completed
115
- - [ ] Documentation updated
116
- - [ ] No regression in existing features
117
-
118
- Quality Gates (${mode.toUpperCase()} MODE):
119
- - Loop 3 Gate Threshold: ${mode === 'enterprise' ? 0.85 : mode === 'standard' ? 0.75 : 0.70}
120
- - Loop 2 Consensus Threshold: ${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
121
- - Max Iterations: ${maxIterations}
122
-
123
- Definition of Done:
124
- - Consensus β‰₯ threshold achieved
125
- - All acceptance criteria met
126
- - Product Owner approval received
127
-
128
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
129
- ORCHESTRATION CONFIGURATION
130
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
131
-
132
- Mode: ${mode.toUpperCase()}
133
-
134
- Loop 3 Agents (Implementation) - SELECT BASED ON TASK:
135
- Examples:
136
- - Backend API: backend-dev, researcher, devops
137
- - Full-Stack: backend-dev, react-frontend-engineer, devops
138
- - Infrastructure: devops, rust-developer, researcher
139
- - Security: security-specialist, backend-dev, researcher
140
-
141
- Loop 2 Agents (Validation) - SCALE BY COMPLEXITY:
142
- Simple (1-2 files): reviewer, tester
143
- Standard (3-5 files): reviewer, tester, architect, security-specialist
144
- Complex (>5 files): +code-analyzer, +performance-benchmarker
145
-
146
- Product Owner: product-owner
147
-
148
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
149
- EXECUTION INSTRUCTIONS
150
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
151
-
152
- 1. INVOKE ORCHESTRATOR (CLI spawning):
153
-
154
- TASK_ID="cfn-cli-$(date +%s)"
155
- MODE="${mode}"
156
- LOOP3_AGENTS="backend-dev,researcher,devops" # Customize for task
157
- LOOP2_AGENTS="reviewer,tester,architect,security-specialist" # Scale by complexity
158
-
159
- ./.claude/skills/cfn-loop-orchestration/orchestrate.sh \\
160
- --task-id "$TASK_ID" \\
161
- --mode "$MODE" \\
162
- --loop3-agents "$LOOP3_AGENTS" \\
163
- --loop2-agents "$LOOP2_AGENTS" \\
164
- --product-owner "product-owner" \\
165
- --max-iterations ${maxIterations}
166
-
167
- 2. ORCHESTRATOR HANDLES:
168
- - Spawns all agents via CLI (background)
169
- - Loop 3: Gate check (β‰₯threshold) β†’ PASS/ITERATE
170
- - Loop 2: Consensus check (β‰₯threshold) β†’ COMPLETE/ITERATE
171
- - Product Owner: PROCEED/ITERATE/ABORT decision
172
- - Git commit/push on PROCEED
173
- - Returns structured result to Main Chat
174
-
175
- 3. RETURN STRUCTURED RESULT:
176
- {
177
- "taskId": "cfn-cli-XXXXX",
178
- "status": "complete|failed",
179
- "iterations": {"loop3": N, "loop2": M},
180
- "finalConsensus": 0.XX,
181
- "acceptanceCriteria": {
182
- "met": [...],
183
- "pending": [...]
184
- },
185
- "deliverables": [...],
186
- "recommendations": [...]
187
- }
188
-
189
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
- CRITICAL RULES
191
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
192
-
193
- - DO NOT spawn agents with Task() - orchestrator uses CLI
194
- - ALL agents run in background via npx claude-flow-novice
195
- - USE Redis BLPOP for loop dependencies
196
- - AGENTS use Z.ai routing automatically (when enabled)
197
- - RETURN structured result when complete
198
- `, "cfn-v3-coordinator")
199
- ```
94
+ ## How This Command Works:
95
+
96
+ When Main Chat executes `/cfn-loop-cli "task description"`, this slash command:
97
+
98
+ 1. **Automatically spawns cfn-v3-coordinator** with proper parameters
99
+ 2. **Coordinator invokes enhanced orchestrator** with monitoring v3.0
100
+ 3. **Orchestrator spawns all agents via CLI** (background execution)
101
+ 4. **Handles complete CFN Loop workflow** with real-time monitoring
102
+ 5. **Returns structured result** to Main Chat when complete
103
+
104
+ ## Enhanced Features v3.0:
105
+
106
+ - βœ… **Real-time monitoring** with automatic stuck agent recovery
107
+ - βœ… **Process health checking** and dead process cleanup
108
+ - βœ… **Protocol compliance** preventing "consensus on vapor" anti-patterns
109
+ - βœ… **Progress visibility** with detailed timestamped reports
110
+ - βœ… **95-98% cost savings** with Z.ai routing optimization
111
+ - βœ… **Background execution** with Redis persistence
200
112
 
201
- ## Autonomous Execution Rules
113
+ ## Main Chat Execution Rules
114
+
115
+ **THIS SLASH COMMAND HANDLES EVERYTHING AUTOMATICALLY**
116
+
117
+ **Main Chat simply executes:**
118
+ ```bash
119
+ /cfn-loop-cli "Task description" --mode=standard
120
+ ```
202
121
 
203
- **YOU ARE FORBIDDEN FROM:**
204
- - ❌ Asking "Should I retry?" (coordinator handles automatically)
205
- - ❌ Asking "Proceed to consensus?" (orchestrator decides)
206
- - ❌ Waiting for approval during CFN Loop cycles
207
- - ❌ Spawning workers with Task() (use coordinator only)
122
+ **The slash command automatically:**
123
+ - βœ… Spawns coordinator with proper parameters
124
+ - βœ… Handles all agent spawning via CLI
125
+ - βœ… Manages complete CFN Loop workflow
126
+ - βœ… Returns structured result when complete
208
127
 
209
- **YOU MUST:**
210
- - βœ… ALWAYS spawn single coordinator agent
211
- - βœ… LET coordinator invoke orchestrator internally
212
- - βœ… COORDINATOR handles all loop execution autonomously
213
- - βœ… ONLY return to chat when complete or blocked
128
+ **Main Chat should NOT:**
129
+ - ❌ Manually spawn any Task() agents for CFN Loop
130
+ - ❌ Ask about retry/iteration decisions (handled automatically)
131
+ - ❌ Monitor agent progress (slash command handles this)
132
+ - ❌ Coordinate between agents (built-in coordination)
214
133
 
215
134
  ## CLI Mode Benefits
216
135
 
@@ -219,11 +138,15 @@ Task("cfn-v3-coordinator", `
219
138
  - 95-98% savings vs Task tool spawning
220
139
  - Scales linearly with iterations (Task mode scales exponentially)
221
140
 
222
- **Production Features:**
141
+ **Production Features v3.0:**
223
142
  - Background execution (no timeout issues)
224
143
  - Redis state persistence (crash recovery)
225
144
  - Zero-token waiting (BLPOP blocks without API calls)
226
145
  - Web portal visibility (http://localhost:3000)
146
+ - **Enhanced monitoring**: Real-time agent progress tracking
147
+ - **Automatic recovery**: Dead process cleanup and agent restart
148
+ - **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
149
+ - **Progress visibility**: Detailed reports with timestamps and health status
227
150
 
228
151
  **Performance:**
229
152
  - Parallel agent spawning (no sequential bottleneck)