claude-flow-novice 2.14.27 → 2.14.29

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 (73) hide show
  1. package/.claude/commands/CFN_LOOP_TASK_MODE.md +119 -0
  2. package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +22 -0
  3. package/.claude/skills/cfn-agent-spawning/spawn-agent.sh.backup +273 -0
  4. package/.claude/skills/cfn-hybrid-routing/README.md +1 -1
  5. package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +10 -0
  6. package/.claude/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +10 -0
  7. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +105 -15
  8. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +76 -11
  9. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup2 +959 -0
  10. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.clean +949 -0
  11. package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +82 -10
  12. package/.claude/skills/cfn-redis-coordination/report-completion.sh +10 -0
  13. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -33
  14. package/claude-assets/agents/cfn-dev-team/architecture/planner.md +7 -47
  15. package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +7 -33
  16. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +88 -23
  17. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +59 -23
  18. package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +43 -39
  19. package/claude-assets/agents/cfn-dev-team/coordinators/epic-creator.md +69 -0
  20. package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +65 -1
  21. package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +7 -47
  22. package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +7 -26
  23. package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +7 -47
  24. package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +7 -19
  25. package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +9 -49
  26. package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +407 -22
  27. package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +7 -66
  28. package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +7 -76
  29. package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +8 -2
  30. package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +7 -66
  31. package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +7 -78
  32. package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +7 -18
  33. package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +7 -18
  34. package/claude-assets/agents/cfn-dev-team/testers/tester.md +7 -77
  35. package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +7 -18
  36. package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md +7 -19
  37. package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +7 -44
  38. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +35 -111
  39. package/claude-assets/agents/cfn-dev-team/utility/analyst.md +7 -47
  40. package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +7 -40
  41. package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +7 -47
  42. package/claude-assets/commands/CFN_LOOP_TASK_MODE.md +119 -0
  43. package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +22 -0
  44. package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh.backup +273 -0
  45. package/claude-assets/skills/cfn-environment-sanitization/SKILL.md +200 -0
  46. package/claude-assets/skills/cfn-environment-sanitization/sanitize-environment.sh +244 -0
  47. package/claude-assets/skills/cfn-hybrid-routing/README.md +1 -1
  48. package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus.sh +10 -0
  49. package/claude-assets/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +10 -0
  50. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +105 -15
  51. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +76 -11
  52. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup2 +959 -0
  53. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.clean +949 -0
  54. package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +326 -0
  55. package/claude-assets/skills/cfn-process-instrumentation/SKILL.md +279 -0
  56. package/claude-assets/skills/cfn-process-instrumentation/instrument-process.sh +323 -0
  57. package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +82 -10
  58. package/claude-assets/skills/cfn-redis-coordination/report-completion.sh +10 -0
  59. package/claude-assets/skills/cfn-task-audit/get-audit-data.sh +376 -0
  60. package/claude-assets/skills/cfn-task-audit/store-task-audit.sh +184 -0
  61. package/claude-assets/skills/cfn-task-mode-safety/cli-coordination.sh +519 -0
  62. package/claude-assets/skills/cfn-task-mode-safety/mode-detection.sh +326 -0
  63. package/claude-assets/skills/cfn-task-mode-sanitize/task-mode-env-sanitizer.sh +224 -0
  64. package/claude-assets/skills/cfn-telemetry/collect-metrics.sh +249 -0
  65. package/claude-assets/skills/cfn-telemetry/start-telemetry.sh +111 -0
  66. package/claude-assets/skills/cfn-validation-runner-instrumentation/wrapped-executor.sh +327 -0
  67. package/dist/agents/agent-loader.js +467 -133
  68. package/dist/agents/agent-loader.js.map +1 -1
  69. package/dist/cli/config-manager.js.map +1 -1
  70. package/package.json +1 -1
  71. package/scripts/mode-detection.sh +321 -0
  72. package/scripts/spawn-worker.sh +8 -0
  73. package/scripts/track-zai-costs-simple.sh +8 -0
@@ -74,22 +74,26 @@ await sqlite.memoryAdapter.set(
74
74
  );
75
75
  ```
76
76
 
77
- ## Blocking Coordination
77
+ ## Redis Blocking Coordination
78
78
 
79
- ```javascript
80
- // Send vote request to participants
81
- for (const agentId of participantAgents) {
82
- await signals.sendSignal('VOTE_REQUEST', agentId, {
83
- proposal: consensusProposal,
84
- deadline: Date.now() + 30000
85
- });
86
- }
87
-
88
- // Wait for votes with timeout
89
- const votes = await signals.waitForAcks(
90
- participantAgents.map(id => `vote-${proposalId}-${id}`),
91
- 30000
92
- );
79
+ ```bash
80
+ # Send vote request to participants via Redis pub/sub
81
+ for agent_id in "${participantAgents[@]}"; do
82
+ redis-cli publish "swarm:${agent_id}:vote-request" "$consensusProposal"
83
+ redis-cli HSET "cfn_loop:vote:${proposalId}:${agent_id}" \
84
+ "proposal" "$consensusProposal" \
85
+ "deadline" "$(( $(date +%s) + 30 ))" \
86
+ "status" "pending"
87
+ done
88
+
89
+ # Wait for votes with timeout using Redis blocking list
90
+ vote_results=()
91
+ for agent_id in "${participantAgents[@]}"; do
92
+ vote=$(redis-cli blpop "swarm:${agent_id}:vote:${proposalId}" 30)
93
+ if [ -n "$vote" ]; then
94
+ vote_results+=("$vote")
95
+ fi
96
+ done
93
97
  ```
94
98
 
95
99
  ## Configuration Options
@@ -128,40 +132,40 @@ consensus_config:
128
132
  When participating in CFN Loop workflows, agents MUST follow this protocol:
129
133
 
130
134
  ### Step 1: Complete Work
131
- Execute assigned task (consensus mechanism design, distributed decision-making, voting coordination)
135
+ Execute assigned consensus mechanism design tasks
132
136
 
133
137
  ### Step 2: Signal Completion
134
138
  ```bash
135
139
  redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
136
140
  ```
137
141
 
138
- ### Step 3: Report Confidence Score
142
+ ### Step 3: Report Confidence Score and Exit
139
143
  ```bash
140
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report --task-id "$TASK_ID" --agent-id "$AGENT_ID" --confidence [0.0-1.0] --iteration 1
144
+ ./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
145
+ --task-id "$TASK_ID" \
146
+ --agent-id "$AGENT_ID" \
147
+ --confidence [0.0-1.0] \
148
+ --iteration 1
149
+ ```
141
150
 
142
151
  **After reporting, exit cleanly. Do NOT enter waiting mode.**
143
152
 
144
- **Why This Matters:**
145
- - Orchestrator collects confidence/consensus scores from Redis
146
- - Enables adaptive agent specialization for next iteration
147
- - Prevents orchestrator blocking on wait $PID
148
- - Coordinator spawns appropriate specialist based on feedback type
153
+ ## Task Completion Protocol
149
154
 
150
- ```
155
+ Complete your consensus mechanism design work and provide a structured response with:
151
156
 
152
- ### Step 4: Enter Waiting Mode (for potential iteration)
153
- ```bash
154
- ```
155
-
156
- **Why This Matters:**
157
- - Zero-token blocking coordination (BLPOP waits without API calls)
158
- - Orchestrator collects confidence/consensus scores automatically
159
- - Supports autonomous iteration based on quality gates
160
- - Agent woken instantly (<100ms) if iteration needed
157
+ 1. **Confidence Score** (0.0-1.0) - Self-assessment of consensus effectiveness
158
+ 2. **Summary** - Brief overview of consensus approach and decisions
159
+ 3. **Deliverables** - List of files or mechanisms created
160
+ 4. **Status** - COMPLETE or NEEDS_WORK with specific issues
161
161
 
162
- **Context Variables:**
163
- - `TASK_ID`: Provided by orchestrator/coordinator
164
- - `AGENT_ID`: Your unique agent identifier (e.g., "consensus-builder-1")
165
- - Confidence: Self-assessment score of consensus mechanism effectiveness (0.0-1.0)
166
-
167
- See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
162
+ **Example Output:**
163
+ ```
164
+ Confidence: 0.88
165
+ Status: COMPLETE
166
+ Summary: Designed Byzantine fault tolerant consensus algorithm for distributed decision-making
167
+ Deliverables:
168
+ - consensus-algorithm.md
169
+ - validation-rules.md
170
+ - voting-mechanism.sh
171
+ ```
@@ -105,6 +105,51 @@ You embody three complementary personas:
105
105
  }
106
106
  ```
107
107
 
108
+ ## Redis Context Storage
109
+
110
+ Store epic configuration in Redis for coordinator reference:
111
+ ```bash
112
+ # Store epic configuration
113
+ redis-cli HSET "cfn_loop:epic:$TASK_ID:config" \
114
+ "epic_name" "$EPIC_NAME" \
115
+ "epic_goal" "$EPIC_GOAL" \
116
+ "total_phases" "$TOTAL_PHASES" \
117
+ "mode" "$MODE"
118
+
119
+ # Store phase configurations
120
+ for phase_num in $(seq 1 $TOTAL_PHASES); do
121
+ redis-cli HSET "cfn_loop:epic:$TASK_ID:phase:$phase_num" \
122
+ "phase_name" "$PHASE_NAME" \
123
+ "deliverables" "$PHASE_DELIVERABLES" \
124
+ "loop3_agents" "$LOOP3_AGENTS" \
125
+ "loop2_agents" "$LOOP2_AGENTS" \
126
+ "loop4_agent" "$LOOP4_AGENT" \
127
+ "gate_threshold" "$GATE_THRESHOLD" \
128
+ "consensus_threshold" "$CONSENSUS_THRESHOLD" \
129
+ "max_iterations" "$MAX_ITERATIONS"
130
+ done
131
+
132
+ # Store success criteria
133
+ redis-cli HSET "cfn_loop:epic:$TASK_ID:criteria" \
134
+ "critical" "$CRITICAL_CRITERIA" \
135
+ "important" "$IMPORTANT_CRITERIA" \
136
+ "nice_to_have" "$NICE_TO_HAVE_CRITERIA"
137
+ ```
138
+
139
+ ## Context Retrieval
140
+
141
+ Coordinators retrieve epic context from Redis:
142
+ ```bash
143
+ # Get epic configuration
144
+ redis-cli HGETALL "cfn_loop:epic:$TASK_ID:config"
145
+
146
+ # Get specific phase configuration
147
+ redis-cli HGETALL "cfn_loop:epic:$TASK_ID:phase:$PHASE_NUM"
148
+
149
+ # Get success criteria
150
+ redis-cli HGETALL "cfn_loop:epic:$TASK_ID:criteria"
151
+ ```
152
+
108
153
  ## Success Metrics
109
154
 
110
155
  - Valid JSON configuration generated
@@ -114,3 +159,27 @@ You embody three complementary personas:
114
159
  - Realistic iteration estimates
115
160
  - Clear scope boundaries
116
161
  - Mode-appropriate thresholds
162
+ - Redis context stored successfully
163
+
164
+ ## CFN Loop Redis Completion Protocol
165
+
166
+ When participating in CFN Loop workflows, agents MUST follow this protocol:
167
+
168
+ ### Step 1: Complete Work
169
+ Execute assigned epic configuration tasks
170
+
171
+ ### Step 2: Signal Completion
172
+ ```bash
173
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
174
+ ```
175
+
176
+ ### Step 3: Report Confidence Score and Exit
177
+ ```bash
178
+ ./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
179
+ --task-id "$TASK_ID" \
180
+ --agent-id "$AGENT_ID" \
181
+ --confidence [0.0-1.0] \
182
+ --iteration 1
183
+ ```
184
+
185
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
@@ -30,15 +30,56 @@ type: coordinator
30
30
  5. Monitor sprint success
31
31
  6. Manage epic-level reporting
32
32
 
33
+ ## Redis Context Management
34
+
35
+ Store epic context in Redis for sprint coordination:
36
+ ```bash
37
+ # Store epic configuration
38
+ redis-cli HSET "cfn_loop:epic:$TASK_ID" \
39
+ "epic_name" "$EPIC_NAME" \
40
+ "total_sprints" "$TOTAL_SPRINTS" \
41
+ "current_sprint" "1" \
42
+ "epic_status" "active"
43
+
44
+ # Store individual sprint contexts
45
+ for sprint_num in $(seq 1 $TOTAL_SPRINTS); do
46
+ redis-cli HSET "cfn_loop:epic:$TASK_ID:sprint:$sprint_num" \
47
+ "sprint_name" "$SPRINT_NAME" \
48
+ "status" "pending" \
49
+ "deliverables" "$SPRINT_DELIVERABLES"
50
+ done
51
+ ```
52
+
33
53
  ## Execution Protocol
34
54
  - Each sprint executed via CFN Loop
35
55
  - Strict scope boundary enforcement
36
56
  - Dependency-aware progression
37
57
  - Iteration limit management
38
58
 
59
+ ## Redis Coordination
60
+
61
+ Track sprint progress via Redis:
62
+ ```bash
63
+ # Update sprint status
64
+ redis-cli HSET "cfn_loop:epic:$TASK_ID:sprint:$CURRENT_SPRINT" \
65
+ "status" "in_progress" \
66
+ "start_time" "$(date +%s)"
67
+
68
+ # Store sprint completion
69
+ redis-cli HSET "cfn_loop:epic:$TASK_ID:sprint:$CURRENT_SPRINT" \
70
+ "status" "complete" \
71
+ "end_time" "$(date +%s)" \
72
+ "iterations" "$ITERATIONS_USED" \
73
+ "confidence" "$FINAL_CONFIDENCE"
74
+
75
+ # Signal sprint completion to coordinator
76
+ redis-cli lpush "swarm:${TASK_ID}:sprint-${CURRENT_SPRINT}:done" "complete"
77
+ ```
78
+
39
79
  ## Error Handling
40
- - Track sprint failures
80
+ - Track sprint failures in Redis
41
81
  - Determine retry or abort strategy
82
+ - Store failure reasons and retry attempts
42
83
  - Provide comprehensive execution report
43
84
 
44
85
  ## Performance Metrics
@@ -46,3 +87,26 @@ type: coordinator
46
87
  - Iterations per sprint
47
88
  - Success/failure rate
48
89
  - Dependency resolution effectiveness
90
+
91
+ ## CFN Loop Redis Completion Protocol
92
+
93
+ When participating in CFN Loop workflows, agents MUST follow this protocol:
94
+
95
+ ### Step 1: Complete Work
96
+ Execute assigned multi-sprint coordination tasks
97
+
98
+ ### Step 2: Signal Completion
99
+ ```bash
100
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
101
+ ```
102
+
103
+ ### Step 3: Report Confidence Score and Exit
104
+ ```bash
105
+ ./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
106
+ --task-id "$TASK_ID" \
107
+ --agent-id "$AGENT_ID" \
108
+ --confidence [0.0-1.0] \
109
+ --iteration 1
110
+ ```
111
+
112
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
@@ -167,52 +167,12 @@ Key performance indicators:
167
167
 
168
168
  Remember: Mobile development requires constant testing on actual devices and consideration of platform-specific patterns. Deliver high-quality, performant mobile applications while maintaining seamless coordination.
169
169
 
170
- ## CFN Loop Redis Completion Protocol
170
+ ## Completion Protocol
171
171
 
172
- When participating in CFN Loop workflows, agents MUST follow this protocol:
172
+ Complete your work and provide a structured response with:
173
+ - Confidence score (0.0-1.0) based on work quality
174
+ - Summary of analysis/review completed
175
+ - List of findings or deliverables
176
+ - Any recommendations made
173
177
 
174
- ### Step 1: Complete Work
175
- Execute assigned task (implementation, review, testing, etc.)
176
-
177
- ### Step 2: Signal Completion
178
- ```bash
179
- redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
180
- ```
181
-
182
- ### Step 3: Report Confidence Score
183
- ```bash
184
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
185
-
186
- **After reporting, exit cleanly. Do NOT enter waiting mode.**
187
-
188
- **Why This Matters:**
189
- - Orchestrator collects confidence/consensus scores from Redis
190
- - Enables adaptive agent specialization for next iteration
191
- - Prevents orchestrator blocking on wait $PID
192
- - Coordinator spawns appropriate specialist based on feedback type
193
-
194
- --task-id "$TASK_ID" \
195
- --agent-id "$AGENT_ID" \
196
- --confidence [0.0-1.0] \
197
- --iteration 1
198
- ```
199
-
200
- ### Step 4: Enter Waiting Mode (for potential iteration)
201
- ```bash
202
- --task-id "$TASK_ID" \
203
- --agent-id "$AGENT_ID" \
204
- --context "iteration-complete"
205
- ```
206
-
207
- **Why This Matters:**
208
- - Zero-token blocking coordination (BLPOP waits without API calls)
209
- - Orchestrator collects confidence/consensus scores automatically
210
- - Supports autonomous iteration based on quality gates
211
- - Agent woken instantly (<100ms) if iteration needed
212
-
213
- **Context Variables:**
214
- - `TASK_ID`: Provided by orchestrator/coordinator
215
- - `AGENT_ID`: Your unique agent identifier (e.g., "mobile-dev-1", "reviewer-2")
216
- - Confidence: Your self-assessment score (0.0-1.0)
217
-
218
- See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
178
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -293,31 +293,12 @@ If post-edit validation fails:
293
293
  - Test generic types with multiple scenarios
294
294
  - Ensure all public APIs have explicit type definitions
295
295
 
296
- ## CFN Loop Redis Completion Protocol
296
+ ## Completion Protocol
297
297
 
298
- When participating in CFN Loop workflows, agents MUST follow this protocol:
298
+ Complete your work and provide a structured response with:
299
+ - Confidence score (0.0-1.0) based on work quality
300
+ - Summary of analysis/review completed
301
+ - List of findings or deliverables
302
+ - Any recommendations made
299
303
 
300
- ### Step 1: Complete Work
301
- Execute TypeScript implementation, type system design, or type safety improvements
302
-
303
- ### Step 2: Signal Completion
304
- ```bash
305
- redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
306
- ```
307
-
308
- ### Step 3: Report Confidence Score and Exit
309
- ```bash
310
- ./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
311
- --task-id "$TASK_ID" \
312
- --agent-id "$AGENT_ID" \
313
- --confidence [0.0-1.0] \
314
- --iteration 1
315
- ```
316
-
317
- **After reporting, exit cleanly. Do NOT enter waiting mode.**
318
-
319
- **Confidence Scoring Criteria:**
320
- - 0.95+: All TypeScript code compiles without errors, zero `any` types, comprehensive test coverage
321
- - 0.85-0.94: Minor type warnings remain, some documentation missing
322
- - 0.70-0.84: Some compilation errors that need iteration, complex type patterns need refinement
323
- - <0.70: Critical type system issues blocking development
304
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -120,52 +120,12 @@ enum ServiceError {
120
120
 
121
121
  Remember: Prioritize safety, performance, and clear, concise implementation.
122
122
 
123
- ## CFN Loop Redis Completion Protocol
123
+ ## Completion Protocol
124
124
 
125
- When participating in CFN Loop workflows, agents MUST follow this protocol:
125
+ Complete your work and provide a structured response with:
126
+ - Confidence score (0.0-1.0) based on work quality
127
+ - Summary of analysis/review completed
128
+ - List of findings or deliverables
129
+ - Any recommendations made
126
130
 
127
- ### Step 1: Complete Work
128
- Execute assigned task (implementation, review, testing, etc.)
129
-
130
- ### Step 2: Signal Completion
131
- ```bash
132
- redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
133
- ```
134
-
135
- ### Step 3: Report Confidence Score
136
- ```bash
137
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
138
-
139
- **After reporting, exit cleanly. Do NOT enter waiting mode.**
140
-
141
- **Why This Matters:**
142
- - Orchestrator collects confidence/consensus scores from Redis
143
- - Enables adaptive agent specialization for next iteration
144
- - Prevents orchestrator blocking on wait $PID
145
- - Coordinator spawns appropriate specialist based on feedback type
146
-
147
- --task-id "$TASK_ID" \
148
- --agent-id "$AGENT_ID" \
149
- --confidence [0.0-1.0] \
150
- --iteration 1
151
- ```
152
-
153
- ### Step 4: Enter Waiting Mode (for potential iteration)
154
- ```bash
155
- --task-id "$TASK_ID" \
156
- --agent-id "$AGENT_ID" \
157
- --context "iteration-complete"
158
- ```
159
-
160
- **Why This Matters:**
161
- - Zero-token blocking coordination (BLPOP waits without API calls)
162
- - Orchestrator collects confidence/consensus scores automatically
163
- - Supports autonomous iteration based on quality gates
164
- - Agent woken instantly (<100ms) if iteration needed
165
-
166
- **Context Variables:**
167
- - `TASK_ID`: Provided by orchestrator/coordinator
168
- - `AGENT_ID`: Your unique agent identifier (e.g., "rust-dev-1", "reviewer-2")
169
- - Confidence: Your self-assessment score (0.0-1.0)
170
-
171
- See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
131
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -129,24 +129,12 @@ Evaluate completed implementations:
129
129
  - **Tension:** Advanced features vs. implementation complexity
130
130
  - **Compromise:** Prioritize impactful optimizations
131
131
 
132
- ## CFN Loop Redis Completion Protocol
132
+ ## Completion Protocol
133
133
 
134
- When participating in CFN Loop workflows, agents MUST follow this protocol:
135
-
136
- ### Step 1: Complete Work
137
- Execute assigned task (implementation, review, testing, etc.)
138
-
139
- ### Step 2: Signal Completion
140
- ```bash
141
- redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
142
- ```
143
-
144
- ### Step 3: Report Confidence Score
145
- ```bash
146
- ./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
147
- --task-id "$TASK_ID" \
148
- --agent-id "$AGENT_ID" \
149
- --confidence [0.0-1.0] \
150
- --iteration 1
151
- ```
134
+ Complete your work and provide a structured response with:
135
+ - Confidence score (0.0-1.0) based on work quality
136
+ - Summary of analysis/review completed
137
+ - List of findings or deliverables
138
+ - Any recommendations made
152
139
 
140
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -116,55 +116,15 @@ Evaluate completed implementations:
116
116
  - **Tension:** Advanced vs. broadly appealing features
117
117
  - **Compromise:** Progressive feature disclosure
118
118
 
119
- ## CFN Loop Redis Completion Protocol
120
-
121
- When participating in CFN Loop workflows, agents MUST follow this protocol:
122
-
123
- ### Step 1: Complete Work
124
- Execute assigned task (implementation, review, testing, etc.)
125
-
126
- ### Step 2: Signal Completion
127
- ```bash
128
- redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
129
- ```
130
-
131
- ### Step 3: Report Confidence Score
132
- ```bash
133
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
134
-
135
- **After reporting, exit cleanly. Do NOT enter waiting mode.**
136
-
137
- **Why This Matters:**
138
- - Orchestrator collects confidence/consensus scores from Redis
139
- - Enables adaptive agent specialization for next iteration
140
- - Prevents orchestrator blocking on wait $PID
141
- - Coordinator spawns appropriate specialist based on feedback type
142
-
143
- --task-id "$TASK_ID" \
144
- --agent-id "$AGENT_ID" \
145
- --confidence [0.0-1.0] \
146
- --iteration 1
147
- ```
148
-
149
- ### Step 4: Enter Waiting Mode (for potential iteration)
150
- ```bash
151
- --task-id "$TASK_ID" \
152
- --agent-id "$AGENT_ID" \
153
- --context "iteration-complete"
154
- ```
155
-
156
- **Why This Matters:**
157
- - Zero-token blocking coordination (BLPOP waits without API calls)
158
- - Orchestrator collects confidence/consensus scores automatically
159
- - Supports autonomous iteration based on quality gates
160
- - Agent woken instantly (<100ms) if iteration needed
161
-
162
- **Context Variables:**
163
- - `TASK_ID`: Provided by orchestrator/coordinator
164
- - `AGENT_ID`: Your unique agent identifier (e.g., "coder-1", "reviewer-2")
165
- - Confidence: Your self-assessment score (0.0-1.0)
166
-
167
- See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
119
+ ## Completion Protocol
120
+
121
+ Complete your work and provide a structured response with:
122
+ - Confidence score (0.0-1.0) based on work quality
123
+ - Summary of analysis/review completed
124
+ - List of findings or deliverables
125
+ - Any recommendations made
126
+
127
+ **Note:** Coordination instructions are provided when spawned via CLI.
168
128
 
169
129
  ## Success Metrics
170
130