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

rUv6600c35d3192
diff --git a/.claude/checkpoints/task-1754482584.json b/.claude/checkpoints/task-1754482584.json
new file mode 100644
index 0000000000..b4265d661c
--- /dev/null
+++ b/.claude/checkpoints/task-1754482584.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250806-121623", "task": "use the --non-interactive command for claude-flow to bypass interactive dialogs. ", "timestamp": "2025-08-06T12:16:24Z", "commit": "4a9731098611caa82f70230578ad2725e7bcf6d4", "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 78a03f30a8..7a39825624 100644
--- a/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py
+++ b/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py
@@ -286,18 +286,25 @@ class RealClaudeFlowExecutor:
def execute_swarm(self, config: SwarmCommand) -> RealExecutionResult:
"""Execute a real swarm command."""
- # For benchmarking, simulate swarm execution by creating actual output
- # Real swarm requires interactive Claude Code which can't be automated
+ # Build real swarm command with --executor flag for non-interactive execution
+ command = [
+ self.claude_flow_path,
+ "swarm",
+ config.objective,
+ "--executor", # Use built-in executor for non-interactive mode
+ "--strategy", config.strategy,
+ "--mode", config.mode,
+ "--max-agents", str(config.max_agents)
+ ]
- start_time = time.time()
+ # Add additional flags
+ if config.additional_flags:
+ command.extend(config.additional_flags)
- # Extract directory from objective if present
- if " in " in config.objective:
- output_dir = Path(config.objective.split(" in ")[-1].strip('"').strip("'").rstrip("/"))
- else:
- output_dir = Path("./swarm-output")
+ # Set a reasonable timeout (5 minutes)
+ timeout = min(config.timeout * 60, 300)
- output_dir.mkdir(parents=True, exist_ok=True)
+ return self._execute_streaming_command(command, timeout)
# Simulate task based on strategy
if config.strategy == "development":