π 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
rUv2101634eda0a
diff --git a/.claude/checkpoints/1758907923.json b/.claude/checkpoints/1758907923.jsonnew file mode 100644index 0000000000..064534166b--- /dev/null+++ b/.claude/checkpoints/1758907923.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250926-173203", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/inject-memory-protocol.js", "timestamp": "2025-09-26T17:32:03Z", "type": "pre-edit", "original_branch": "alpha-125"}diff --git a/.claude/checkpoints/1758907924.json b/.claude/checkpoints/1758907924.jsonnew file mode 100644index 0000000000..47652d9a0a--- /dev/null+++ b/.claude/checkpoints/1758907924.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250926-173204", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/inject-memory-protocol.js", "timestamp": "2025-09-26T17:32:04Z", "type": "post-edit", "branch": "alpha-125", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 48 ++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/agents/MIGRATION_SUMMARY.md | 222 ------------------- .claude/agents/README.md | 89 -------- .claude/agents/consensus/README.md | 253 ---------------------- .claude/agents/optimization/README.md | 250 --------------------- .claude/checkpoints/task-1758907797.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/inject-memory-protocol.js | 242 +++++++++++++++++++++ 10 files changed, 295 insertions(+), 818 deletions(-) "}diff --git a/src/cli/simple-commands/swarm.js b/src/cli/simple-commands/swarm.jsindex 10e645c8bb..6177ef5449 100644--- a/src/cli/simple-commands/swarm.js+++ b/src/cli/simple-commands/swarm.js@@ -794,6 +794,18 @@ The swarm should be self-documenting - use memory_store to save all important in// If --claude flag is used, force Claude Code even if CLI not availableif (flags && flags.claude) {+ // Inject memory coordination protocol into CLAUDE.md+ try {+ const { injectMemoryProtocol, enhanceSwarmPrompt } = await import('./inject-memory-protocol.js');+ await injectMemoryProtocol();++ // Enhance the prompt with memory coordination instructions+ swarmPrompt = enhanceSwarmPrompt(swarmPrompt, maxAgents);+ } catch (err) {+ // If injection module not available, continue with original prompt+ console.log('β οΈ Memory protocol injection not available, using standard prompt');+ }+// --claude flag means interactive mode, so don't apply non-interactiveconsole.log('π Launching Claude Flow Swarm System...');console.log(`π Objective: ${objective}`);@@ -802,6 +814,7 @@ The swarm should be self-documenting - use memory_store to save all important inconsole.log(`π€ Max Agents: ${maxAgents}\n`);console.log('π Launching Claude Code with Swarm Coordination');+ console.log('π Memory protocol injected into CLAUDE.md');console.log('β'.repeat(60));// Build arguments properly: for interactive mode, prompt can be first@@ -813,7 +826,7 @@ The swarm should be self-documenting - use memory_store to save all important inconsole.log('π Using --dangerously-skip-permissions by default for seamless swarm execution');}- // Add the prompt (for interactive mode, position doesn't matter as much)+ // Add the enhanced promptclaudeArgs.push(swarmPrompt);// --claude flag means interactive mode, so don't add non-interactive flags