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

rUvf2a00d98f208
diff --git a/benchmark/.claude/checkpoints/1754576283.json b/benchmark/.claude/checkpoints/1754576283.json
new file mode 100644
index 0000000000..64d77a7221
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754576283.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250807-141803", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:18:03Z", "type": "pre-edit", "original_branch": "swe-bench"}
diff --git a/benchmark/.claude/checkpoints/1754576285.json b/benchmark/.claude/checkpoints/1754576285.json
new file mode 100644
index 0000000000..3a2f759067
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754576285.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250807-141805", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:18:05Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 12 +++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 ++-- benchmark/.claude/checkpoints/task-1754576256.json | 1 + .../swe_bench/official_integration.py | 42 ++++++++++++---------- 5 files changed, 41 insertions(+), 22 deletions(-) "}
diff --git a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
index 4fe1d426e2..eef7a46180 100644
--- a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
+++ b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
@@ -124,26 +124,24 @@ Return ONLY the git diff patch in proper format."""
simple_prompt = ' '.join(simple_prompt.split()) # Normalize whitespace
# Build command as array for subprocess (avoids shell escaping issues)
+ # Always use swarm for now (hive-mind has database issues)
+ cmd_args = [
+ 'npx', 'claude-flow@alpha', 'swarm',
+ simple_prompt
+ ]
+
+ # Add strategy based on mode
if self.config.mode == CoordinationMode.MESH:
- # Use hive-mind for complex mesh coordination
- cmd_args = [
- 'npx', 'claude-flow@alpha', 'hive-mind', 'spawn',
- simple_prompt
- ]
- if self.config.max_agents:
- cmd_args.extend(['--agents', str(self.config.max_agents)])
- cmd_args.append('--non-interactive')
- else:
- # Use swarm for other modes
- cmd_args = [
- 'npx', 'claude-flow@alpha', 'swarm',
- simple_prompt
- ]
- if self.config.strategy:
- cmd_args.extend(['--strategy', self.config.strategy.value.lower()])
- if self.config.max_agents:
- cmd_args.extend(['--agents', str(self.config.max_agents)])
- cmd_args.append('--non-interactive')
+ cmd_args.extend(['--strategy', 'optimization'])
+ elif self.config.strategy:
+ cmd_args.extend(['--strategy', self.config.strategy.value.lower()])
+
+ # Add agent count
+ if self.config.max_agents:
+ cmd_args.extend(['--agents', str(self.config.max_agents)])
+
+ # Non-interactive must be last
+ cmd_args.append('--non-interactive')
print(f" 📋 Executing: {' '.join(cmd_args[:5])}...")