Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 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

🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/hive-mind.js

rUv61ca9668a3ab
diff --git a/.claude/checkpoints/1758907948.json b/.claude/checkpoints/1758907948.json
new file mode 100644
index 0000000000..c083f1bc80
--- /dev/null
+++ b/.claude/checkpoints/1758907948.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250926-173228", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-09-26T17:32:28Z", "type": "pre-edit", "original_branch": "alpha-125"}
diff --git a/.claude/checkpoints/1758907949.json b/.claude/checkpoints/1758907949.json
new file mode 100644
index 0000000000..82cfc9372d
--- /dev/null
+++ b/.claude/checkpoints/1758907949.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250926-173229", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-09-26T17:32:29Z", "type": "post-edit", "branch": "alpha-125", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 60 ++++++++ .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/1758907923.json | 1 + .claude/checkpoints/1758907924.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/swarm.js | 15 +- 11 files changed, 80 insertions(+), 819 deletions(-) "}
diff --git a/src/cli/simple-commands/hive-mind.js b/src/cli/simple-commands/hive-mind.js
index faf9da81f1..e21fe4e487 100644
--- a/src/cli/simple-commands/hive-mind.js
+++ b/src/cli/simple-commands/hive-mind.js
@@ -2052,6 +2052,19 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
}
if (claudeAvailable && !flags.dryRun) {
+ // Inject memory coordination protocol into CLAUDE.md
+ try {
+ const { injectMemoryProtocol, enhanceHiveMindPrompt } = await import('./inject-memory-protocol.js');
+ await injectMemoryProtocol();
+
+ // Enhance the prompt with memory coordination instructions
+ hiveMindPrompt = enhanceHiveMindPrompt(hiveMindPrompt, workers);
+ console.log(chalk.green('📝 Memory coordination protocol injected into CLAUDE.md'));
+ } catch (err) {
+ // If injection module not available, continue with original prompt
+ console.log(chalk.yellow('⚠️ Memory protocol injection not available, using standard prompt'));
+ }
+
// Check if we should run in non-interactive mode
// Respect --non-interactive flag regardless of --claude
const isNonInteractive = flags['non-interactive'] || flags.nonInteractive;