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/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py

rUv9b581d966b25
diff --git a/.claude/checkpoints/task-1754484538.json b/.claude/checkpoints/task-1754484538.json
new file mode 100644
index 0000000000..cb4427a112
--- /dev/null
+++ b/.claude/checkpoints/task-1754484538.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250806-124857", "task": "still getting errors. @ruvnet ➜ /workspaces/claude-code-flow (alpha-88) $ swarm-benchmark real hiv", "timestamp": "2025-08-06T12:48:58Z", "commit": "cd3482c4bbe0e699fa852b4880eebfafd77bbcf5", "github_release": "true"}
diff --git a/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py b/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py
index d6403b72d1..3379332ee1 100644
--- a/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py
+++ b/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py
@@ -311,27 +311,39 @@ class RealClaudeFlowExecutor:
def execute_hive_mind(self, config: HiveMindCommand) -> RealExecutionResult:
"""Execute a real hive-mind command with built-in executor (non-interactive)."""
- command = [
- self.claude_flow_path,
- "hive-mind",
- config.action
- ]
-
- if config.task:
- command.append(config.task)
-
+ # For hive-mind, we need to handle the spawn command differently
if config.action == "spawn":
+ # Hive-mind spawn expects: hive-mind spawn "objective"
+ command = [
+ self.claude_flow_path,
+ "hive-mind",
+ "spawn"
+ ]
+
+ # Add the task/objective as a quoted string
+ if config.task:
+ command.append(f'"{config.task}"')
+
+ # These flags may not be supported, but we'll try
command.extend(["--count", str(config.spawn_count)])
command.extend(["--coordination", config.coordination_mode])
-
- # Use executor for non-interactive mode
- command.append("--executor")
+ else:
+ # Other hive-mind commands
+ command = [
+ self.claude_flow_path,
+ "hive-mind",
+ config.action
+ ]
+
+ if config.task:
+ command.append(config.task)
# Add additional flags
if config.additional_flags:
command.extend(config.additional_flags)
- return self._execute_streaming_command(command, 300) # 5 minute default timeout
+ # Use a shorter timeout to avoid hanging
+ return self._execute_streaming_command(command, 30) # 30 second timeout
def execute_sparc(self, config: SparcCommand) -> RealExecutionResult:
"""Execute a real SPARC command."""