From 6bbff5c70f19951a02082bccfd6d78b8a363e5cd Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 7 Aug 2025 14:22:23 +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 --- benchmark/.claude/checkpoints/1754576507.json | 1 + benchmark/.claude/checkpoints/1754576509.json | 1 + .../swe_bench/official_integration.py | 13 ++++++++----- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 benchmark/.claude/checkpoints/1754576507.json create mode 100644 benchmark/.claude/checkpoints/1754576509.json 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')