From b2c258ca3d73ae7ed117e8925f524cd84bf20680 Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 7 Aug 2025 14:23:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/benchmark/src/swarm=5Fbenchmark/swe=5Fbench/o?= =?UTF-8?q?fficial=5Fintegration.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/task-1754576562.json | 1 + .../swe_bench/official_integration.py | 19 ++++++++----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 .claude/checkpoints/task-1754576562.json diff --git a/.claude/checkpoints/task-1754576562.json b/.claude/checkpoints/task-1754576562.json new file mode 100644 index 0000000000..ed2992e083 --- /dev/null +++ b/.claude/checkpoints/task-1754576562.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250807-142241", "task": "it works for me ruvnet ➜ /workspaces/claude-code-flow (swe-bench) $ ./claude-flow hive-mind spawn ", "timestamp": "2025-08-07T14:22:42Z", "commit": "da1756e25d75d7dc2aff2e3e7789352a4adf6f05", "github_release": "true"} diff --git a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py index bf3f4540a1..57f165ea8a 100644 --- a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py +++ b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py @@ -131,22 +131,19 @@ Return ONLY the git diff patch in proper format.""" if Path.cwd().name == 'benchmark': claude_flow_path = '../claude-flow' - # Use swarm command (more stable than hive-mind in non-interactive) + # Use hive-mind spawn with --claude flag (as it works for you) cmd_args = [ - claude_flow_path, 'swarm', + claude_flow_path, 'hive-mind', 'spawn', simple_prompt, - '--strategy', self.config.strategy.value.lower() + '--claude', # This generates the Claude Code coordination + '--non-interactive' # Must be at the end ] - # Add mode - cmd_args.extend(['--mode', self.config.mode.value.lower()]) - - # Add agent count + # Optionally add max workers if self.config.max_agents: - cmd_args.extend(['--max-agents', str(self.config.max_agents)]) - - # Non-interactive must be last - cmd_args.append('--non-interactive') + # Insert before --non-interactive + cmd_args.insert(-1, '--max-workers') + cmd_args.insert(-1, str(self.config.max_agents)) print(f" 📋 Executing: {' '.join(cmd_args[:5])}...")