claude-flow-novice 2.10.9 → 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.
- package/.claude/commands/README.md +157 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
- package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
- package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -21
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +312 -0
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +480 -115
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
- package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
- package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
- package/dist/cli/config-manager.js +109 -91
- package/dist/cli/config-manager.js.map +1 -1
- package/package.json +3 -2
- package/scripts/init-project.js +38 -3
- package/claude-assets/commands/agents/README.md +0 -10
- package/claude-assets/commands/agents/agent-capabilities.md +0 -21
- package/claude-assets/commands/agents/agent-coordination.md +0 -28
- package/claude-assets/commands/agents/agent-spawning.md +0 -28
- package/claude-assets/commands/agents/agent-types.md +0 -26
- package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/claude-assets/commands/analysis/README.md +0 -9
- package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
- package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
- package/claude-assets/commands/analysis/performance-report.md +0 -25
- package/claude-assets/commands/analysis/token-efficiency.md +0 -45
- package/claude-assets/commands/analysis/token-usage.md +0 -25
- package/claude-assets/commands/automation/README.md +0 -9
- package/claude-assets/commands/automation/auto-agent.md +0 -122
- package/claude-assets/commands/automation/self-healing.md +0 -106
- package/claude-assets/commands/automation/session-memory.md +0 -90
- package/claude-assets/commands/automation/smart-agents.md +0 -73
- package/claude-assets/commands/automation/smart-spawn.md +0 -25
- package/claude-assets/commands/automation/workflow-select.md +0 -25
- package/claude-assets/commands/claude-md.js +0 -237
- package/claude-assets/commands/claude-soul.js +0 -28
- package/claude-assets/commands/cli-integration.js +0 -216
- package/claude-assets/commands/coordination/README.md +0 -9
- package/claude-assets/commands/coordination/agent-spawn.md +0 -25
- package/claude-assets/commands/coordination/coordination-system.md +0 -88
- package/claude-assets/commands/coordination/init.md +0 -44
- package/claude-assets/commands/coordination/orchestrate.md +0 -43
- package/claude-assets/commands/coordination/spawn.md +0 -45
- package/claude-assets/commands/coordination/swarm-init.md +0 -85
- package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
- package/claude-assets/commands/github/README.md +0 -11
- package/claude-assets/commands/github/code-review-swarm.md +0 -514
- package/claude-assets/commands/github/code-review.md +0 -25
- package/claude-assets/commands/github/github-modes.md +0 -147
- package/claude-assets/commands/github/github-swarm.md +0 -121
- package/claude-assets/commands/github/issue-tracker.md +0 -292
- package/claude-assets/commands/github/issue-triage.md +0 -25
- package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
- package/claude-assets/commands/github/pr-enhance.md +0 -26
- package/claude-assets/commands/github/pr-manager.md +0 -170
- package/claude-assets/commands/github/project-board-sync.md +0 -471
- package/claude-assets/commands/github/release-manager.md +0 -338
- package/claude-assets/commands/github/release-swarm.md +0 -544
- package/claude-assets/commands/github/repo-analyze.md +0 -25
- package/claude-assets/commands/github/repo-architect.md +0 -367
- package/claude-assets/commands/github/swarm-issue.md +0 -482
- package/claude-assets/commands/github/swarm-pr.md +0 -285
- package/claude-assets/commands/github/sync-coordinator.md +0 -301
- package/claude-assets/commands/github/workflow-automation.md +0 -442
- package/claude-assets/commands/github.js +0 -638
- package/claude-assets/commands/hive-mind/README.md +0 -17
- package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
- package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
- package/claude-assets/commands/hooks/README.md +0 -11
- package/claude-assets/commands/hooks/overview.md +0 -58
- package/claude-assets/commands/hooks/post-edit.md +0 -117
- package/claude-assets/commands/hooks/post-task.md +0 -112
- package/claude-assets/commands/hooks/pre-edit.md +0 -113
- package/claude-assets/commands/hooks/pre-task.md +0 -111
- package/claude-assets/commands/hooks/session-end.md +0 -118
- package/claude-assets/commands/hooks/session-start.md +0 -9
- package/claude-assets/commands/hooks/setup.md +0 -103
- package/claude-assets/commands/hooks.js +0 -651
- package/claude-assets/commands/index.js +0 -119
- package/claude-assets/commands/memory/README.md +0 -9
- package/claude-assets/commands/memory/memory-bank.md +0 -58
- package/claude-assets/commands/memory/memory-persist.md +0 -25
- package/claude-assets/commands/memory/memory-search.md +0 -25
- package/claude-assets/commands/memory/memory-usage.md +0 -25
- package/claude-assets/commands/memory/neural.md +0 -47
- package/claude-assets/commands/memory/usage.md +0 -46
- package/claude-assets/commands/monitoring/README.md +0 -9
- package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
- package/claude-assets/commands/monitoring/agents.md +0 -44
- package/claude-assets/commands/monitoring/real-time-view.md +0 -25
- package/claude-assets/commands/monitoring/status.md +0 -46
- package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
- package/claude-assets/commands/neural.js +0 -572
- package/claude-assets/commands/optimization/README.md +0 -9
- package/claude-assets/commands/optimization/auto-topology.md +0 -62
- package/claude-assets/commands/optimization/cache-manage.md +0 -25
- package/claude-assets/commands/optimization/parallel-execute.md +0 -25
- package/claude-assets/commands/optimization/parallel-execution.md +0 -50
- package/claude-assets/commands/optimization/topology-optimize.md +0 -25
- package/claude-assets/commands/pair/README.md +0 -261
- package/claude-assets/commands/pair/commands.md +0 -546
- package/claude-assets/commands/pair/config.md +0 -510
- package/claude-assets/commands/pair/examples.md +0 -512
- package/claude-assets/commands/pair/modes.md +0 -348
- package/claude-assets/commands/pair/session.md +0 -407
- package/claude-assets/commands/pair/start.md +0 -209
- package/claude-assets/commands/parse-epic.js +0 -180
- package/claude-assets/commands/performance.js +0 -582
- package/claude-assets/commands/register-all-commands.js +0 -320
- package/claude-assets/commands/register-claude-md.js +0 -82
- package/claude-assets/commands/register-claude-soul.js +0 -80
- package/claude-assets/commands/sparc/analyzer.md +0 -52
- package/claude-assets/commands/sparc/architect.md +0 -53
- package/claude-assets/commands/sparc/batch-executor.md +0 -54
- package/claude-assets/commands/sparc/coder.md +0 -54
- package/claude-assets/commands/sparc/debugger.md +0 -54
- package/claude-assets/commands/sparc/designer.md +0 -53
- package/claude-assets/commands/sparc/documenter.md +0 -54
- package/claude-assets/commands/sparc/innovator.md +0 -54
- package/claude-assets/commands/sparc/memory-manager.md +0 -54
- package/claude-assets/commands/sparc/optimizer.md +0 -54
- package/claude-assets/commands/sparc/orchestrator.md +0 -132
- package/claude-assets/commands/sparc/researcher.md +0 -54
- package/claude-assets/commands/sparc/reviewer.md +0 -54
- package/claude-assets/commands/sparc/sparc-modes.md +0 -174
- package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
- package/claude-assets/commands/sparc/tdd.md +0 -54
- package/claude-assets/commands/sparc/tester.md +0 -54
- package/claude-assets/commands/sparc/workflow-manager.md +0 -54
- package/claude-assets/commands/sparc.js +0 -110
- package/claude-assets/commands/stream-chain/pipeline.md +0 -121
- package/claude-assets/commands/stream-chain/run.md +0 -70
- package/claude-assets/commands/swarm/README.md +0 -15
- package/claude-assets/commands/swarm/analysis.md +0 -95
- package/claude-assets/commands/swarm/development.md +0 -96
- package/claude-assets/commands/swarm/examples.md +0 -168
- package/claude-assets/commands/swarm/maintenance.md +0 -102
- package/claude-assets/commands/swarm/optimization.md +0 -117
- package/claude-assets/commands/swarm/research.md +0 -136
- package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
- package/claude-assets/commands/swarm/swarm-background.md +0 -8
- package/claude-assets/commands/swarm/swarm-init.md +0 -19
- package/claude-assets/commands/swarm/swarm-modes.md +0 -8
- package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
- package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
- package/claude-assets/commands/swarm/swarm-status.md +0 -8
- package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
- package/claude-assets/commands/swarm/swarm.md +0 -27
- package/claude-assets/commands/swarm/testing.md +0 -131
- package/claude-assets/commands/swarm.js +0 -423
- package/claude-assets/commands/testing/playwright-e2e.md +0 -288
- package/claude-assets/commands/training/README.md +0 -9
- package/claude-assets/commands/training/model-update.md +0 -25
- package/claude-assets/commands/training/neural-patterns.md +0 -74
- package/claude-assets/commands/training/neural-train.md +0 -25
- package/claude-assets/commands/training/pattern-learn.md +0 -25
- package/claude-assets/commands/training/specialization.md +0 -63
- package/claude-assets/commands/truth/start.md +0 -143
- package/claude-assets/commands/validate-commands.js +0 -223
- package/claude-assets/commands/verify/check.md +0 -50
- package/claude-assets/commands/verify/start.md +0 -128
- package/claude-assets/commands/workflow.js +0 -606
- package/claude-assets/commands/workflows/README.md +0 -9
- package/claude-assets/commands/workflows/development.md +0 -78
- package/claude-assets/commands/workflows/research.md +0 -63
- package/claude-assets/commands/workflows/workflow-create.md +0 -25
- package/claude-assets/commands/workflows/workflow-execute.md +0 -25
- package/claude-assets/commands/workflows/workflow-export.md +0 -25
- package/claude-assets/hooks/post-edit.config.json +0 -23
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* CLAUDE-SOUL.md Slash Command
|
|
5
|
-
*
|
|
6
|
-
* Interactive questionnaire to create a project soul document.
|
|
7
|
-
* Guides users through defining their project's who, what, when, where, why
|
|
8
|
-
* to provide context for AI agents when they hit roadblocks.
|
|
9
|
-
* Document size: 250-500 words focusing on project essence and decision context.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
// Import from the main implementation
|
|
13
|
-
import { executeClaudeSoulCommand } from '../../src/slash-commands/claude-soul.js';
|
|
14
|
-
|
|
15
|
-
// Parse arguments
|
|
16
|
-
const args = {
|
|
17
|
-
preview: process.argv.includes('--preview'),
|
|
18
|
-
force: process.argv.includes('--force'),
|
|
19
|
-
backup: !process.argv.includes('--no-backup'),
|
|
20
|
-
interactive: !process.argv.includes('--no-interactive'),
|
|
21
|
-
help: process.argv.includes('--help') || process.argv.includes('-h')
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// Execute the command
|
|
25
|
-
executeClaudeSoulCommand(args).catch(error => {
|
|
26
|
-
console.error('Error:', error.message);
|
|
27
|
-
process.exit(1);
|
|
28
|
-
});
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* CLI Integration for Slash Commands
|
|
5
|
-
*
|
|
6
|
-
* Integrates slash commands with the main CLI system
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { globalRegistry, executeSlashCommand } from './register-all-commands.js';
|
|
10
|
-
import { SlashCommand } from '../core/slash-command.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* CLI Slash Command Handler
|
|
14
|
-
*/
|
|
15
|
-
export class CliSlashHandler {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.registry = globalRegistry;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Handle CLI input and execute slash commands
|
|
22
|
-
* @param {string[]} args - CLI arguments
|
|
23
|
-
*/
|
|
24
|
-
async handleCliInput(args) {
|
|
25
|
-
if (args.length === 0) {
|
|
26
|
-
this.showHelp();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const command = args[0];
|
|
31
|
-
|
|
32
|
-
// Handle help commands
|
|
33
|
-
if (command === 'help' || command === '--help' || command === '-h') {
|
|
34
|
-
if (args.length > 1) {
|
|
35
|
-
this.showCommandHelp(args[1]);
|
|
36
|
-
} else {
|
|
37
|
-
this.showHelp();
|
|
38
|
-
}
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// Handle list commands
|
|
43
|
-
if (command === 'list' || command === 'ls') {
|
|
44
|
-
this.listCommands();
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Execute slash command
|
|
49
|
-
const slashCommand = `/${command}`;
|
|
50
|
-
const slashArgs = args.slice(1);
|
|
51
|
-
const input = `${slashCommand} ${slashArgs.join(' ')}`.trim();
|
|
52
|
-
|
|
53
|
-
try {
|
|
54
|
-
const result = await executeSlashCommand(input);
|
|
55
|
-
|
|
56
|
-
if (result.success) {
|
|
57
|
-
if (result.result && result.result.prompt) {
|
|
58
|
-
console.log(result.result.prompt);
|
|
59
|
-
} else {
|
|
60
|
-
console.log('✅ Command executed successfully');
|
|
61
|
-
if (result.result) {
|
|
62
|
-
console.log(JSON.stringify(result.result, null, 2));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
} else {
|
|
66
|
-
console.error(`❌ ${result.error}`);
|
|
67
|
-
if (result.suggestions && result.suggestions.length > 0) {
|
|
68
|
-
console.log(`Did you mean: ${result.suggestions.join(', ')}?`);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
} catch (error) {
|
|
72
|
-
console.error(`❌ CLI Error: ${error.message}`);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Show general help
|
|
78
|
-
*/
|
|
79
|
-
showHelp() {
|
|
80
|
-
console.log(this.registry.generateHelpText());
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Show help for specific command
|
|
85
|
-
* @param {string} commandName - Command name
|
|
86
|
-
*/
|
|
87
|
-
showCommandHelp(commandName) {
|
|
88
|
-
const helpResult = this.registry.getHelp(commandName);
|
|
89
|
-
|
|
90
|
-
if (helpResult.success) {
|
|
91
|
-
const help = helpResult.help;
|
|
92
|
-
console.log(`
|
|
93
|
-
🚀 **${help.name.toUpperCase()} COMMAND**
|
|
94
|
-
`);
|
|
95
|
-
console.log(`**Description:** ${help.description}`);
|
|
96
|
-
console.log(`**Usage:** ${help.usage}`);
|
|
97
|
-
|
|
98
|
-
if (help.examples && help.examples.length > 0) {
|
|
99
|
-
console.log(`
|
|
100
|
-
**Examples:**`);
|
|
101
|
-
help.examples.forEach(example => {
|
|
102
|
-
console.log(` ${example}`);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
console.error(`❌ ${helpResult.error}`);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* List all available commands
|
|
112
|
-
*/
|
|
113
|
-
listCommands() {
|
|
114
|
-
const commands = this.registry.listCommands();
|
|
115
|
-
|
|
116
|
-
console.log('
|
|
117
|
-
🚀 **AVAILABLE SLASH COMMANDS**
|
|
118
|
-
');
|
|
119
|
-
|
|
120
|
-
commands.forEach(cmd => {
|
|
121
|
-
console.log(`/${cmd.name} - ${cmd.description}`);
|
|
122
|
-
if (cmd.aliases.length > 0) {
|
|
123
|
-
console.log(` Aliases: ${cmd.aliases.map(a => `/${a}`).join(', ')}`);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
console.log(`
|
|
128
|
-
Total: ${commands.length} commands available`);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Interactive CLI mode
|
|
134
|
-
*/
|
|
135
|
-
export class InteractiveCliMode {
|
|
136
|
-
constructor() {
|
|
137
|
-
this.handler = new CliSlashHandler();
|
|
138
|
-
this.running = false;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Start interactive mode
|
|
143
|
-
*/
|
|
144
|
-
async start() {
|
|
145
|
-
this.running = true;
|
|
146
|
-
|
|
147
|
-
console.log('🚀 Claude-Flow Interactive Slash Command Mode');
|
|
148
|
-
console.log('Type commands without the leading "/" or "help" for assistance');
|
|
149
|
-
console.log('Type "exit" to quit\n');
|
|
150
|
-
|
|
151
|
-
// Note: In a real implementation, you would use readline or similar
|
|
152
|
-
// This is a simplified version for demonstration
|
|
153
|
-
process.stdin.setEncoding('utf8');
|
|
154
|
-
|
|
155
|
-
process.stdin.on('readable', async () => {
|
|
156
|
-
const chunk = process.stdin.read();
|
|
157
|
-
if (chunk !== null) {
|
|
158
|
-
const input = chunk.trim();
|
|
159
|
-
|
|
160
|
-
if (input === 'exit' || input === 'quit') {
|
|
161
|
-
this.stop();
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (input) {
|
|
166
|
-
const args = input.split(' ');
|
|
167
|
-
await this.handler.handleCliInput(args);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (this.running) {
|
|
171
|
-
process.stdout.write('claude-flow> ');
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
process.stdout.write('claude-flow> ');
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Stop interactive mode
|
|
181
|
-
*/
|
|
182
|
-
stop() {
|
|
183
|
-
this.running = false;
|
|
184
|
-
console.log('\n👋 Goodbye!');
|
|
185
|
-
process.exit(0);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Main CLI entry point
|
|
191
|
-
* @param {string[]} args - Command line arguments
|
|
192
|
-
*/
|
|
193
|
-
export async function runCliSlashCommands(args = process.argv.slice(2)) {
|
|
194
|
-
const handler = new CliSlashHandler();
|
|
195
|
-
|
|
196
|
-
// Check for interactive mode
|
|
197
|
-
if (args.includes('--interactive') || args.includes('-i')) {
|
|
198
|
-
const interactive = new InteractiveCliMode();
|
|
199
|
-
await interactive.start();
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
// Handle standard CLI input
|
|
204
|
-
await handler.handleCliInput(args);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// Auto-run if this script is executed directly
|
|
208
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
209
|
-
runCliSlashCommands();
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export default {
|
|
213
|
-
CliSlashHandler,
|
|
214
|
-
InteractiveCliMode,
|
|
215
|
-
runCliSlashCommands
|
|
216
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# agent-spawn
|
|
2
|
-
|
|
3
|
-
Spawn a new agent in the current swarm.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
```bash
|
|
7
|
-
npx cfn-spawn agent spawn [options]
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Options
|
|
11
|
-
- `--type <type>` - Agent type (coder, researcher, analyst, tester, coordinator)
|
|
12
|
-
- `--name <name>` - Custom agent name
|
|
13
|
-
- `--skills <list>` - Specific skills (comma-separated)
|
|
14
|
-
|
|
15
|
-
## Examples
|
|
16
|
-
```bash
|
|
17
|
-
# Spawn coder agent
|
|
18
|
-
npx cfn-spawn agent spawn --type coder
|
|
19
|
-
|
|
20
|
-
# With custom name
|
|
21
|
-
npx cfn-spawn agent spawn --type researcher --name "API Expert"
|
|
22
|
-
|
|
23
|
-
# With specific skills
|
|
24
|
-
npx cfn-spawn agent spawn --type coder --skills "python,fastapi,testing"
|
|
25
|
-
```
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# Agent Coordination System
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
The Claude-Flow coordination system manages multiple AI agents working together on complex tasks. It provides intelligent task distribution, resource management, and inter-agent communication.
|
|
5
|
-
|
|
6
|
-
## Agent Types and Capabilities
|
|
7
|
-
- **Researcher**: Web search, information gathering, knowledge synthesis
|
|
8
|
-
- **Coder**: Code analysis, development, debugging, testing
|
|
9
|
-
- **Analyst**: Data processing, pattern recognition, insights generation
|
|
10
|
-
- **Coordinator**: Task planning, resource allocation, workflow management
|
|
11
|
-
- **General**: Multi-purpose agent with balanced capabilities
|
|
12
|
-
|
|
13
|
-
## Task Management
|
|
14
|
-
- **Priority Levels**: 1 (lowest) to 10 (highest)
|
|
15
|
-
- **Dependencies**: Tasks can depend on completion of other tasks
|
|
16
|
-
- **Parallel Execution**: Independent tasks run concurrently
|
|
17
|
-
- **Load Balancing**: Automatic distribution based on agent capacity
|
|
18
|
-
|
|
19
|
-
## Coordination Commands
|
|
20
|
-
```bash
|
|
21
|
-
# Agent Management
|
|
22
|
-
npx cfn-spawn agent spawn <type> --name <name> --priority <1-10>
|
|
23
|
-
npx cfn-spawn agent list
|
|
24
|
-
npx cfn-spawn agent info <agent-id>
|
|
25
|
-
npx cfn-spawn agent terminate <agent-id>
|
|
26
|
-
|
|
27
|
-
# Task Management
|
|
28
|
-
npx claude-flow-novice task create <type> <description> --priority <1-10> --deps <task-ids>
|
|
29
|
-
npx claude-flow-novice task list --verbose
|
|
30
|
-
npx claude-flow-novice task status <task-id>
|
|
31
|
-
npx claude-flow-novice task cancel <task-id>
|
|
32
|
-
|
|
33
|
-
# System Monitoring
|
|
34
|
-
npx claude-flow-novice status --verbose
|
|
35
|
-
npx claude-flow-novice monitor --interval 5000
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Workflow Execution
|
|
39
|
-
Workflows are defined in JSON format and can orchestrate complex multi-agent operations:
|
|
40
|
-
```bash
|
|
41
|
-
npx claude-flow-novice workflow examples/research-workflow.json
|
|
42
|
-
npx claude-flow-novice workflow examples/development-config.json --async
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Advanced Features
|
|
46
|
-
- **Circuit Breakers**: Automatic failure handling and recovery
|
|
47
|
-
- **Work Stealing**: Dynamic load redistribution for efficiency
|
|
48
|
-
- **Resource Limits**: Memory and CPU usage constraints
|
|
49
|
-
- **Metrics Collection**: Performance monitoring and optimization
|
|
50
|
-
|
|
51
|
-
## Configuration
|
|
52
|
-
Coordination settings in `claude-flow.config.json`:
|
|
53
|
-
```json
|
|
54
|
-
{
|
|
55
|
-
"orchestrator": {
|
|
56
|
-
"maxConcurrentTasks": 10,
|
|
57
|
-
"taskTimeout": 300000,
|
|
58
|
-
"defaultPriority": 5
|
|
59
|
-
},
|
|
60
|
-
"agents": {
|
|
61
|
-
"maxAgents": 20,
|
|
62
|
-
"defaultCapabilities": ["research", "code", "terminal"],
|
|
63
|
-
"resourceLimits": {
|
|
64
|
-
"memory": "1GB",
|
|
65
|
-
"cpu": "50%"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Communication Patterns
|
|
72
|
-
- **Direct Messaging**: Agent-to-agent communication
|
|
73
|
-
- **Event Broadcasting**: System-wide notifications
|
|
74
|
-
- **Shared Memory**: Common information access
|
|
75
|
-
- **Task Handoff**: Seamless work transfer between agents
|
|
76
|
-
|
|
77
|
-
## Best Practices
|
|
78
|
-
- Start with general agents and specialize as needed
|
|
79
|
-
- Use descriptive task names and clear requirements
|
|
80
|
-
- Monitor system resources during heavy workloads
|
|
81
|
-
- Implement proper error handling in workflows
|
|
82
|
-
- Regular cleanup of completed tasks and inactive agents
|
|
83
|
-
|
|
84
|
-
## Troubleshooting
|
|
85
|
-
- Check agent health with `npx claude-flow-novice status`
|
|
86
|
-
- View detailed logs with `npx claude-flow-novice monitor`
|
|
87
|
-
- Restart stuck agents with terminate/spawn cycle
|
|
88
|
-
- Use `--verbose` flags for detailed diagnostic information
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Initialize Coordination Framework
|
|
2
|
-
|
|
3
|
-
## 🎯 Key Principle
|
|
4
|
-
**This tool coordinates Claude Code's actions. It does NOT write code or create content.**
|
|
5
|
-
|
|
6
|
-
## MCP Tool Usage in Claude Code
|
|
7
|
-
|
|
8
|
-
**Tool:** `mcp__claude-flow__swarm_init`
|
|
9
|
-
|
|
10
|
-
## Parameters
|
|
11
|
-
```json
|
|
12
|
-
{"topology": "mesh", "maxAgents": 5, "strategy": "balanced"}
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
Set up a coordination topology to guide Claude Code's approach to complex tasks
|
|
17
|
-
|
|
18
|
-
## Details
|
|
19
|
-
This tool creates a coordination framework that helps Claude Code:
|
|
20
|
-
- Break down complex problems systematically
|
|
21
|
-
- Approach tasks from multiple perspectives
|
|
22
|
-
- Maintain consistency across large projects
|
|
23
|
-
- Work more efficiently through structured coordination
|
|
24
|
-
|
|
25
|
-
Remember: This does NOT create actual coding agents. It creates a coordination pattern for Claude Code to follow.
|
|
26
|
-
|
|
27
|
-
## Example Usage
|
|
28
|
-
|
|
29
|
-
**In Claude Code:**
|
|
30
|
-
1. Use the tool: `mcp__claude-flow__swarm_init`
|
|
31
|
-
2. With parameters: `{"topology": "mesh", "maxAgents": 5, "strategy": "balanced"}`
|
|
32
|
-
3. Claude Code then executes the coordinated plan using its native tools
|
|
33
|
-
|
|
34
|
-
## Important Reminders
|
|
35
|
-
- ✅ This tool provides coordination and structure
|
|
36
|
-
- ✅ Claude Code performs all actual implementation
|
|
37
|
-
- ❌ The tool does NOT write code
|
|
38
|
-
- ❌ The tool does NOT access files directly
|
|
39
|
-
- ❌ The tool does NOT execute commands
|
|
40
|
-
|
|
41
|
-
## See Also
|
|
42
|
-
- Main documentation: /claude.md
|
|
43
|
-
- Other commands in this category
|
|
44
|
-
- Workflow examples in /workflows/
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Coordinate Task Execution
|
|
2
|
-
|
|
3
|
-
## 🎯 Key Principle
|
|
4
|
-
**This tool coordinates Claude Code's actions. It does NOT write code or create content.**
|
|
5
|
-
|
|
6
|
-
## MCP Tool Usage in Claude Code
|
|
7
|
-
|
|
8
|
-
**Tool:** `mcp__claude-flow__task_orchestrate`
|
|
9
|
-
|
|
10
|
-
## Parameters
|
|
11
|
-
```json
|
|
12
|
-
{"task": "Implement authentication system", "strategy": "parallel", "priority": "high"}
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
Break down and coordinate complex tasks for systematic execution by Claude Code
|
|
17
|
-
|
|
18
|
-
## Details
|
|
19
|
-
Orchestration strategies:
|
|
20
|
-
- **parallel**: Claude Code works on independent components simultaneously
|
|
21
|
-
- **sequential**: Step-by-step execution for dependent tasks
|
|
22
|
-
- **adaptive**: Dynamically adjusts based on task complexity
|
|
23
|
-
|
|
24
|
-
The orchestrator creates a plan that Claude Code follows using its native tools.
|
|
25
|
-
|
|
26
|
-
## Example Usage
|
|
27
|
-
|
|
28
|
-
**In Claude Code:**
|
|
29
|
-
1. Use the tool: `mcp__claude-flow__task_orchestrate`
|
|
30
|
-
2. With parameters: `{"task": "Implement authentication system", "strategy": "parallel", "priority": "high"}`
|
|
31
|
-
3. Claude Code then executes the coordinated plan using its native tools
|
|
32
|
-
|
|
33
|
-
## Important Reminders
|
|
34
|
-
- ✅ This tool provides coordination and structure
|
|
35
|
-
- ✅ Claude Code performs all actual implementation
|
|
36
|
-
- ❌ The tool does NOT write code
|
|
37
|
-
- ❌ The tool does NOT access files directly
|
|
38
|
-
- ❌ The tool does NOT execute commands
|
|
39
|
-
|
|
40
|
-
## See Also
|
|
41
|
-
- Main documentation: /claude.md
|
|
42
|
-
- Other commands in this category
|
|
43
|
-
- Workflow examples in /workflows/
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Create Cognitive Patterns
|
|
2
|
-
|
|
3
|
-
## 🎯 Key Principle
|
|
4
|
-
**This tool coordinates Claude Code's actions. It does NOT write code or create content.**
|
|
5
|
-
|
|
6
|
-
## MCP Tool Usage in Claude Code
|
|
7
|
-
|
|
8
|
-
**Tool:** `mcp__claude-flow__agent_spawn`
|
|
9
|
-
|
|
10
|
-
## Parameters
|
|
11
|
-
```json
|
|
12
|
-
{"type": "researcher", "name": "Literature Analysis", "capabilities": ["deep-analysis"]}
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Description
|
|
16
|
-
Define cognitive patterns that represent different approaches Claude Code can take
|
|
17
|
-
|
|
18
|
-
## Details
|
|
19
|
-
Agent types represent thinking patterns, not actual coders:
|
|
20
|
-
- **researcher**: Systematic exploration approach
|
|
21
|
-
- **coder**: Implementation-focused thinking
|
|
22
|
-
- **analyst**: Data-driven decision making
|
|
23
|
-
- **architect**: Big-picture system design
|
|
24
|
-
- **reviewer**: Quality and consistency checking
|
|
25
|
-
|
|
26
|
-
These patterns guide how Claude Code approaches different aspects of your task.
|
|
27
|
-
|
|
28
|
-
## Example Usage
|
|
29
|
-
|
|
30
|
-
**In Claude Code:**
|
|
31
|
-
1. Use the tool: `mcp__claude-flow__agent_spawn`
|
|
32
|
-
2. With parameters: `{"type": "researcher", "name": "Literature Analysis", "capabilities": ["deep-analysis"]}`
|
|
33
|
-
3. Claude Code then executes the coordinated plan using its native tools
|
|
34
|
-
|
|
35
|
-
## Important Reminders
|
|
36
|
-
- ✅ This tool provides coordination and structure
|
|
37
|
-
- ✅ Claude Code performs all actual implementation
|
|
38
|
-
- ❌ The tool does NOT write code
|
|
39
|
-
- ❌ The tool does NOT access files directly
|
|
40
|
-
- ❌ The tool does NOT execute commands
|
|
41
|
-
|
|
42
|
-
## See Also
|
|
43
|
-
- Main documentation: /claude.md
|
|
44
|
-
- Other commands in this category
|
|
45
|
-
- Workflow examples in /workflows/
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# swarm init
|
|
2
|
-
|
|
3
|
-
Initialize a Claude Flow swarm with specified topology and configuration.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npx claude-flow-novice swarm init [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Options
|
|
12
|
-
|
|
13
|
-
- `--topology, -t <type>` - Swarm topology: mesh, hierarchical, ring, star (default: hierarchical)
|
|
14
|
-
- `--max-agents, -m <number>` - Maximum number of agents (default: 8)
|
|
15
|
-
- `--strategy, -s <type>` - Execution strategy: balanced, parallel, sequential (default: parallel)
|
|
16
|
-
- `--auto-spawn` - Automatically spawn agents based on task complexity
|
|
17
|
-
- `--memory` - Enable cross-session memory persistence
|
|
18
|
-
- `--github` - Enable GitHub integration features
|
|
19
|
-
|
|
20
|
-
## Examples
|
|
21
|
-
|
|
22
|
-
### Basic initialization
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npx claude-flow-novice swarm init
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Mesh topology for research
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npx claude-flow-novice swarm init --topology mesh --max-agents 5 --strategy balanced
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Hierarchical for development
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npx claude-flow-novice swarm init --topology hierarchical --max-agents 10 --strategy parallel --auto-spawn
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### GitHub-focused swarm
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npx claude-flow-novice swarm init --topology star --github --memory
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Topologies
|
|
47
|
-
|
|
48
|
-
### Mesh
|
|
49
|
-
|
|
50
|
-
- All agents connect to all others
|
|
51
|
-
- Best for: Research, exploration, brainstorming
|
|
52
|
-
- Communication: High overhead, maximum information sharing
|
|
53
|
-
|
|
54
|
-
### Hierarchical
|
|
55
|
-
|
|
56
|
-
- Tree structure with clear command chain
|
|
57
|
-
- Best for: Development, structured tasks, large projects
|
|
58
|
-
- Communication: Efficient, clear responsibilities
|
|
59
|
-
|
|
60
|
-
### Ring
|
|
61
|
-
|
|
62
|
-
- Agents connect in a circle
|
|
63
|
-
- Best for: Pipeline processing, sequential workflows
|
|
64
|
-
- Communication: Low overhead, ordered processing
|
|
65
|
-
|
|
66
|
-
### Star
|
|
67
|
-
|
|
68
|
-
- Central coordinator with satellite agents
|
|
69
|
-
- Best for: Simple tasks, centralized control
|
|
70
|
-
- Communication: Minimal overhead, clear coordination
|
|
71
|
-
|
|
72
|
-
## Integration with Claude Code
|
|
73
|
-
|
|
74
|
-
Once initialized, use MCP tools in Claude Code:
|
|
75
|
-
|
|
76
|
-
```javascript
|
|
77
|
-
mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 8 }
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## See Also
|
|
81
|
-
|
|
82
|
-
- `agent spawn` - Create swarm agents
|
|
83
|
-
- `task orchestrate` - Coordinate task execution
|
|
84
|
-
- `swarm status` - Check swarm state
|
|
85
|
-
- `swarm monitor` - Real-time monitoring
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# task-orchestrate
|
|
2
|
-
|
|
3
|
-
Orchestrate complex tasks across the swarm.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
```bash
|
|
7
|
-
npx claude-flow-novice task orchestrate [options]
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Options
|
|
11
|
-
- `--task <description>` - Task description
|
|
12
|
-
- `--strategy <type>` - Orchestration strategy
|
|
13
|
-
- `--priority <level>` - Task priority (low, medium, high, critical)
|
|
14
|
-
|
|
15
|
-
## Examples
|
|
16
|
-
```bash
|
|
17
|
-
# Orchestrate development task
|
|
18
|
-
npx claude-flow-novice task orchestrate --task "Implement user authentication"
|
|
19
|
-
|
|
20
|
-
# High priority task
|
|
21
|
-
npx claude-flow-novice task orchestrate --task "Fix production bug" --priority critical
|
|
22
|
-
|
|
23
|
-
# With specific strategy
|
|
24
|
-
npx claude-flow-novice task orchestrate --task "Refactor codebase" --strategy parallel
|
|
25
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Github Commands
|
|
2
|
-
|
|
3
|
-
Commands for github operations in Claude Flow.
|
|
4
|
-
|
|
5
|
-
## Available Commands
|
|
6
|
-
|
|
7
|
-
- [github-swarm](./github-swarm.md)
|
|
8
|
-
- [repo-analyze](./repo-analyze.md)
|
|
9
|
-
- [pr-enhance](./pr-enhance.md)
|
|
10
|
-
- [issue-triage](./issue-triage.md)
|
|
11
|
-
- [code-review](./code-review.md)
|