claude-flow-novice 2.10.9 → 2.12.0

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 (180) hide show
  1. package/.claude/commands/README.md +157 -0
  2. package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
  3. package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
  4. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  5. package/.claude/skills/cfn-changelog-management/SKILL.md +349 -0
  6. package/.claude/skills/cfn-changelog-management/add-changelog-entry.sh +200 -0
  7. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -21
  8. package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +312 -0
  9. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +480 -115
  10. package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
  11. package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
  12. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  13. package/claude-assets/skills/cfn-changelog-management/SKILL.md +349 -0
  14. package/claude-assets/skills/cfn-changelog-management/add-changelog-entry.sh +200 -0
  15. package/dist/cli/config-manager.js.map +1 -1
  16. package/package.json +4 -2
  17. package/scripts/init-project.js +38 -3
  18. package/claude-assets/commands/agents/README.md +0 -10
  19. package/claude-assets/commands/agents/agent-capabilities.md +0 -21
  20. package/claude-assets/commands/agents/agent-coordination.md +0 -28
  21. package/claude-assets/commands/agents/agent-spawning.md +0 -28
  22. package/claude-assets/commands/agents/agent-types.md +0 -26
  23. package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  24. package/claude-assets/commands/analysis/README.md +0 -9
  25. package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
  26. package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
  27. package/claude-assets/commands/analysis/performance-report.md +0 -25
  28. package/claude-assets/commands/analysis/token-efficiency.md +0 -45
  29. package/claude-assets/commands/analysis/token-usage.md +0 -25
  30. package/claude-assets/commands/automation/README.md +0 -9
  31. package/claude-assets/commands/automation/auto-agent.md +0 -122
  32. package/claude-assets/commands/automation/self-healing.md +0 -106
  33. package/claude-assets/commands/automation/session-memory.md +0 -90
  34. package/claude-assets/commands/automation/smart-agents.md +0 -73
  35. package/claude-assets/commands/automation/smart-spawn.md +0 -25
  36. package/claude-assets/commands/automation/workflow-select.md +0 -25
  37. package/claude-assets/commands/claude-md.js +0 -237
  38. package/claude-assets/commands/claude-soul.js +0 -28
  39. package/claude-assets/commands/cli-integration.js +0 -216
  40. package/claude-assets/commands/coordination/README.md +0 -9
  41. package/claude-assets/commands/coordination/agent-spawn.md +0 -25
  42. package/claude-assets/commands/coordination/coordination-system.md +0 -88
  43. package/claude-assets/commands/coordination/init.md +0 -44
  44. package/claude-assets/commands/coordination/orchestrate.md +0 -43
  45. package/claude-assets/commands/coordination/spawn.md +0 -45
  46. package/claude-assets/commands/coordination/swarm-init.md +0 -85
  47. package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
  48. package/claude-assets/commands/github/README.md +0 -11
  49. package/claude-assets/commands/github/code-review-swarm.md +0 -514
  50. package/claude-assets/commands/github/code-review.md +0 -25
  51. package/claude-assets/commands/github/github-modes.md +0 -147
  52. package/claude-assets/commands/github/github-swarm.md +0 -121
  53. package/claude-assets/commands/github/issue-tracker.md +0 -292
  54. package/claude-assets/commands/github/issue-triage.md +0 -25
  55. package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
  56. package/claude-assets/commands/github/pr-enhance.md +0 -26
  57. package/claude-assets/commands/github/pr-manager.md +0 -170
  58. package/claude-assets/commands/github/project-board-sync.md +0 -471
  59. package/claude-assets/commands/github/release-manager.md +0 -338
  60. package/claude-assets/commands/github/release-swarm.md +0 -544
  61. package/claude-assets/commands/github/repo-analyze.md +0 -25
  62. package/claude-assets/commands/github/repo-architect.md +0 -367
  63. package/claude-assets/commands/github/swarm-issue.md +0 -482
  64. package/claude-assets/commands/github/swarm-pr.md +0 -285
  65. package/claude-assets/commands/github/sync-coordinator.md +0 -301
  66. package/claude-assets/commands/github/workflow-automation.md +0 -442
  67. package/claude-assets/commands/github.js +0 -638
  68. package/claude-assets/commands/hive-mind/README.md +0 -17
  69. package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
  70. package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
  71. package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
  72. package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
  73. package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
  74. package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
  75. package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
  76. package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
  77. package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
  78. package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
  79. package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
  80. package/claude-assets/commands/hooks/README.md +0 -11
  81. package/claude-assets/commands/hooks/overview.md +0 -58
  82. package/claude-assets/commands/hooks/post-edit.md +0 -117
  83. package/claude-assets/commands/hooks/post-task.md +0 -112
  84. package/claude-assets/commands/hooks/pre-edit.md +0 -113
  85. package/claude-assets/commands/hooks/pre-task.md +0 -111
  86. package/claude-assets/commands/hooks/session-end.md +0 -118
  87. package/claude-assets/commands/hooks/session-start.md +0 -9
  88. package/claude-assets/commands/hooks/setup.md +0 -103
  89. package/claude-assets/commands/hooks.js +0 -651
  90. package/claude-assets/commands/index.js +0 -119
  91. package/claude-assets/commands/memory/README.md +0 -9
  92. package/claude-assets/commands/memory/memory-bank.md +0 -58
  93. package/claude-assets/commands/memory/memory-persist.md +0 -25
  94. package/claude-assets/commands/memory/memory-search.md +0 -25
  95. package/claude-assets/commands/memory/memory-usage.md +0 -25
  96. package/claude-assets/commands/memory/neural.md +0 -47
  97. package/claude-assets/commands/memory/usage.md +0 -46
  98. package/claude-assets/commands/monitoring/README.md +0 -9
  99. package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
  100. package/claude-assets/commands/monitoring/agents.md +0 -44
  101. package/claude-assets/commands/monitoring/real-time-view.md +0 -25
  102. package/claude-assets/commands/monitoring/status.md +0 -46
  103. package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
  104. package/claude-assets/commands/neural.js +0 -572
  105. package/claude-assets/commands/optimization/README.md +0 -9
  106. package/claude-assets/commands/optimization/auto-topology.md +0 -62
  107. package/claude-assets/commands/optimization/cache-manage.md +0 -25
  108. package/claude-assets/commands/optimization/parallel-execute.md +0 -25
  109. package/claude-assets/commands/optimization/parallel-execution.md +0 -50
  110. package/claude-assets/commands/optimization/topology-optimize.md +0 -25
  111. package/claude-assets/commands/pair/README.md +0 -261
  112. package/claude-assets/commands/pair/commands.md +0 -546
  113. package/claude-assets/commands/pair/config.md +0 -510
  114. package/claude-assets/commands/pair/examples.md +0 -512
  115. package/claude-assets/commands/pair/modes.md +0 -348
  116. package/claude-assets/commands/pair/session.md +0 -407
  117. package/claude-assets/commands/pair/start.md +0 -209
  118. package/claude-assets/commands/parse-epic.js +0 -180
  119. package/claude-assets/commands/performance.js +0 -582
  120. package/claude-assets/commands/register-all-commands.js +0 -320
  121. package/claude-assets/commands/register-claude-md.js +0 -82
  122. package/claude-assets/commands/register-claude-soul.js +0 -80
  123. package/claude-assets/commands/sparc/analyzer.md +0 -52
  124. package/claude-assets/commands/sparc/architect.md +0 -53
  125. package/claude-assets/commands/sparc/batch-executor.md +0 -54
  126. package/claude-assets/commands/sparc/coder.md +0 -54
  127. package/claude-assets/commands/sparc/debugger.md +0 -54
  128. package/claude-assets/commands/sparc/designer.md +0 -53
  129. package/claude-assets/commands/sparc/documenter.md +0 -54
  130. package/claude-assets/commands/sparc/innovator.md +0 -54
  131. package/claude-assets/commands/sparc/memory-manager.md +0 -54
  132. package/claude-assets/commands/sparc/optimizer.md +0 -54
  133. package/claude-assets/commands/sparc/orchestrator.md +0 -132
  134. package/claude-assets/commands/sparc/researcher.md +0 -54
  135. package/claude-assets/commands/sparc/reviewer.md +0 -54
  136. package/claude-assets/commands/sparc/sparc-modes.md +0 -174
  137. package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
  138. package/claude-assets/commands/sparc/tdd.md +0 -54
  139. package/claude-assets/commands/sparc/tester.md +0 -54
  140. package/claude-assets/commands/sparc/workflow-manager.md +0 -54
  141. package/claude-assets/commands/sparc.js +0 -110
  142. package/claude-assets/commands/stream-chain/pipeline.md +0 -121
  143. package/claude-assets/commands/stream-chain/run.md +0 -70
  144. package/claude-assets/commands/swarm/README.md +0 -15
  145. package/claude-assets/commands/swarm/analysis.md +0 -95
  146. package/claude-assets/commands/swarm/development.md +0 -96
  147. package/claude-assets/commands/swarm/examples.md +0 -168
  148. package/claude-assets/commands/swarm/maintenance.md +0 -102
  149. package/claude-assets/commands/swarm/optimization.md +0 -117
  150. package/claude-assets/commands/swarm/research.md +0 -136
  151. package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
  152. package/claude-assets/commands/swarm/swarm-background.md +0 -8
  153. package/claude-assets/commands/swarm/swarm-init.md +0 -19
  154. package/claude-assets/commands/swarm/swarm-modes.md +0 -8
  155. package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
  156. package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
  157. package/claude-assets/commands/swarm/swarm-status.md +0 -8
  158. package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
  159. package/claude-assets/commands/swarm/swarm.md +0 -27
  160. package/claude-assets/commands/swarm/testing.md +0 -131
  161. package/claude-assets/commands/swarm.js +0 -423
  162. package/claude-assets/commands/testing/playwright-e2e.md +0 -288
  163. package/claude-assets/commands/training/README.md +0 -9
  164. package/claude-assets/commands/training/model-update.md +0 -25
  165. package/claude-assets/commands/training/neural-patterns.md +0 -74
  166. package/claude-assets/commands/training/neural-train.md +0 -25
  167. package/claude-assets/commands/training/pattern-learn.md +0 -25
  168. package/claude-assets/commands/training/specialization.md +0 -63
  169. package/claude-assets/commands/truth/start.md +0 -143
  170. package/claude-assets/commands/validate-commands.js +0 -223
  171. package/claude-assets/commands/verify/check.md +0 -50
  172. package/claude-assets/commands/verify/start.md +0 -128
  173. package/claude-assets/commands/workflow.js +0 -606
  174. package/claude-assets/commands/workflows/README.md +0 -9
  175. package/claude-assets/commands/workflows/development.md +0 -78
  176. package/claude-assets/commands/workflows/research.md +0 -63
  177. package/claude-assets/commands/workflows/workflow-create.md +0 -25
  178. package/claude-assets/commands/workflows/workflow-execute.md +0 -25
  179. package/claude-assets/commands/workflows/workflow-export.md +0 -25
  180. package/claude-assets/hooks/post-edit.config.json +0 -23
@@ -1,572 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Neural Networks Slash Command
5
- * Usage: /neural <action> [options]
6
- */
7
-
8
- import { SlashCommand } from '../core/slash-command.js';
9
-
10
- export class NeuralCommand extends SlashCommand {
11
- constructor() {
12
- super('neural', 'Manage neural networks and AI training for agent coordination');
13
- }
14
-
15
- getUsage() {
16
- return '/neural <action> [options]';
17
- }
18
-
19
- getExamples() {
20
- return [
21
- '/neural status - Check neural network status',
22
- '/neural train coordination 50 - Train coordination patterns for 50 epochs',
23
- '/neural patterns analyze - Analyze cognitive patterns',
24
- '/neural predict "task completion" - Make AI predictions',
25
- '/neural compress model-123 0.5 - Compress neural model by 50%',
26
- '/neural ensemble create - Create model ensemble',
27
- '/neural explain prediction-456 - Get AI explainability'
28
- ];
29
- }
30
-
31
- async execute(args, context) {
32
- const [action, ...params] = args;
33
-
34
- if (!action) {
35
- return this.formatResponse({
36
- success: false,
37
- error: 'Action required',
38
- usage: this.getUsage(),
39
- availableActions: [
40
- 'status', 'train', 'patterns', 'predict', 'compress',
41
- 'ensemble', 'explain', 'transfer', 'load', 'save'
42
- ]
43
- });
44
- }
45
-
46
- try {
47
- let result;
48
-
49
- switch (action.toLowerCase()) {
50
- case 'status':
51
- result = await this.getStatus(params);
52
- break;
53
-
54
- case 'train':
55
- result = await this.trainModel(params);
56
- break;
57
-
58
- case 'patterns':
59
- result = await this.analyzePatterns(params);
60
- break;
61
-
62
- case 'predict':
63
- result = await this.makePrediction(params);
64
- break;
65
-
66
- case 'compress':
67
- result = await this.compressModel(params);
68
- break;
69
-
70
- case 'ensemble':
71
- result = await this.manageEnsemble(params);
72
- break;
73
-
74
- case 'explain':
75
- result = await this.explainPrediction(params);
76
- break;
77
-
78
- case 'transfer':
79
- result = await this.transferLearning(params);
80
- break;
81
-
82
- case 'load':
83
- result = await this.loadModel(params);
84
- break;
85
-
86
- case 'save':
87
- result = await this.saveModel(params);
88
- break;
89
-
90
- default:
91
- result = {
92
- success: false,
93
- error: `Unknown action: ${action}`,
94
- availableActions: [
95
- 'status', 'train', 'patterns', 'predict', 'compress',
96
- 'ensemble', 'explain', 'transfer', 'load', 'save'
97
- ]
98
- };
99
- }
100
-
101
- return this.formatResponse(result);
102
- } catch (error) {
103
- return this.formatResponse({
104
- success: false,
105
- error: error.message,
106
- action: action
107
- });
108
- }
109
- }
110
-
111
- async getStatus(params) {
112
- const [modelId] = params;
113
-
114
- console.log(`🧠 Checking neural network status${modelId ? ` for model: ${modelId}` : ''}...`);
115
-
116
- const prompt = `
117
- 🧠 **NEURAL NETWORK STATUS**
118
-
119
- **Check neural network status and performance:**
120
-
121
- \`\`\`javascript
122
- // Get neural status with MCP tools
123
- mcp__claude-flow__neural_status(${modelId ? `{ modelId: "${modelId}" }` : '{}'});
124
-
125
- // Check cognitive patterns
126
- mcp__claude-flow__neural_patterns({ action: "analyze" });
127
-
128
- // Get performance metrics
129
- mcp__claude-flow__performance_report({ format: "neural" });
130
- \`\`\`
131
-
132
- **Status Information:**
133
- - Neural model health and performance
134
- - Training progress and accuracy
135
- - Resource utilization
136
- - Pattern recognition capabilities
137
- - WASM SIMD optimization status
138
-
139
- **Execute neural status check now**:
140
- `;
141
-
142
- return {
143
- success: true,
144
- prompt: prompt,
145
- modelId: modelId
146
- };
147
- }
148
-
149
- async trainModel(params) {
150
- const [patternType, epochs = '50', trainingData] = params;
151
-
152
- if (!patternType) {
153
- return {
154
- success: false,
155
- error: 'Pattern type required',
156
- availableTypes: ['coordination', 'optimization', 'prediction']
157
- };
158
- }
159
-
160
- const epochCount = parseInt(epochs);
161
- if (isNaN(epochCount) || epochCount < 1 || epochCount > 1000) {
162
- return {
163
- success: false,
164
- error: 'Epochs must be between 1 and 1000'
165
- };
166
- }
167
-
168
- console.log(`🎯 Training ${patternType} patterns for ${epochCount} epochs...`);
169
-
170
- const prompt = `
171
- 🎯 **NEURAL NETWORK TRAINING**
172
-
173
- **Configuration:**
174
- - Pattern Type: ${patternType}
175
- - Epochs: ${epochCount}
176
- - Training Data: ${trainingData || 'auto-generated'}
177
-
178
- **Start neural training:**
179
-
180
- \`\`\`javascript
181
- // Train neural patterns with WASM SIMD acceleration
182
- mcp__claude-flow__neural_train({
183
- pattern_type: "${patternType}",
184
- epochs: ${epochCount},
185
- training_data: "${trainingData || 'agent-coordination-data'}"
186
- });
187
-
188
- // Enable WASM optimization
189
- mcp__claude-flow__wasm_optimize({ operation: "neural-training" });
190
-
191
- // Monitor training progress
192
- mcp__claude-flow__neural_status({ modelId: "training-${Date.now()}" });
193
- \`\`\`
194
-
195
- **Training Features:**
196
- - ✅ WASM SIMD acceleration for 2.8-4.4x speed
197
- - ✅ Adaptive learning algorithms
198
- - ✅ Pattern recognition optimization
199
- - ✅ Real-time performance monitoring
200
- - ✅ Automatic checkpoint saving
201
-
202
- **Execute neural training now**:
203
- `;
204
-
205
- return {
206
- success: true,
207
- prompt: prompt,
208
- patternType: patternType,
209
- epochs: epochCount,
210
- trainingData: trainingData
211
- };
212
- }
213
-
214
- async analyzePatterns(params) {
215
- const [action = 'analyze', operation, outcome] = params;
216
-
217
- console.log(`🔍 Analyzing cognitive patterns with action: ${action}`);
218
-
219
- const prompt = `
220
- 🔍 **COGNITIVE PATTERN ANALYSIS**
221
-
222
- **Action:** ${action}
223
-
224
- **Analyze cognitive and coordination patterns:**
225
-
226
- \`\`\`javascript
227
- // Analyze cognitive patterns
228
- mcp__claude-flow__neural_patterns({
229
- action: "${action}",
230
- ${operation ? `operation: "${operation}",` : ''}
231
- ${outcome ? `outcome: "${outcome}"` : ''}
232
- });
233
-
234
- // Pattern recognition
235
- mcp__claude-flow__pattern_recognize({
236
- data: ["current-agent-behaviors"],
237
- patterns: ["convergent", "divergent", "lateral", "systems"]
238
- });
239
-
240
- // Cognitive behavior analysis
241
- mcp__claude-flow__cognitive_analyze({
242
- behavior: "${action}-pattern"
243
- });
244
- \`\`\`
245
-
246
- **Pattern Types:**
247
- - 🎯 Convergent thinking patterns
248
- - 🎆 Divergent creativity patterns
249
- - 🔄 Lateral problem-solving
250
- - 🌐 Systems thinking
251
- - ⚙️ Critical analysis patterns
252
- - 🎨 Abstract reasoning
253
-
254
- **Execute pattern analysis now**:
255
- `;
256
-
257
- return {
258
- success: true,
259
- prompt: prompt,
260
- action: action,
261
- operation: operation,
262
- outcome: outcome
263
- };
264
- }
265
-
266
- async makePrediction(params) {
267
- const input = params.join(' ');
268
-
269
- if (!input) {
270
- return {
271
- success: false,
272
- error: 'Input required for prediction'
273
- };
274
- }
275
-
276
- console.log(`🔮 Making AI prediction for: ${input}`);
277
-
278
- const prompt = `
279
- 🔮 **AI PREDICTION**
280
-
281
- **Input:** ${input}
282
-
283
- **Generate AI predictions:**
284
-
285
- \`\`\`javascript
286
- // Make neural predictions
287
- mcp__claude-flow__neural_predict({
288
- modelId: "coordination-model",
289
- input: "${input}"
290
- });
291
-
292
- // Run inference
293
- mcp__claude-flow__inference_run({
294
- modelId: "coordination-model",
295
- data: ["${input}"]
296
- });
297
- \`\`\`
298
-
299
- **Prediction Capabilities:**
300
- - Task completion probability
301
- - Resource requirements estimation
302
- - Performance optimization suggestions
303
- - Coordination efficiency predictions
304
- - Risk assessment and mitigation
305
-
306
- **Execute AI prediction now**:
307
- `;
308
-
309
- return {
310
- success: true,
311
- prompt: prompt,
312
- input: input
313
- };
314
- }
315
-
316
- async compressModel(params) {
317
- const [modelId, ratio = '0.5'] = params;
318
-
319
- if (!modelId) {
320
- return {
321
- success: false,
322
- error: 'Model ID required for compression'
323
- };
324
- }
325
-
326
- const compressionRatio = parseFloat(ratio);
327
- if (isNaN(compressionRatio) || compressionRatio <= 0 || compressionRatio >= 1) {
328
- return {
329
- success: false,
330
- error: 'Compression ratio must be between 0 and 1'
331
- };
332
- }
333
-
334
- console.log(`🗃️ Compressing model ${modelId} by ${(compressionRatio * 100).toFixed(1)}%...`);
335
-
336
- const prompt = `
337
- 🗃️ **NEURAL MODEL COMPRESSION**
338
-
339
- **Model ID:** ${modelId}
340
- **Compression Ratio:** ${(compressionRatio * 100).toFixed(1)}%
341
-
342
- **Compress neural model:**
343
-
344
- \`\`\`javascript
345
- // Compress neural model
346
- mcp__claude-flow__neural_compress({
347
- modelId: "${modelId}",
348
- ratio: ${compressionRatio}
349
- });
350
- \`\`\`
351
-
352
- **Compression Benefits:**
353
- - ⚙️ Reduced memory usage
354
- - ⚡ Faster inference speed
355
- - 💾 Smaller storage footprint
356
- - 🚀 Improved deployment efficiency
357
-
358
- **Execute model compression now**:
359
- `;
360
-
361
- return {
362
- success: true,
363
- prompt: prompt,
364
- modelId: modelId,
365
- compressionRatio: compressionRatio
366
- };
367
- }
368
-
369
- async manageEnsemble(params) {
370
- const [action = 'create', ...models] = params;
371
-
372
- console.log(`🎵 Managing model ensemble: ${action}`);
373
-
374
- const prompt = `
375
- 🎵 **MODEL ENSEMBLE MANAGEMENT**
376
-
377
- **Action:** ${action}
378
- **Models:** ${models.length > 0 ? models.join(', ') : 'auto-select'}
379
-
380
- **Manage model ensemble:**
381
-
382
- \`\`\`javascript
383
- // Create model ensemble
384
- mcp__claude-flow__ensemble_create({
385
- models: [${models.length > 0 ? models.map(m => `"${m}"`).join(', ') : '"coordination-model", "optimization-model", "prediction-model"'}],
386
- strategy: "voting"
387
- });
388
- \`\`\`
389
-
390
- **Ensemble Benefits:**
391
- - 🎯 Improved accuracy through model combination
392
- - 🔄 Robust predictions with multiple perspectives
393
- - ⚙️ Reduced overfitting risk
394
- - 📈 Enhanced performance metrics
395
-
396
- **Execute ensemble management now**:
397
- `;
398
-
399
- return {
400
- success: true,
401
- prompt: prompt,
402
- action: action,
403
- models: models
404
- };
405
- }
406
-
407
- async explainPrediction(params) {
408
- const [predictionId] = params;
409
-
410
- if (!predictionId) {
411
- return {
412
- success: false,
413
- error: 'Prediction ID required for explainability'
414
- };
415
- }
416
-
417
- console.log(`🔎 Explaining prediction: ${predictionId}`);
418
-
419
- const prompt = `
420
- 🔎 **AI EXPLAINABILITY**
421
-
422
- **Prediction ID:** ${predictionId}
423
-
424
- **Generate AI explanation:**
425
-
426
- \`\`\`javascript
427
- // Get AI explainability
428
- mcp__claude-flow__neural_explain({
429
- modelId: "coordination-model",
430
- prediction: { id: "${predictionId}" }
431
- });
432
- \`\`\`
433
-
434
- **Explainability Features:**
435
- - 📊 Feature importance analysis
436
- - 🔄 Decision path visualization
437
- - ⚙️ Model behavior interpretation
438
- - 🎯 Confidence score breakdown
439
- - 📝 Human-readable explanations
440
-
441
- **Execute AI explanation now**:
442
- `;
443
-
444
- return {
445
- success: true,
446
- prompt: prompt,
447
- predictionId: predictionId
448
- };
449
- }
450
-
451
- async transferLearning(params) {
452
- const [sourceModel, targetDomain] = params;
453
-
454
- if (!sourceModel || !targetDomain) {
455
- return {
456
- success: false,
457
- error: 'Source model and target domain required for transfer learning'
458
- };
459
- }
460
-
461
- console.log(`🔄 Transfer learning from ${sourceModel} to ${targetDomain}...`);
462
-
463
- const prompt = `
464
- 🔄 **TRANSFER LEARNING**
465
-
466
- **Source Model:** ${sourceModel}
467
- **Target Domain:** ${targetDomain}
468
-
469
- **Execute transfer learning:**
470
-
471
- \`\`\`javascript
472
- // Transfer learning
473
- mcp__claude-flow__transfer_learn({
474
- sourceModel: "${sourceModel}",
475
- targetDomain: "${targetDomain}"
476
- });
477
- \`\`\`
478
-
479
- **Transfer Learning Benefits:**
480
- - ⚡ Faster training on new domains
481
- - 🎯 Leverages existing knowledge
482
- - 📉 Reduced data requirements
483
- - ⚙️ Improved generalization
484
-
485
- **Execute transfer learning now**:
486
- `;
487
-
488
- return {
489
- success: true,
490
- prompt: prompt,
491
- sourceModel: sourceModel,
492
- targetDomain: targetDomain
493
- };
494
- }
495
-
496
- async loadModel(params) {
497
- const [modelPath] = params;
498
-
499
- if (!modelPath) {
500
- return {
501
- success: false,
502
- error: 'Model path required for loading'
503
- };
504
- }
505
-
506
- console.log(`📥 Loading model from: ${modelPath}`);
507
-
508
- const prompt = `
509
- 📥 **LOAD NEURAL MODEL**
510
-
511
- **Model Path:** ${modelPath}
512
-
513
- **Load pre-trained model:**
514
-
515
- \`\`\`javascript
516
- // Load pre-trained model
517
- mcp__claude-flow__model_load({
518
- modelPath: "${modelPath}"
519
- });
520
- \`\`\`
521
-
522
- **Execute model loading now**:
523
- `;
524
-
525
- return {
526
- success: true,
527
- prompt: prompt,
528
- modelPath: modelPath
529
- };
530
- }
531
-
532
- async saveModel(params) {
533
- const [modelId, path] = params;
534
-
535
- if (!modelId || !path) {
536
- return {
537
- success: false,
538
- error: 'Model ID and path required for saving'
539
- };
540
- }
541
-
542
- console.log(`💾 Saving model ${modelId} to: ${path}`);
543
-
544
- const prompt = `
545
- 💾 **SAVE NEURAL MODEL**
546
-
547
- **Model ID:** ${modelId}
548
- **Save Path:** ${path}
549
-
550
- **Save trained model:**
551
-
552
- \`\`\`javascript
553
- // Save trained model
554
- mcp__claude-flow__model_save({
555
- modelId: "${modelId}",
556
- path: "${path}"
557
- });
558
- \`\`\`
559
-
560
- **Execute model saving now**:
561
- `;
562
-
563
- return {
564
- success: true,
565
- prompt: prompt,
566
- modelId: modelId,
567
- path: path
568
- };
569
- }
570
- }
571
-
572
- export default NeuralCommand;
@@ -1,9 +0,0 @@
1
- # Optimization Commands
2
-
3
- Commands for optimization operations in Claude Flow.
4
-
5
- ## Available Commands
6
-
7
- - [topology-optimize](./topology-optimize.md)
8
- - [parallel-execute](./parallel-execute.md)
9
- - [cache-manage](./cache-manage.md)
@@ -1,62 +0,0 @@
1
- # Automatic Topology Selection
2
-
3
- ## Purpose
4
- Automatically select the optimal swarm topology based on task complexity analysis.
5
-
6
- ## How It Works
7
-
8
- ### 1. Task Analysis
9
- The system analyzes your task description to determine:
10
- - Complexity level (simple/medium/complex)
11
- - Required agent types
12
- - Estimated duration
13
- - Resource requirements
14
-
15
- ### 2. Topology Selection
16
- Based on analysis, it selects:
17
- - **Star**: For simple, centralized tasks
18
- - **Mesh**: For medium complexity with flexibility needs
19
- - **Hierarchical**: For complex tasks requiring structure
20
- - **Ring**: For sequential processing workflows
21
-
22
- ### 3. Example Usage
23
-
24
- **Simple Task:**
25
- ```
26
- Tool: mcp__claude-flow__task_orchestrate
27
- Parameters: {"task": "Fix typo in README.md"}
28
- Result: Automatically uses star topology with single agent
29
- ```
30
-
31
- **Complex Task:**
32
- ```
33
- Tool: mcp__claude-flow__task_orchestrate
34
- Parameters: {"task": "Refactor authentication system with JWT, add tests, update documentation"}
35
- Result: Automatically uses hierarchical topology with architect, coder, and tester agents
36
- ```
37
-
38
- ## Benefits
39
- - 🎯 Optimal performance for each task type
40
- - 🤖 Automatic agent assignment
41
- - ⚡ Reduced setup time
42
- - 📊 Better resource utilization
43
-
44
- ## Hook Configuration
45
- The pre-task hook automatically handles topology selection:
46
- ```json
47
- {
48
- "command": "npx claude-flow-novice hook pre-task --optimize-topology"
49
- }
50
- ```
51
-
52
- ## Direct Optimization
53
- ```
54
- Tool: mcp__claude-flow__topology_optimize
55
- Parameters: {"swarmId": "current"}
56
- ```
57
-
58
- ## CLI Usage
59
- ```bash
60
- # Auto-optimize topology via CLI
61
- npx claude-flow-novice optimize topology
62
- ```
@@ -1,25 +0,0 @@
1
- # cache-manage
2
-
3
- Manage operation cache for performance.
4
-
5
- ## Usage
6
- ```bash
7
- npx claude-flow-novice optimization cache-manage [options]
8
- ```
9
-
10
- ## Options
11
- - `--action <type>` - Action (view, clear, optimize)
12
- - `--max-size <mb>` - Maximum cache size
13
- - `--ttl <seconds>` - Time to live
14
-
15
- ## Examples
16
- ```bash
17
- # View cache stats
18
- npx claude-flow-novice optimization cache-manage --action view
19
-
20
- # Clear cache
21
- npx claude-flow-novice optimization cache-manage --action clear
22
-
23
- # Set limits
24
- npx claude-flow-novice optimization cache-manage --max-size 100 --ttl 3600
25
- ```
@@ -1,25 +0,0 @@
1
- # parallel-execute
2
-
3
- Execute tasks in parallel for maximum efficiency.
4
-
5
- ## Usage
6
- ```bash
7
- npx claude-flow-novice optimization parallel-execute [options]
8
- ```
9
-
10
- ## Options
11
- - `--tasks <file>` - Task list file
12
- - `--max-parallel <n>` - Maximum parallel tasks
13
- - `--strategy <type>` - Execution strategy
14
-
15
- ## Examples
16
- ```bash
17
- # Execute task list
18
- npx claude-flow-novice optimization parallel-execute --tasks tasks.json
19
-
20
- # Limit parallelism
21
- npx claude-flow-novice optimization parallel-execute --tasks tasks.json --max-parallel 5
22
-
23
- # Custom strategy
24
- npx claude-flow-novice optimization parallel-execute --strategy adaptive
25
- ```