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/swe_bench/official_integration.py

rUv071f91368e92
diff --git a/benchmark/.claude/checkpoints/1754576507.json b/benchmark/.claude/checkpoints/1754576507.json
new file mode 100644
index 0000000000..0c57e5a3d1
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754576507.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250807-142147", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:21:47Z", "type": "pre-edit", "original_branch": "swe-bench"}
diff --git a/benchmark/.claude/checkpoints/1754576509.json b/benchmark/.claude/checkpoints/1754576509.json
new file mode 100644
index 0000000000..09c1bb4cd8
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754576509.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250807-142149", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:21:49Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 12 +++++++++++ .claude/checkpoints/task-1754576495.json | 1 + benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 8 ++++---- .../swe_bench/official_integration.py | 24 ++++++++++++---------- 5 files changed, 31 insertions(+), 16 deletions(-) "}
diff --git a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
index 4610af6047..bf3f4540a1 100644
--- a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
+++ b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
@@ -131,16 +131,19 @@ Return ONLY the git diff patch in proper format."""
if Path.cwd().name == 'benchmark':
claude_flow_path = '../claude-flow'
- # Use hive-mind spawn with --claude flag for Claude Code generation
+ # Use swarm command (more stable than hive-mind in non-interactive)
cmd_args = [
- claude_flow_path, 'hive-mind', 'spawn',
+ claude_flow_path, 'swarm',
simple_prompt,
- '--claude' # Generate Claude Code spawn commands
+ '--strategy', self.config.strategy.value.lower()
]
- # Add max workers for hive-mind
+ # Add mode
+ cmd_args.extend(['--mode', self.config.mode.value.lower()])
+
+ # Add agent count
if self.config.max_agents:
- cmd_args.extend(['--max-workers', str(self.config.max_agents)])
+ cmd_args.extend(['--max-agents', str(self.config.max_agents)])
# Non-interactive must be last
cmd_args.append('--non-interactive')