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

rUv260053df1635
diff --git a/.claude/checkpoints/task-1754358033.json b/.claude/checkpoints/task-1754358033.json
new file mode 100644
index 0000000000..c51f624f9c
--- /dev/null
+++ b/.claude/checkpoints/task-1754358033.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250805-014032", "task": "{{user_prompt}} ", "timestamp": "2025-08-05T01:40:33Z", "commit": "f42ed96ebc950eed40e8981eb5b08673831dfce7", "github_release": "true"}
diff --git a/src/cli/simple-commands/hive-mind.js b/src/cli/simple-commands/hive-mind.js
index 1a799701c7..07f90c5206 100644
--- a/src/cli/simple-commands/hive-mind.js
+++ b/src/cli/simple-commands/hive-mind.js
@@ -2846,7 +2846,10 @@ Resume the hive mind operation with full context awareness and continue working
async function launchClaudeWithContext(prompt, flags, sessionId) {
try {
// ALWAYS save the prompt file first (fix for issue #330)
- const promptFile = `hive-mind-resume-${Date.now()}.txt`;
+ // Ensure sessions directory exists
+ const sessionsDir = path.join('.hive-mind', 'sessions');
+ await mkdirAsync(sessionsDir, { recursive: true });
+ const promptFile = path.join(sessionsDir, `hive-mind-resume-${sessionId}-${Date.now()}.txt`);
await writeFile(promptFile, prompt);
console.log(chalk.green(`\n✓ Session context saved to: ${promptFile}`));