claude-flow-novice 2.10.8 → 2.11.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 (193) hide show
  1. package/.claude/commands/README.md +157 -0
  2. package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
  3. package/.claude/hooks/cfn-invoke-pre-edit.sh +88 -0
  4. package/.claude/skills/cfn-agent-spawning/spawn-worker.sh +176 -0
  5. package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
  6. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -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/agents/csuite/cto-agent.md +371 -0
  11. package/claude-assets/agents/marketing_hybrid/cost_tracker.md +13 -0
  12. package/claude-assets/agents/marketing_hybrid/docker_deployer.md +13 -0
  13. package/claude-assets/agents/marketing_hybrid/zai_worker_spawner.md +13 -0
  14. package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
  15. package/claude-assets/hooks/cfn-invoke-pre-edit.sh +88 -0
  16. package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh +176 -0
  17. package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
  18. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  19. package/claude-assets/skills/pre-edit-backup/backup.sh +130 -0
  20. package/claude-assets/skills/pre-edit-backup/cleanup.sh +155 -0
  21. package/claude-assets/skills/pre-edit-backup/restore.sh +128 -0
  22. package/claude-assets/skills/pre-edit-backup/revert-file.sh +168 -0
  23. package/dist/agents/agent-loader.js +315 -0
  24. package/dist/agents/agent-loader.js.map +1 -1
  25. package/package.json +3 -2
  26. package/scripts/init-project.js +38 -3
  27. package/scripts/marketing_hybrid_deployment.sh +45 -0
  28. package/scripts/redis-prometheus-exporter.sh +33 -0
  29. package/scripts/track-zai-costs.sh +19 -0
  30. package/claude-assets/commands/agents/README.md +0 -10
  31. package/claude-assets/commands/agents/agent-capabilities.md +0 -21
  32. package/claude-assets/commands/agents/agent-coordination.md +0 -28
  33. package/claude-assets/commands/agents/agent-spawning.md +0 -28
  34. package/claude-assets/commands/agents/agent-types.md +0 -26
  35. package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  36. package/claude-assets/commands/analysis/README.md +0 -9
  37. package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
  38. package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
  39. package/claude-assets/commands/analysis/performance-report.md +0 -25
  40. package/claude-assets/commands/analysis/token-efficiency.md +0 -45
  41. package/claude-assets/commands/analysis/token-usage.md +0 -25
  42. package/claude-assets/commands/automation/README.md +0 -9
  43. package/claude-assets/commands/automation/auto-agent.md +0 -122
  44. package/claude-assets/commands/automation/self-healing.md +0 -106
  45. package/claude-assets/commands/automation/session-memory.md +0 -90
  46. package/claude-assets/commands/automation/smart-agents.md +0 -73
  47. package/claude-assets/commands/automation/smart-spawn.md +0 -25
  48. package/claude-assets/commands/automation/workflow-select.md +0 -25
  49. package/claude-assets/commands/claude-md.js +0 -237
  50. package/claude-assets/commands/claude-soul.js +0 -28
  51. package/claude-assets/commands/cli-integration.js +0 -216
  52. package/claude-assets/commands/coordination/README.md +0 -9
  53. package/claude-assets/commands/coordination/agent-spawn.md +0 -25
  54. package/claude-assets/commands/coordination/coordination-system.md +0 -88
  55. package/claude-assets/commands/coordination/init.md +0 -44
  56. package/claude-assets/commands/coordination/orchestrate.md +0 -43
  57. package/claude-assets/commands/coordination/spawn.md +0 -45
  58. package/claude-assets/commands/coordination/swarm-init.md +0 -85
  59. package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
  60. package/claude-assets/commands/github/README.md +0 -11
  61. package/claude-assets/commands/github/code-review-swarm.md +0 -514
  62. package/claude-assets/commands/github/code-review.md +0 -25
  63. package/claude-assets/commands/github/github-modes.md +0 -147
  64. package/claude-assets/commands/github/github-swarm.md +0 -121
  65. package/claude-assets/commands/github/issue-tracker.md +0 -292
  66. package/claude-assets/commands/github/issue-triage.md +0 -25
  67. package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
  68. package/claude-assets/commands/github/pr-enhance.md +0 -26
  69. package/claude-assets/commands/github/pr-manager.md +0 -170
  70. package/claude-assets/commands/github/project-board-sync.md +0 -471
  71. package/claude-assets/commands/github/release-manager.md +0 -338
  72. package/claude-assets/commands/github/release-swarm.md +0 -544
  73. package/claude-assets/commands/github/repo-analyze.md +0 -25
  74. package/claude-assets/commands/github/repo-architect.md +0 -367
  75. package/claude-assets/commands/github/swarm-issue.md +0 -482
  76. package/claude-assets/commands/github/swarm-pr.md +0 -285
  77. package/claude-assets/commands/github/sync-coordinator.md +0 -301
  78. package/claude-assets/commands/github/workflow-automation.md +0 -442
  79. package/claude-assets/commands/github.js +0 -638
  80. package/claude-assets/commands/hive-mind/README.md +0 -17
  81. package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
  82. package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
  83. package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
  84. package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
  85. package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
  86. package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
  87. package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
  88. package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
  89. package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
  90. package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
  91. package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
  92. package/claude-assets/commands/hooks/README.md +0 -11
  93. package/claude-assets/commands/hooks/overview.md +0 -58
  94. package/claude-assets/commands/hooks/post-edit.md +0 -117
  95. package/claude-assets/commands/hooks/post-task.md +0 -112
  96. package/claude-assets/commands/hooks/pre-edit.md +0 -113
  97. package/claude-assets/commands/hooks/pre-task.md +0 -111
  98. package/claude-assets/commands/hooks/session-end.md +0 -118
  99. package/claude-assets/commands/hooks/session-start.md +0 -9
  100. package/claude-assets/commands/hooks/setup.md +0 -103
  101. package/claude-assets/commands/hooks.js +0 -651
  102. package/claude-assets/commands/index.js +0 -119
  103. package/claude-assets/commands/memory/README.md +0 -9
  104. package/claude-assets/commands/memory/memory-bank.md +0 -58
  105. package/claude-assets/commands/memory/memory-persist.md +0 -25
  106. package/claude-assets/commands/memory/memory-search.md +0 -25
  107. package/claude-assets/commands/memory/memory-usage.md +0 -25
  108. package/claude-assets/commands/memory/neural.md +0 -47
  109. package/claude-assets/commands/memory/usage.md +0 -46
  110. package/claude-assets/commands/monitoring/README.md +0 -9
  111. package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
  112. package/claude-assets/commands/monitoring/agents.md +0 -44
  113. package/claude-assets/commands/monitoring/real-time-view.md +0 -25
  114. package/claude-assets/commands/monitoring/status.md +0 -46
  115. package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
  116. package/claude-assets/commands/neural.js +0 -572
  117. package/claude-assets/commands/optimization/README.md +0 -9
  118. package/claude-assets/commands/optimization/auto-topology.md +0 -62
  119. package/claude-assets/commands/optimization/cache-manage.md +0 -25
  120. package/claude-assets/commands/optimization/parallel-execute.md +0 -25
  121. package/claude-assets/commands/optimization/parallel-execution.md +0 -50
  122. package/claude-assets/commands/optimization/topology-optimize.md +0 -25
  123. package/claude-assets/commands/pair/README.md +0 -261
  124. package/claude-assets/commands/pair/commands.md +0 -546
  125. package/claude-assets/commands/pair/config.md +0 -510
  126. package/claude-assets/commands/pair/examples.md +0 -512
  127. package/claude-assets/commands/pair/modes.md +0 -348
  128. package/claude-assets/commands/pair/session.md +0 -407
  129. package/claude-assets/commands/pair/start.md +0 -209
  130. package/claude-assets/commands/parse-epic.js +0 -180
  131. package/claude-assets/commands/performance.js +0 -582
  132. package/claude-assets/commands/register-all-commands.js +0 -320
  133. package/claude-assets/commands/register-claude-md.js +0 -82
  134. package/claude-assets/commands/register-claude-soul.js +0 -80
  135. package/claude-assets/commands/sparc/analyzer.md +0 -52
  136. package/claude-assets/commands/sparc/architect.md +0 -53
  137. package/claude-assets/commands/sparc/batch-executor.md +0 -54
  138. package/claude-assets/commands/sparc/coder.md +0 -54
  139. package/claude-assets/commands/sparc/debugger.md +0 -54
  140. package/claude-assets/commands/sparc/designer.md +0 -53
  141. package/claude-assets/commands/sparc/documenter.md +0 -54
  142. package/claude-assets/commands/sparc/innovator.md +0 -54
  143. package/claude-assets/commands/sparc/memory-manager.md +0 -54
  144. package/claude-assets/commands/sparc/optimizer.md +0 -54
  145. package/claude-assets/commands/sparc/orchestrator.md +0 -132
  146. package/claude-assets/commands/sparc/researcher.md +0 -54
  147. package/claude-assets/commands/sparc/reviewer.md +0 -54
  148. package/claude-assets/commands/sparc/sparc-modes.md +0 -174
  149. package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
  150. package/claude-assets/commands/sparc/tdd.md +0 -54
  151. package/claude-assets/commands/sparc/tester.md +0 -54
  152. package/claude-assets/commands/sparc/workflow-manager.md +0 -54
  153. package/claude-assets/commands/sparc.js +0 -110
  154. package/claude-assets/commands/stream-chain/pipeline.md +0 -121
  155. package/claude-assets/commands/stream-chain/run.md +0 -70
  156. package/claude-assets/commands/swarm/README.md +0 -15
  157. package/claude-assets/commands/swarm/analysis.md +0 -95
  158. package/claude-assets/commands/swarm/development.md +0 -96
  159. package/claude-assets/commands/swarm/examples.md +0 -168
  160. package/claude-assets/commands/swarm/maintenance.md +0 -102
  161. package/claude-assets/commands/swarm/optimization.md +0 -117
  162. package/claude-assets/commands/swarm/research.md +0 -136
  163. package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
  164. package/claude-assets/commands/swarm/swarm-background.md +0 -8
  165. package/claude-assets/commands/swarm/swarm-init.md +0 -19
  166. package/claude-assets/commands/swarm/swarm-modes.md +0 -8
  167. package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
  168. package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
  169. package/claude-assets/commands/swarm/swarm-status.md +0 -8
  170. package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
  171. package/claude-assets/commands/swarm/swarm.md +0 -27
  172. package/claude-assets/commands/swarm/testing.md +0 -131
  173. package/claude-assets/commands/swarm.js +0 -423
  174. package/claude-assets/commands/testing/playwright-e2e.md +0 -288
  175. package/claude-assets/commands/training/README.md +0 -9
  176. package/claude-assets/commands/training/model-update.md +0 -25
  177. package/claude-assets/commands/training/neural-patterns.md +0 -74
  178. package/claude-assets/commands/training/neural-train.md +0 -25
  179. package/claude-assets/commands/training/pattern-learn.md +0 -25
  180. package/claude-assets/commands/training/specialization.md +0 -63
  181. package/claude-assets/commands/truth/start.md +0 -143
  182. package/claude-assets/commands/validate-commands.js +0 -223
  183. package/claude-assets/commands/verify/check.md +0 -50
  184. package/claude-assets/commands/verify/start.md +0 -128
  185. package/claude-assets/commands/workflow.js +0 -606
  186. package/claude-assets/commands/workflows/README.md +0 -9
  187. package/claude-assets/commands/workflows/development.md +0 -78
  188. package/claude-assets/commands/workflows/research.md +0 -63
  189. package/claude-assets/commands/workflows/workflow-create.md +0 -25
  190. package/claude-assets/commands/workflows/workflow-execute.md +0 -25
  191. package/claude-assets/commands/workflows/workflow-export.md +0 -25
  192. package/claude-assets/hooks/post-edit.config.json +0 -12
  193. package/claude-assets/skills/team-provider-routing/spawn-worker.sh +0 -91
@@ -1,59 +0,0 @@
1
- # Performance Bottleneck Analysis
2
-
3
- ## Purpose
4
- Identify and resolve performance bottlenecks in your development workflow.
5
-
6
- ## Automated Analysis
7
-
8
- ### 1. Real-time Detection
9
- The post-task hook automatically analyzes:
10
- - Execution time vs. complexity
11
- - Agent utilization rates
12
- - Resource constraints
13
- - Operation patterns
14
-
15
- ### 2. Common Bottlenecks
16
-
17
- **Time Bottlenecks:**
18
- - Tasks taking > 5 minutes
19
- - Sequential operations that could parallelize
20
- - Redundant file operations
21
-
22
- **Coordination Bottlenecks:**
23
- - Single agent for complex tasks
24
- - Unbalanced agent workloads
25
- - Poor topology selection
26
-
27
- **Resource Bottlenecks:**
28
- - High operation count (> 100)
29
- - Memory constraints
30
- - I/O limitations
31
-
32
- ### 3. Improvement Suggestions
33
-
34
- ```
35
- Tool: mcp__claude-flow__task_results
36
- Parameters: {"taskId": "task-123", "format": "detailed"}
37
-
38
- Result includes:
39
- {
40
- "bottlenecks": [
41
- {
42
- "type": "coordination",
43
- "severity": "high",
44
- "description": "Single agent used for complex task",
45
- "recommendation": "Spawn specialized agents for parallel work"
46
- }
47
- ],
48
- "improvements": [
49
- {
50
- "area": "execution_time",
51
- "suggestion": "Use parallel task execution",
52
- "expectedImprovement": "30-50% time reduction"
53
- }
54
- ]
55
- }
56
- ```
57
-
58
- ## Continuous Optimization
59
- The system learns from each task to prevent future bottlenecks!
@@ -1,25 +0,0 @@
1
- # performance-report
2
-
3
- Generate comprehensive performance reports for swarm operations.
4
-
5
- ## Usage
6
- ```bash
7
- npx claude-flow-novice analysis performance-report [options]
8
- ```
9
-
10
- ## Options
11
- - `--format <type>` - Report format (json, html, markdown)
12
- - `--include-metrics` - Include detailed metrics
13
- - `--compare <id>` - Compare with previous swarm
14
-
15
- ## Examples
16
- ```bash
17
- # Generate HTML report
18
- npx claude-flow-novice analysis performance-report --format html
19
-
20
- # Compare swarms
21
- npx claude-flow-novice analysis performance-report --compare swarm-123
22
-
23
- # Full metrics report
24
- npx claude-flow-novice analysis performance-report --include-metrics --format markdown
25
- ```
@@ -1,45 +0,0 @@
1
- # Token Usage Optimization
2
-
3
- ## Purpose
4
- Reduce token consumption while maintaining quality through intelligent coordination.
5
-
6
- ## Optimization Strategies
7
-
8
- ### 1. Smart Caching
9
- - Search results cached for 5 minutes
10
- - File content cached during session
11
- - Pattern recognition reduces redundant searches
12
-
13
- ### 2. Efficient Coordination
14
- - Agents share context automatically
15
- - Avoid duplicate file reads
16
- - Batch related operations
17
-
18
- ### 3. Measurement & Tracking
19
-
20
- ```bash
21
- # Check token savings after session
22
- Tool: mcp__claude-flow__token_usage
23
- Parameters: {"operation": "session", "timeframe": "24h"}
24
-
25
- # Result shows:
26
- {
27
- "metrics": {
28
- "tokensSaved": 15420,
29
- "operations": 45,
30
- "efficiency": "343 tokens/operation"
31
- }
32
- }
33
- ```
34
-
35
- ## Best Practices
36
- 1. **Use Task tool** for complex searches
37
- 2. **Enable caching** in pre-search hooks
38
- 3. **Batch operations** when possible
39
- 4. **Review session summaries** for insights
40
-
41
- ## Token Reduction Results
42
- - 📉 32.3% average token reduction
43
- - 🎯 More focused operations
44
- - 🔄 Intelligent result reuse
45
- - 📊 Cumulative improvements
@@ -1,25 +0,0 @@
1
- # token-usage
2
-
3
- Analyze token usage patterns and optimize for efficiency.
4
-
5
- ## Usage
6
- ```bash
7
- npx claude-flow-novice analysis token-usage [options]
8
- ```
9
-
10
- ## Options
11
- - `--period <time>` - Analysis period (1h, 24h, 7d, 30d)
12
- - `--by-agent` - Break down by agent
13
- - `--by-operation` - Break down by operation type
14
-
15
- ## Examples
16
- ```bash
17
- # Last 24 hours token usage
18
- npx claude-flow-novice analysis token-usage --period 24h
19
-
20
- # By agent breakdown
21
- npx claude-flow-novice analysis token-usage --by-agent
22
-
23
- # Export detailed report
24
- npx claude-flow-novice analysis token-usage --period 7d --export tokens.csv
25
- ```
@@ -1,9 +0,0 @@
1
- # Automation Commands
2
-
3
- Commands for automation operations in Claude Flow.
4
-
5
- ## Available Commands
6
-
7
- - [auto-agent](./auto-agent.md)
8
- - [smart-spawn](./smart-spawn.md)
9
- - [workflow-select](./workflow-select.md)
@@ -1,122 +0,0 @@
1
- # auto agent
2
-
3
- Automatically spawn and manage agents based on task requirements.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- npx claude-flow-novice auto agent [options]
9
- ```
10
-
11
- ## Options
12
-
13
- - `--task, -t <description>` - Task description for agent analysis
14
- - `--max-agents, -m <number>` - Maximum agents to spawn (default: auto)
15
- - `--min-agents <number>` - Minimum agents required (default: 1)
16
- - `--strategy, -s <type>` - Selection strategy: optimal, minimal, balanced
17
- - `--no-spawn` - Analyze only, don't spawn agents
18
-
19
- ## Examples
20
-
21
- ### Basic auto-spawning
22
-
23
- ```bash
24
- npx claude-flow-novice auto agent --task "Build a REST API with authentication"
25
- ```
26
-
27
- ### Constrained spawning
28
-
29
- ```bash
30
- npx claude-flow-novice auto agent -t "Debug performance issue" --max-agents 3
31
- ```
32
-
33
- ### Analysis only
34
-
35
- ```bash
36
- npx claude-flow-novice auto agent -t "Refactor codebase" --no-spawn
37
- ```
38
-
39
- ### Minimal strategy
40
-
41
- ```bash
42
- npx claude-flow-novice auto agent -t "Fix bug in login" -s minimal
43
- ```
44
-
45
- ## How It Works
46
-
47
- 1. **Task Analysis**
48
-
49
- - Parses task description
50
- - Identifies required skills
51
- - Estimates complexity
52
- - Determines parallelization opportunities
53
-
54
- 2. **Agent Selection**
55
-
56
- - Matches skills to agent types
57
- - Considers task dependencies
58
- - Optimizes for efficiency
59
- - Respects constraints
60
-
61
- 3. **Topology Selection**
62
-
63
- - Chooses optimal swarm structure
64
- - Configures communication patterns
65
- - Sets up coordination rules
66
- - Enables monitoring
67
-
68
- 4. **Automatic Spawning**
69
- - Creates selected agents
70
- - Assigns specific roles
71
- - Distributes subtasks
72
- - Initiates coordination
73
-
74
- ## Agent Types Selected
75
-
76
- - **Architect**: System design, architecture decisions
77
- - **Coder**: Implementation, code generation
78
- - **Tester**: Test creation, quality assurance
79
- - **Analyst**: Performance, optimization
80
- - **Researcher**: Documentation, best practices
81
- - **Coordinator**: Task management, progress tracking
82
-
83
- ## Strategies
84
-
85
- ### Optimal
86
-
87
- - Maximum efficiency
88
- - May spawn more agents
89
- - Best for complex tasks
90
- - Highest resource usage
91
-
92
- ### Minimal
93
-
94
- - Minimum viable agents
95
- - Conservative approach
96
- - Good for simple tasks
97
- - Lowest resource usage
98
-
99
- ### Balanced
100
-
101
- - Middle ground
102
- - Adaptive to complexity
103
- - Default strategy
104
- - Good performance/resource ratio
105
-
106
- ## Integration with Claude Code
107
-
108
- ```javascript
109
- // In Claude Code after auto-spawning
110
- mcp__claude-flow__auto_agent {
111
- task: "Build authentication system",
112
- strategy: "balanced",
113
- maxAgents: 6
114
- }
115
- ```
116
-
117
- ## See Also
118
-
119
- - `agent spawn` - Manual agent creation
120
- - `swarm init` - Initialize swarm manually
121
- - `smart spawn` - Intelligent agent spawning
122
- - `workflow select` - Choose predefined workflows
@@ -1,106 +0,0 @@
1
- # Self-Healing Workflows
2
-
3
- ## Purpose
4
- Automatically detect and recover from errors without interrupting your flow.
5
-
6
- ## Self-Healing Features
7
-
8
- ### 1. Error Detection
9
- Monitors for:
10
- - Failed commands
11
- - Syntax errors
12
- - Missing dependencies
13
- - Broken tests
14
-
15
- ### 2. Automatic Recovery
16
-
17
- **Missing Dependencies:**
18
- ```
19
- Error: Cannot find module 'express'
20
- → Automatically runs: npm install express
21
- → Retries original command
22
- ```
23
-
24
- **Syntax Errors:**
25
- ```
26
- Error: Unexpected token
27
- → Analyzes error location
28
- → Suggests fix through analyzer agent
29
- → Applies fix with confirmation
30
- ```
31
-
32
- **Test Failures:**
33
- ```
34
- Test failed: "user authentication"
35
- → Spawns debugger agent
36
- → Analyzes failure cause
37
- → Implements fix
38
- → Re-runs tests
39
- ```
40
-
41
- ### 3. Learning from Failures
42
- Each recovery improves future prevention:
43
- - Patterns saved to knowledge base
44
- - Similar errors prevented proactively
45
- - Recovery strategies optimized
46
-
47
- **Pattern Storage:**
48
- ```javascript
49
- // Store error patterns
50
- mcp__claude-flow__memory_usage({
51
- "action": "store",
52
- "key": "error-pattern-" + Date.now(),
53
- "value": JSON.stringify(errorData),
54
- "namespace": "error-patterns",
55
- "ttl": 2592000 // 30 days
56
- })
57
-
58
- // Analyze patterns
59
- mcp__claude-flow__neural_patterns({
60
- "action": "analyze",
61
- "operation": "error-recovery",
62
- "outcome": "success"
63
- })
64
- ```
65
-
66
- ## Self-Healing Integration
67
-
68
- ### MCP Tool Coordination
69
- ```javascript
70
- // Initialize self-healing swarm
71
- mcp__claude-flow__swarm_init({
72
- "topology": "star",
73
- "maxAgents": 4,
74
- "strategy": "adaptive"
75
- })
76
-
77
- // Spawn recovery agents
78
- mcp__claude-flow__agent_spawn({
79
- "type": "monitor",
80
- "name": "Error Monitor",
81
- "capabilities": ["error-detection", "recovery"]
82
- })
83
-
84
- // Orchestrate recovery
85
- mcp__claude-flow__task_orchestrate({
86
- "task": "recover from error",
87
- "strategy": "sequential",
88
- "priority": "critical"
89
- })
90
- ```
91
-
92
- ### Fallback Hook Configuration
93
- ```json
94
- {
95
- "PostToolUse": [{
96
- "matcher": "^Bash$",
97
- "command": "npx claude-flow-novice hook post-bash --exit-code '${tool.result.exitCode}' --auto-recover"
98
- }]
99
- }
100
- ```
101
-
102
- ## Benefits
103
- - 🛡️ Resilient workflows
104
- - 🔄 Automatic recovery
105
- - 📚 Learns from errors
106
- - ⏱️ Saves debugging time
@@ -1,90 +0,0 @@
1
- # Cross-Session Memory
2
-
3
- ## Purpose
4
- Maintain context and learnings across Claude Code sessions for continuous improvement.
5
-
6
- ## Memory Features
7
-
8
- ### 1. Automatic State Persistence
9
- At session end, automatically saves:
10
- - Active agents and specializations
11
- - Task history and patterns
12
- - Performance metrics
13
- - Neural network weights
14
- - Knowledge base updates
15
-
16
- ### 2. Session Restoration
17
- ```javascript
18
- // Using MCP tools for memory operations
19
- mcp__claude-flow__memory_usage({
20
- "action": "retrieve",
21
- "key": "session-state",
22
- "namespace": "sessions"
23
- })
24
-
25
- // Restore swarm state
26
- mcp__claude-flow__context_restore({
27
- "snapshotId": "sess-123"
28
- })
29
- ```
30
-
31
- **Fallback with npx:**
32
- ```bash
33
- npx claude-flow-novice hook session-restore --session-id "sess-123"
34
- ```
35
-
36
- ### 3. Memory Types
37
-
38
- **Project Memory:**
39
- - File relationships
40
- - Common edit patterns
41
- - Testing approaches
42
- - Build configurations
43
-
44
- **Agent Memory:**
45
- - Specialization levels
46
- - Task success rates
47
- - Optimization strategies
48
- - Error patterns
49
-
50
- **Performance Memory:**
51
- - Bottleneck history
52
- - Optimization results
53
- - Token usage patterns
54
- - Efficiency trends
55
-
56
- ### 4. Privacy & Control
57
- ```javascript
58
- // List memory contents
59
- mcp__claude-flow__memory_usage({
60
- "action": "list",
61
- "namespace": "sessions"
62
- })
63
-
64
- // Delete specific memory
65
- mcp__claude-flow__memory_usage({
66
- "action": "delete",
67
- "key": "session-123",
68
- "namespace": "sessions"
69
- })
70
-
71
- // Backup memory
72
- mcp__claude-flow__memory_backup({
73
- "path": "./backups/memory-backup.json"
74
- })
75
- ```
76
-
77
- **Manual control:**
78
- ```bash
79
- # View stored memory
80
- ls .claude-flow/memory/
81
-
82
- # Disable memory
83
- export CLAUDE_FLOW_MEMORY_PERSIST=false
84
- ```
85
-
86
- ## Benefits
87
- - 🧠 Contextual awareness
88
- - 📈 Cumulative learning
89
- - ⚡ Faster task completion
90
- - 🎯 Personalized optimization
@@ -1,73 +0,0 @@
1
- # Smart Agent Auto-Spawning
2
-
3
- ## Purpose
4
- Automatically spawn the right agents at the right time without manual intervention.
5
-
6
- ## Auto-Spawning Triggers
7
-
8
- ### 1. File Type Detection
9
- When editing files, agents auto-spawn:
10
- - **JavaScript/TypeScript**: Coder agent
11
- - **Markdown**: Researcher agent
12
- - **JSON/YAML**: Analyst agent
13
- - **Multiple files**: Coordinator agent
14
-
15
- ### 2. Task Complexity
16
- ```
17
- Simple task: "Fix typo"
18
- → Single coordinator agent
19
-
20
- Complex task: "Implement OAuth with Google"
21
- → Architect + Coder + Tester + Researcher
22
- ```
23
-
24
- ### 3. Dynamic Scaling
25
- The system monitors workload and spawns additional agents when:
26
- - Task queue grows
27
- - Complexity increases
28
- - Parallel opportunities exist
29
-
30
- **Status Monitoring:**
31
- ```javascript
32
- // Check swarm health
33
- mcp__claude-flow__swarm_status({
34
- "swarmId": "current"
35
- })
36
-
37
- // Monitor agent performance
38
- mcp__claude-flow__agent_metrics({
39
- "agentId": "agent-123"
40
- })
41
- ```
42
-
43
- ## Configuration
44
-
45
- ### MCP Tool Integration
46
- Uses Claude Flow MCP tools for agent coordination:
47
- ```javascript
48
- // Initialize swarm with appropriate topology
49
- mcp__claude-flow__swarm_init({
50
- "topology": "mesh",
51
- "maxAgents": 8,
52
- "strategy": "auto"
53
- })
54
-
55
- // Spawn agents based on file type
56
- mcp__claude-flow__agent_spawn({
57
- "type": "coder",
58
- "name": "JavaScript Handler",
59
- "capabilities": ["javascript", "typescript"]
60
- })
61
- ```
62
-
63
- ### Fallback Configuration
64
- If MCP tools are unavailable:
65
- ```bash
66
- npx claude-flow-novice hook pre-task --auto-spawn-agents
67
- ```
68
-
69
- ## Benefits
70
- - 🤖 Zero manual agent management
71
- - 🎯 Perfect agent selection
72
- - 📈 Dynamic scaling
73
- - 💾 Resource efficiency
@@ -1,25 +0,0 @@
1
- # smart-spawn
2
-
3
- Intelligently spawn agents based on workload analysis.
4
-
5
- ## Usage
6
- ```bash
7
- npx claude-flow-novice automation smart-spawn [options]
8
- ```
9
-
10
- ## Options
11
- - `--analyze` - Analyze before spawning
12
- - `--threshold <n>` - Spawn threshold
13
- - `--topology <type>` - Preferred topology
14
-
15
- ## Examples
16
- ```bash
17
- # Smart spawn with analysis
18
- npx claude-flow-novice automation smart-spawn --analyze
19
-
20
- # Set spawn threshold
21
- npx claude-flow-novice automation smart-spawn --threshold 5
22
-
23
- # Force topology
24
- npx claude-flow-novice automation smart-spawn --topology hierarchical
25
- ```
@@ -1,25 +0,0 @@
1
- # workflow-select
2
-
3
- Automatically select optimal workflow based on task type.
4
-
5
- ## Usage
6
- ```bash
7
- npx claude-flow-novice automation workflow-select [options]
8
- ```
9
-
10
- ## Options
11
- - `--task <description>` - Task description
12
- - `--constraints <list>` - Workflow constraints
13
- - `--preview` - Preview without executing
14
-
15
- ## Examples
16
- ```bash
17
- # Select workflow for task
18
- npx claude-flow-novice automation workflow-select --task "Deploy to production"
19
-
20
- # With constraints
21
- npx claude-flow-novice automation workflow-select --constraints "no-downtime,rollback"
22
-
23
- # Preview mode
24
- npx claude-flow-novice automation workflow-select --task "Database migration" --preview
25
- ```