π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
π Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/swarm.js
rUv4c9ba5da964f
diff --git a/.claude/checkpoints/1754223787.json b/.claude/checkpoints/1754223787.jsonnew file mode 100644index 0000000000..739c4ff44b--- /dev/null+++ b/.claude/checkpoints/1754223787.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250803-122307", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:23:07Z", "type": "pre-edit", "original_branch": "alpha-84b"}diff --git a/.claude/checkpoints/1754223789.json b/.claude/checkpoints/1754223789.jsonnew file mode 100644index 0000000000..e3f7728e1f--- /dev/null+++ b/.claude/checkpoints/1754223789.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250803-122309", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:23:09Z", "type": "post-edit", "branch": "alpha-84b", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 120 +++++++++ .claude-flow/metrics/task-metrics.json | 8 +- .claude/checkpoints/1754223564.json | 1 + .claude/checkpoints/1754223566.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/swarm.js | 437 +++++++++++++++++++++++++++++-- 7 files changed, 545 insertions(+), 24 deletions(-) "}diff --git a/src/cli/simple-commands/swarm.js b/src/cli/simple-commands/swarm.jsindex 1f71322eb8..c649f6bded 100644--- a/src/cli/simple-commands/swarm.js+++ b/src/cli/simple-commands/swarm.js@@ -777,13 +777,11 @@ The swarm should be self-documenting - use memory_store to save all important inclaudeAvailable = false;}- if (claudeAvailable) {- // Claude is available, spawn it directly- console.log('π Launching Claude Flow Swarm System...');- console.log(`π Objective: ${objective}`);- console.log(`π― Strategy: ${strategy}`);- console.log(`ποΈ Mode: ${mode}`);- console.log(`π€ Max Agents: ${maxAgents}\n`);+ console.log('π Launching Claude Flow Swarm System...');+ console.log(`π Objective: ${objective}`);+ console.log(`π― Strategy: ${strategy}`);+ console.log(`ποΈ Mode: ${mode}`);+ console.log(`π€ Max Agents: ${maxAgents}\n`);console.log('π Launching Claude Code with Swarm Coordination');console.log('β'.repeat(60));@@ -843,6 +841,21 @@ The swarm should be self-documenting - use memory_store to save all important inprocess.exit(code || 0);});+ return;+ } else {+ // Claude CLI not available, provide instructions+ console.log('β οΈ Claude CLI not found. Please install Claude Code:');+ console.log(' https://claude.ai/download');+ console.log('\nπ Once installed, copy this prompt into Claude Code:\n');+ console.log('β'.repeat(80));+ console.log(swarmPrompt);+ console.log('β'.repeat(80));++ // Save prompt to file for easy access+ const promptFile = path.join(process.cwd(), '.claude-flow', `swarm-prompt-${Date.now()}.txt`);+ await mkdirAsync(path.dirname(promptFile));+ await writeTextFile(promptFile, swarmPrompt);+ console.log(`\nπΎ Prompt saved to: ${promptFile}`);return;}