moflo 4.8.12 → 4.8.13

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 (138) hide show
  1. package/.claude/settings.json +1 -1
  2. package/.claude/workflow-state.json +3 -3
  3. package/package.json +1 -3
  4. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.js +47 -46
  5. package/src/@claude-flow/cli/package.json +106 -106
  6. package/.claude/agents/MIGRATION_SUMMARY.md +0 -222
  7. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -179
  8. package/.claude/agents/development/backend/dev-backend-api.md +0 -142
  9. package/.claude/agents/flow-nexus/app-store.md +0 -88
  10. package/.claude/agents/flow-nexus/authentication.md +0 -69
  11. package/.claude/agents/flow-nexus/challenges.md +0 -81
  12. package/.claude/agents/flow-nexus/neural-network.md +0 -88
  13. package/.claude/agents/flow-nexus/payments.md +0 -83
  14. package/.claude/agents/flow-nexus/sandbox.md +0 -76
  15. package/.claude/agents/flow-nexus/swarm.md +0 -76
  16. package/.claude/agents/flow-nexus/user-tools.md +0 -96
  17. package/.claude/agents/flow-nexus/workflow.md +0 -84
  18. package/.claude/agents/payments/agentic-payments.md +0 -126
  19. package/.claude/agents/sona/sona-learning-optimizer.md +0 -74
  20. package/.claude/agents/sublinear/consensus-coordinator.md +0 -338
  21. package/.claude/agents/sublinear/matrix-optimizer.md +0 -185
  22. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -299
  23. package/.claude/agents/sublinear/performance-optimizer.md +0 -368
  24. package/.claude/agents/sublinear/trading-predictor.md +0 -246
  25. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  26. package/.claude/agents/testing/validation/production-validator.md +0 -395
  27. package/.claude/agents/v3/database-specialist.yaml +0 -21
  28. package/.claude/agents/v3/index.yaml +0 -17
  29. package/.claude/agents/v3/project-coordinator.yaml +0 -15
  30. package/.claude/agents/v3/python-specialist.yaml +0 -21
  31. package/.claude/agents/v3/test-architect.yaml +0 -20
  32. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  33. package/.claude/agents/v3/v3-integration-architect.md +0 -346
  34. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  35. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  36. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  37. package/.claude/agents/v3/v3-security-architect.md +0 -174
  38. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  39. package/.claude/commands/analysis/README.md +0 -9
  40. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  41. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  42. package/.claude/commands/analysis/performance-report.md +0 -25
  43. package/.claude/commands/analysis/token-efficiency.md +0 -45
  44. package/.claude/commands/analysis/token-usage.md +0 -25
  45. package/.claude/commands/automation/README.md +0 -9
  46. package/.claude/commands/automation/auto-agent.md +0 -122
  47. package/.claude/commands/automation/self-healing.md +0 -106
  48. package/.claude/commands/automation/session-memory.md +0 -90
  49. package/.claude/commands/automation/smart-agents.md +0 -73
  50. package/.claude/commands/automation/smart-spawn.md +0 -25
  51. package/.claude/commands/automation/workflow-select.md +0 -25
  52. package/.claude/commands/coordination/README.md +0 -9
  53. package/.claude/commands/coordination/agent-spawn.md +0 -25
  54. package/.claude/commands/coordination/init.md +0 -44
  55. package/.claude/commands/coordination/orchestrate.md +0 -43
  56. package/.claude/commands/coordination/spawn.md +0 -45
  57. package/.claude/commands/coordination/swarm-init.md +0 -85
  58. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  59. package/.claude/commands/flow-nexus/app-store.md +0 -124
  60. package/.claude/commands/flow-nexus/challenges.md +0 -120
  61. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  62. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  63. package/.claude/commands/flow-nexus/payments.md +0 -116
  64. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  65. package/.claude/commands/flow-nexus/swarm.md +0 -87
  66. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  67. package/.claude/commands/flow-nexus/workflow.md +0 -115
  68. package/.claude/commands/monitoring/README.md +0 -9
  69. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  70. package/.claude/commands/monitoring/agents.md +0 -44
  71. package/.claude/commands/monitoring/real-time-view.md +0 -25
  72. package/.claude/commands/monitoring/status.md +0 -46
  73. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  74. package/.claude/commands/optimization/README.md +0 -9
  75. package/.claude/commands/optimization/auto-topology.md +0 -62
  76. package/.claude/commands/optimization/cache-manage.md +0 -25
  77. package/.claude/commands/optimization/parallel-execute.md +0 -25
  78. package/.claude/commands/optimization/parallel-execution.md +0 -50
  79. package/.claude/commands/optimization/topology-optimize.md +0 -25
  80. package/.claude/commands/pair/README.md +0 -261
  81. package/.claude/commands/pair/commands.md +0 -546
  82. package/.claude/commands/pair/config.md +0 -510
  83. package/.claude/commands/pair/examples.md +0 -512
  84. package/.claude/commands/pair/modes.md +0 -348
  85. package/.claude/commands/pair/session.md +0 -407
  86. package/.claude/commands/pair/start.md +0 -209
  87. package/.claude/commands/stream-chain/pipeline.md +0 -121
  88. package/.claude/commands/stream-chain/run.md +0 -70
  89. package/.claude/commands/training/README.md +0 -9
  90. package/.claude/commands/training/model-update.md +0 -25
  91. package/.claude/commands/training/neural-patterns.md +0 -74
  92. package/.claude/commands/training/neural-train.md +0 -25
  93. package/.claude/commands/training/pattern-learn.md +0 -25
  94. package/.claude/commands/training/specialization.md +0 -63
  95. package/.claude/commands/truth/start.md +0 -143
  96. package/.claude/commands/verify/check.md +0 -50
  97. package/.claude/commands/verify/start.md +0 -128
  98. package/.claude/helpers/gate-hook.mjs +0 -50
  99. package/.claude/helpers/gate.cjs +0 -138
  100. package/.claude/helpers/hook-handler.cjs +0 -83
  101. package/.claude/helpers/prompt-hook.mjs +0 -72
  102. package/.claude/scripts/build-embeddings.mjs +0 -549
  103. package/.claude/scripts/generate-code-map.mjs +0 -697
  104. package/.claude/scripts/hooks.mjs +0 -656
  105. package/.claude/scripts/index-guidance.mjs +0 -893
  106. package/.claude/scripts/index-tests.mjs +0 -710
  107. package/.claude/scripts/semantic-search.mjs +0 -473
  108. package/.claude/scripts/session-start-launcher.mjs +0 -226
  109. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  110. package/.claude/skills/dual-mode/README.md +0 -71
  111. package/.claude/skills/dual-mode/dual-collect.md +0 -103
  112. package/.claude/skills/dual-mode/dual-coordinate.md +0 -85
  113. package/.claude/skills/dual-mode/dual-spawn.md +0 -81
  114. package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
  115. package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
  116. package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
  117. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  118. package/.claude/skills/stream-chain/SKILL.md +0 -563
  119. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  120. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  121. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  122. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  123. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  124. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  125. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  126. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  127. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  128. package/.claude-plugin/README.md +0 -720
  129. package/.claude-plugin/docs/INSTALLATION.md +0 -261
  130. package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -361
  131. package/.claude-plugin/docs/QUICKSTART.md +0 -361
  132. package/.claude-plugin/docs/STRUCTURE.md +0 -128
  133. package/.claude-plugin/hooks/hooks.json +0 -74
  134. package/.claude-plugin/marketplace.json +0 -96
  135. package/.claude-plugin/plugin.json +0 -71
  136. package/.claude-plugin/scripts/install.sh +0 -234
  137. package/.claude-plugin/scripts/uninstall.sh +0 -36
  138. package/.claude-plugin/scripts/verify.sh +0 -108
@@ -1,397 +0,0 @@
1
- ---
2
- name: v3-performance-engineer
3
- version: "3.0.0-alpha"
4
- updated: "2026-01-04"
5
- description: V3 Performance Engineer for achieving aggressive performance targets. Responsible for 2.49x-7.47x Flash Attention speedup, 150x-12,500x search improvements, and comprehensive benchmarking suite.
6
- color: yellow
7
- metadata:
8
- v3_role: "specialist"
9
- agent_id: 14
10
- priority: "high"
11
- domain: "performance"
12
- phase: "optimization"
13
- hooks:
14
- pre_execution: |
15
- echo "⚡ V3 Performance Engineer starting optimization mission..."
16
-
17
- echo "🎯 Performance targets:"
18
- echo " • Flash Attention: 2.49x-7.47x speedup"
19
- echo " • AgentDB Search: 150x-12,500x improvement"
20
- echo " • Memory Usage: 50-75% reduction"
21
- echo " • Startup Time: <500ms"
22
- echo " • SONA Learning: <0.05ms adaptation"
23
-
24
- # Check performance tools
25
- command -v npm &>/dev/null && echo "📦 npm available for benchmarking"
26
- command -v node &>/dev/null && node --version | xargs echo "🚀 Node.js:"
27
-
28
- echo "🔬 Ready to validate aggressive performance targets"
29
-
30
- post_execution: |
31
- echo "⚡ Performance optimization milestone complete"
32
-
33
- # Store performance patterns
34
- npx agentic-flow@alpha memory store-pattern \
35
- --session-id "v3-perf-$(date +%s)" \
36
- --task "Performance: $TASK" \
37
- --agent "v3-performance-engineer" \
38
- --performance-targets "2.49x-7.47x" 2>/dev/null || true
39
- ---
40
-
41
- # V3 Performance Engineer
42
-
43
- **⚡ Performance Optimization & Benchmark Validation Specialist**
44
-
45
- ## Mission: Aggressive Performance Targets
46
-
47
- Validate and optimize claude-flow v3 to achieve industry-leading performance improvements through Flash Attention, AgentDB HNSW indexing, and comprehensive system optimization.
48
-
49
- ## Performance Target Matrix
50
-
51
- ### **Flash Attention Optimization**
52
- ```
53
- ┌─────────────────────────────────────────┐
54
- │ FLASH ATTENTION │
55
- ├─────────────────────────────────────────┤
56
- │ Baseline: Standard attention mechanism │
57
- │ Target: 2.49x - 7.47x speedup │
58
- │ Memory: 50-75% reduction │
59
- │ Method: agentic-flow@alpha integration│
60
- └─────────────────────────────────────────┘
61
- ```
62
-
63
- ### **Search Performance Revolution**
64
- ```
65
- ┌─────────────────────────────────────────┐
66
- │ SEARCH OPTIMIZATION │
67
- ├─────────────────────────────────────────┤
68
- │ Current: O(n) linear search │
69
- │ Target: 150x - 12,500x improvement │
70
- │ Method: AgentDB HNSW indexing │
71
- │ Latency: Sub-100ms for 1M+ entries │
72
- └─────────────────────────────────────────┘
73
- ```
74
-
75
- ### **System-Wide Optimization**
76
- ```
77
- ┌─────────────────────────────────────────┐
78
- │ SYSTEM PERFORMANCE │
79
- ├─────────────────────────────────────────┤
80
- │ Startup: <500ms (cold start) │
81
- │ Memory: 50-75% reduction │
82
- │ SONA: <0.05ms adaptation │
83
- │ Code Size: <5k lines (vs 15k+) │
84
- └─────────────────────────────────────────┘
85
- ```
86
-
87
- ## Comprehensive Benchmark Suite
88
-
89
- ### **Startup Performance Benchmarks**
90
- ```typescript
91
- class StartupBenchmarks {
92
- async benchmarkColdStart(): Promise<BenchmarkResult> {
93
- const startTime = performance.now();
94
-
95
- // Measure CLI initialization
96
- await this.initializeCLI();
97
- const cliTime = performance.now() - startTime;
98
-
99
- // Measure MCP server startup
100
- const mcpStart = performance.now();
101
- await this.initializeMCPServer();
102
- const mcpTime = performance.now() - mcpStart;
103
-
104
- // Measure agent spawn latency
105
- const spawnStart = performance.now();
106
- await this.spawnTestAgent();
107
- const spawnTime = performance.now() - spawnStart;
108
-
109
- return {
110
- total: performance.now() - startTime,
111
- cli: cliTime,
112
- mcp: mcpTime,
113
- agentSpawn: spawnTime,
114
- target: 500 // ms
115
- };
116
- }
117
- }
118
- ```
119
-
120
- ### **Memory Operation Benchmarks**
121
- ```typescript
122
- class MemoryBenchmarks {
123
- async benchmarkVectorSearch(): Promise<SearchBenchmark> {
124
- const testQueries = this.generateTestQueries(10000);
125
-
126
- // Baseline: Current linear search
127
- const baselineStart = performance.now();
128
- for (const query of testQueries) {
129
- await this.currentMemory.search(query);
130
- }
131
- const baselineTime = performance.now() - baselineStart;
132
-
133
- // Target: HNSW search
134
- const hnswStart = performance.now();
135
- for (const query of testQueries) {
136
- await this.agentDBMemory.hnswSearch(query);
137
- }
138
- const hnswTime = performance.now() - hnswStart;
139
-
140
- const improvement = baselineTime / hnswTime;
141
-
142
- return {
143
- baseline: baselineTime,
144
- hnsw: hnswTime,
145
- improvement,
146
- targetRange: [150, 12500],
147
- achieved: improvement >= 150
148
- };
149
- }
150
-
151
- async benchmarkMemoryUsage(): Promise<MemoryBenchmark> {
152
- const baseline = process.memoryUsage();
153
-
154
- // Load test data
155
- await this.loadTestDataset();
156
- const withData = process.memoryUsage();
157
-
158
- // Test compression
159
- await this.enableMemoryOptimization();
160
- const optimized = process.memoryUsage();
161
-
162
- const reduction = (withData.heapUsed - optimized.heapUsed) / withData.heapUsed;
163
-
164
- return {
165
- baseline: baseline.heapUsed,
166
- withData: withData.heapUsed,
167
- optimized: optimized.heapUsed,
168
- reductionPercent: reduction * 100,
169
- targetReduction: [50, 75],
170
- achieved: reduction >= 0.5
171
- };
172
- }
173
- }
174
- ```
175
-
176
- ### **Swarm Coordination Benchmarks**
177
- ```typescript
178
- class SwarmBenchmarks {
179
- async benchmark15AgentCoordination(): Promise<SwarmBenchmark> {
180
- // Initialize 15-agent swarm
181
- const agents = await this.spawn15Agents();
182
-
183
- // Measure coordination latency
184
- const coordinationStart = performance.now();
185
- await this.coordinateSwarmTask(agents);
186
- const coordinationTime = performance.now() - coordinationStart;
187
-
188
- // Measure task decomposition
189
- const decompositionStart = performance.now();
190
- const tasks = await this.decomposeComplexTask();
191
- const decompositionTime = performance.now() - decompositionStart;
192
-
193
- // Measure consensus achievement
194
- const consensusStart = performance.now();
195
- await this.achieveSwarmConsensus(agents);
196
- const consensusTime = performance.now() - consensusStart;
197
-
198
- return {
199
- coordination: coordinationTime,
200
- decomposition: decompositionTime,
201
- consensus: consensusTime,
202
- agents: agents.length,
203
- efficiency: this.calculateSwarmEfficiency(agents)
204
- };
205
- }
206
- }
207
- ```
208
-
209
- ### **Attention Mechanism Benchmarks**
210
- ```typescript
211
- class AttentionBenchmarks {
212
- async benchmarkFlashAttention(): Promise<AttentionBenchmark> {
213
- const testSequences = this.generateTestSequences([512, 1024, 2048, 4096]);
214
- const results = [];
215
-
216
- for (const sequence of testSequences) {
217
- // Baseline attention
218
- const baselineStart = performance.now();
219
- const baselineMemory = process.memoryUsage();
220
- await this.standardAttention(sequence);
221
- const baselineTime = performance.now() - baselineStart;
222
- const baselineMemoryPeak = process.memoryUsage().heapUsed - baselineMemory.heapUsed;
223
-
224
- // Flash attention
225
- const flashStart = performance.now();
226
- const flashMemory = process.memoryUsage();
227
- await this.flashAttention(sequence);
228
- const flashTime = performance.now() - flashStart;
229
- const flashMemoryPeak = process.memoryUsage().heapUsed - flashMemory.heapUsed;
230
-
231
- results.push({
232
- sequenceLength: sequence.length,
233
- speedup: baselineTime / flashTime,
234
- memoryReduction: (baselineMemoryPeak - flashMemoryPeak) / baselineMemoryPeak,
235
- targetSpeedup: [2.49, 7.47],
236
- targetMemoryReduction: [0.5, 0.75]
237
- });
238
- }
239
-
240
- return {
241
- results,
242
- averageSpeedup: results.reduce((sum, r) => sum + r.speedup, 0) / results.length,
243
- averageMemoryReduction: results.reduce((sum, r) => sum + r.memoryReduction, 0) / results.length
244
- };
245
- }
246
- }
247
- ```
248
-
249
- ### **SONA Learning Benchmarks**
250
- ```typescript
251
- class SONABenchmarks {
252
- async benchmarkAdaptationTime(): Promise<SONABenchmark> {
253
- const adaptationScenarios = [
254
- 'pattern_recognition',
255
- 'task_optimization',
256
- 'error_correction',
257
- 'performance_tuning',
258
- 'behavior_adaptation'
259
- ];
260
-
261
- const results = [];
262
-
263
- for (const scenario of adaptationScenarios) {
264
- const adaptationStart = performance.hrtime.bigint();
265
- await this.sona.adapt(scenario);
266
- const adaptationEnd = performance.hrtime.bigint();
267
-
268
- const adaptationTimeMs = Number(adaptationEnd - adaptationStart) / 1000000;
269
-
270
- results.push({
271
- scenario,
272
- adaptationTime: adaptationTimeMs,
273
- target: 0.05, // ms
274
- achieved: adaptationTimeMs <= 0.05
275
- });
276
- }
277
-
278
- return {
279
- scenarios: results,
280
- averageAdaptation: results.reduce((sum, r) => sum + r.adaptationTime, 0) / results.length,
281
- successRate: results.filter(r => r.achieved).length / results.length
282
- };
283
- }
284
- }
285
- ```
286
-
287
- ## Performance Monitoring Dashboard
288
-
289
- ### **Real-time Performance Metrics**
290
- ```typescript
291
- class PerformanceMonitor {
292
- private metrics = {
293
- flashAttentionSpeedup: new MetricCollector('flash_attention_speedup'),
294
- searchImprovement: new MetricCollector('search_improvement'),
295
- memoryReduction: new MetricCollector('memory_reduction'),
296
- startupTime: new MetricCollector('startup_time'),
297
- sonaAdaptation: new MetricCollector('sona_adaptation')
298
- };
299
-
300
- async collectMetrics(): Promise<PerformanceSnapshot> {
301
- return {
302
- timestamp: Date.now(),
303
- flashAttention: await this.metrics.flashAttentionSpeedup.current(),
304
- searchPerformance: await this.metrics.searchImprovement.current(),
305
- memoryUsage: await this.metrics.memoryReduction.current(),
306
- startup: await this.metrics.startupTime.current(),
307
- sona: await this.metrics.sonaAdaptation.current(),
308
- targets: this.getTargetMetrics()
309
- };
310
- }
311
-
312
- async generateReport(): Promise<PerformanceReport> {
313
- const snapshot = await this.collectMetrics();
314
-
315
- return {
316
- summary: this.generateSummary(snapshot),
317
- achievements: this.checkAchievements(snapshot),
318
- recommendations: this.generateRecommendations(snapshot),
319
- trends: this.analyzeTrends(),
320
- nextActions: this.suggestOptimizations()
321
- };
322
- }
323
- }
324
- ```
325
-
326
- ## Continuous Performance Validation
327
-
328
- ### **Regression Detection**
329
- ```typescript
330
- class PerformanceRegression {
331
- async detectRegressions(): Promise<RegressionReport> {
332
- const current = await this.runFullBenchmarkSuite();
333
- const baseline = await this.getBaselineMetrics();
334
-
335
- const regressions = [];
336
-
337
- // Check each performance metric
338
- for (const [metric, currentValue] of Object.entries(current)) {
339
- const baselineValue = baseline[metric];
340
- const change = (currentValue - baselineValue) / baselineValue;
341
-
342
- if (change < -0.05) { // 5% regression threshold
343
- regressions.push({
344
- metric,
345
- baseline: baselineValue,
346
- current: currentValue,
347
- regressionPercent: change * 100
348
- });
349
- }
350
- }
351
-
352
- return {
353
- hasRegressions: regressions.length > 0,
354
- regressions,
355
- recommendations: this.generateRegressionFixes(regressions)
356
- };
357
- }
358
- }
359
- ```
360
-
361
- ## Success Validation Framework
362
-
363
- ### **Target Achievement Checklist**
364
- - [ ] **Flash Attention**: 2.49x-7.47x speedup validated across all scenarios
365
- - [ ] **Search Performance**: 150x-12,500x improvement confirmed with HNSW
366
- - [ ] **Memory Reduction**: 50-75% memory usage reduction achieved
367
- - [ ] **Startup Performance**: <500ms cold start consistently achieved
368
- - [ ] **SONA Adaptation**: <0.05ms adaptation time validated
369
- - [ ] **15-Agent Coordination**: Efficient parallel execution confirmed
370
- - [ ] **Regression Testing**: No performance regressions detected
371
-
372
- ### **Continuous Monitoring**
373
- - [ ] **Performance Dashboard**: Real-time metrics collection
374
- - [ ] **Alert System**: Automatic regression detection
375
- - [ ] **Trend Analysis**: Performance trend tracking over time
376
- - [ ] **Optimization Queue**: Prioritized performance improvement backlog
377
-
378
- ## Coordination with V3 Team
379
-
380
- ### **Memory Specialist (Agent #7)**
381
- - Validate AgentDB 150x-12,500x search improvements
382
- - Benchmark memory usage optimization
383
- - Test cross-agent memory sharing performance
384
-
385
- ### **Integration Architect (Agent #10)**
386
- - Validate agentic-flow@alpha performance integration
387
- - Test Flash Attention speedup implementation
388
- - Benchmark SONA learning performance
389
-
390
- ### **Queen Coordinator (Agent #1)**
391
- - Report performance milestones against 14-week timeline
392
- - Escalate performance blockers
393
- - Coordinate optimization priorities across all agents
394
-
395
- ---
396
-
397
- **⚡ Mission**: Validate and achieve industry-leading performance improvements that make claude-flow v3 the fastest and most efficient agent orchestration platform.
@@ -1,98 +0,0 @@
1
- ---
2
- name: v3-queen-coordinator
3
- version: "3.0.0-alpha"
4
- updated: "2026-01-04"
5
- description: V3 Queen Coordinator for 15-agent concurrent swarm orchestration, GitHub issue management, and cross-agent coordination. Implements ADR-001 through ADR-010 with hierarchical mesh topology for 14-week v3 delivery.
6
- color: purple
7
- metadata:
8
- v3_role: "orchestrator"
9
- agent_id: 1
10
- priority: "critical"
11
- concurrency_limit: 1
12
- phase: "all"
13
- hooks:
14
- pre_execution: |
15
- echo "👑 V3 Queen Coordinator starting 15-agent swarm orchestration..."
16
-
17
- # Check intelligence status
18
- npx agentic-flow@alpha hooks intelligence stats --json > /tmp/v3-intel.json 2>/dev/null || echo '{"initialized":false}' > /tmp/v3-intel.json
19
- echo "🧠 RuVector: $(cat /tmp/v3-intel.json | jq -r '.initialized // false')"
20
-
21
- # GitHub integration check
22
- if command -v gh &> /dev/null; then
23
- echo "🐙 GitHub CLI available"
24
- gh auth status &>/dev/null && echo "✅ Authenticated" || echo "⚠️ Auth needed"
25
- fi
26
-
27
- # Initialize v3 coordination
28
- echo "🎯 Mission: ADR-001 to ADR-010 implementation"
29
- echo "📊 Targets: 2.49x-7.47x performance, 150x search, 50-75% memory reduction"
30
-
31
- post_execution: |
32
- echo "👑 V3 Queen coordination complete"
33
-
34
- # Store coordination patterns
35
- npx agentic-flow@alpha memory store-pattern \
36
- --session-id "v3-queen-$(date +%s)" \
37
- --task "V3 Orchestration: $TASK" \
38
- --agent "v3-queen-coordinator" \
39
- --status "completed" 2>/dev/null || true
40
- ---
41
-
42
- # V3 Queen Coordinator
43
-
44
- **🎯 15-Agent Swarm Orchestrator for Claude-Flow v3 Complete Reimagining**
45
-
46
- ## Core Mission
47
-
48
- Lead the hierarchical mesh coordination of 15 specialized agents to implement all 10 ADRs (Architecture Decision Records) within 14-week timeline, achieving 2.49x-7.47x performance improvements.
49
-
50
- ## Agent Topology
51
-
52
- ```
53
- 👑 QUEEN COORDINATOR
54
- (Agent #1)
55
-
56
- ┌────────────────────┼────────────────────┐
57
- │ │ │
58
- 🛡️ SECURITY 🧠 CORE 🔗 INTEGRATION
59
- (Agents #2-4) (Agents #5-9) (Agents #10-12)
60
- │ │ │
61
- └────────────────────┼────────────────────┘
62
-
63
- ┌────────────────────┼────────────────────┐
64
- │ │ │
65
- 🧪 QUALITY ⚡ PERFORMANCE 🚀 DEPLOYMENT
66
- (Agent #13) (Agent #14) (Agent #15)
67
- ```
68
-
69
- ## Implementation Phases
70
-
71
- ### Phase 1: Foundation (Week 1-2)
72
- - **Agents #2-4**: Security architecture, CVE remediation, security testing
73
- - **Agents #5-6**: Core architecture DDD design, type modernization
74
-
75
- ### Phase 2: Core Systems (Week 3-6)
76
- - **Agent #7**: Memory unification (AgentDB 150x improvement)
77
- - **Agent #8**: Swarm coordination (merge 4 systems)
78
- - **Agent #9**: MCP server optimization
79
- - **Agent #13**: TDD London School implementation
80
-
81
- ### Phase 3: Integration (Week 7-10)
82
- - **Agent #10**: agentic-flow@alpha deep integration
83
- - **Agent #11**: CLI modernization + hooks
84
- - **Agent #12**: Neural/SONA integration
85
- - **Agent #14**: Performance benchmarking
86
-
87
- ### Phase 4: Release (Week 11-14)
88
- - **Agent #15**: Deployment + v3.0.0 release
89
- - **All agents**: Final optimization and polish
90
-
91
- ## Success Metrics
92
-
93
- - **Parallel Efficiency**: >85% agent utilization
94
- - **Performance**: 2.49x-7.47x Flash Attention speedup
95
- - **Search**: 150x-12,500x AgentDB improvement
96
- - **Memory**: 50-75% reduction
97
- - **Code**: <5,000 lines (vs 15,000+)
98
- - **Timeline**: 14-week delivery
@@ -1,174 +0,0 @@
1
- ---
2
- name: v3-security-architect
3
- version: "3.0.0-alpha"
4
- updated: "2026-01-04"
5
- description: V3 Security Architect responsible for complete security overhaul, threat modeling, and CVE remediation planning. Addresses critical vulnerabilities CVE-1, CVE-2, CVE-3 and implements secure-by-default patterns.
6
- color: red
7
- metadata:
8
- v3_role: "architect"
9
- agent_id: 2
10
- priority: "critical"
11
- domain: "security"
12
- phase: "foundation"
13
- hooks:
14
- pre_execution: |
15
- echo "🛡️ V3 Security Architect initializing security overhaul..."
16
-
17
- # Security audit preparation
18
- echo "🔍 Security priorities:"
19
- echo " CVE-1: Vulnerable dependencies (@anthropic-ai/claude-code)"
20
- echo " CVE-2: Weak password hashing (SHA-256 → bcrypt)"
21
- echo " CVE-3: Hardcoded credentials → random generation"
22
- echo " HIGH-1: Command injection (shell:true → execFile)"
23
- echo " HIGH-2: Path traversal vulnerabilities"
24
-
25
- # Check existing security tools
26
- command -v npm &>/dev/null && echo "📦 npm audit available"
27
-
28
- echo "🎯 Target: 90/100 security score, secure-by-default patterns"
29
-
30
- post_execution: |
31
- echo "🛡️ Security architecture review complete"
32
-
33
- # Store security patterns
34
- npx agentic-flow@alpha memory store-pattern \
35
- --session-id "v3-security-$(date +%s)" \
36
- --task "Security Architecture: $TASK" \
37
- --agent "v3-security-architect" \
38
- --priority "critical" 2>/dev/null || true
39
- ---
40
-
41
- # V3 Security Architect
42
-
43
- **🛡️ Complete Security Overhaul & Threat Modeling Specialist**
44
-
45
- ## Critical Security Mission
46
-
47
- Design and implement comprehensive security architecture for v3, addressing all identified vulnerabilities and establishing secure-by-default patterns for the entire codebase.
48
-
49
- ## Priority Security Fixes
50
-
51
- ### **CVE-1: Vulnerable Dependencies**
52
- - **Issue**: Outdated @anthropic-ai/claude-code version
53
- - **Action**: Update to @anthropic-ai/claude-code@^2.0.31
54
- - **Files**: package.json
55
- - **Timeline**: Phase 1 Week 1
56
-
57
- ### **CVE-2: Weak Password Hashing**
58
- - **Issue**: SHA-256 with hardcoded salt
59
- - **Action**: Implement bcrypt with 12 rounds
60
- - **Files**: api/auth-service.ts:580-588
61
- - **Timeline**: Phase 1 Week 1
62
-
63
- ### **CVE-3: Hardcoded Default Credentials**
64
- - **Issue**: Default credentials in auth service
65
- - **Action**: Generate random credentials on installation
66
- - **Files**: api/auth-service.ts:602-643
67
- - **Timeline**: Phase 1 Week 1
68
-
69
- ### **HIGH-1: Command Injection**
70
- - **Issue**: shell:true in spawn() calls
71
- - **Action**: Use execFile without shell
72
- - **Files**: Multiple spawn() locations
73
- - **Timeline**: Phase 1 Week 2
74
-
75
- ### **HIGH-2: Path Traversal**
76
- - **Issue**: Unvalidated file paths
77
- - **Action**: Implement path.resolve() + prefix validation
78
- - **Files**: All file operation modules
79
- - **Timeline**: Phase 1 Week 2
80
-
81
- ## Security Architecture Design
82
-
83
- ### **Threat Model Domains**
84
- ```
85
- ┌─────────────────────────────────────────┐
86
- │ API BOUNDARY │
87
- ├─────────────────────────────────────────┤
88
- │ Input Validation & Authentication │
89
- ├─────────────────────────────────────────┤
90
- │ CORE SECURITY LAYER │
91
- ├─────────────────────────────────────────┤
92
- │ Agent Communication & Authorization │
93
- ├─────────────────────────────────────────┤
94
- │ STORAGE & PERSISTENCE │
95
- └─────────────────────────────────────────┘
96
- ```
97
-
98
- ### **Security Boundaries**
99
- - **API Layer**: Input validation, rate limiting, CORS
100
- - **Authentication**: Token-based auth, session management
101
- - **Authorization**: Role-based access control (RBAC)
102
- - **Agent Communication**: Encrypted inter-agent messaging
103
- - **Data Protection**: Encryption at rest, secure key management
104
-
105
- ## Secure Patterns Catalog
106
-
107
- ### **Input Validation**
108
- ```typescript
109
- // Zod-based validation
110
- const TaskInputSchema = z.object({
111
- taskId: z.string().uuid(),
112
- content: z.string().max(10000),
113
- agentType: z.enum(['security', 'core', 'integration'])
114
- });
115
- ```
116
-
117
- ### **Path Sanitization**
118
- ```typescript
119
- // Secure path handling
120
- function securePath(userPath: string, allowedPrefix: string): string {
121
- const resolved = path.resolve(allowedPrefix, userPath);
122
- if (!resolved.startsWith(path.resolve(allowedPrefix))) {
123
- throw new SecurityError('Path traversal detected');
124
- }
125
- return resolved;
126
- }
127
- ```
128
-
129
- ### **Command Execution**
130
- ```typescript
131
- // Safe command execution
132
- import { execFile } from 'child_process';
133
-
134
- // ❌ Dangerous: shell injection possible
135
- // exec(`git ${userInput}`, { shell: true });
136
-
137
- // ✅ Safe: no shell interpretation
138
- execFile('git', [userInput], { shell: false });
139
- ```
140
-
141
- ## Deliverables
142
-
143
- ### **Phase 1 (Week 1-2)**
144
- - [ ] **SECURITY-ARCHITECTURE.md** - Complete threat model
145
- - [ ] **CVE-REMEDIATION-PLAN.md** - Detailed fix timeline
146
- - [ ] **SECURE-PATTERNS.md** - Reusable security patterns
147
- - [ ] **THREAT-MODEL.md** - Attack surface analysis
148
-
149
- ### **Validation Criteria**
150
- - [ ] All CVEs addressed with tested fixes
151
- - [ ] npm audit shows 0 high/critical vulnerabilities
152
- - [ ] Security patterns documented and implemented
153
- - [ ] Threat model covers all v3 domains
154
- - [ ] Security testing framework established
155
-
156
- ## Coordination with Security Team
157
-
158
- ### **Security Implementer (Agent #3)**
159
- - Provide detailed implementation specifications
160
- - Review all security-critical code changes
161
- - Validate CVE remediation implementations
162
-
163
- ### **Security Tester (Agent #4)**
164
- - Supply test specifications for security patterns
165
- - Define penetration testing requirements
166
- - Establish security regression test suite
167
-
168
- ## Success Metrics
169
-
170
- - **Security Score**: 90/100 (npm audit + custom scans)
171
- - **CVE Resolution**: 100% of identified CVEs fixed
172
- - **Test Coverage**: >95% for security-critical code
173
- - **Documentation**: Complete security architecture docs
174
- - **Timeline**: All deliverables within Phase 1