From 2d29e53fcb823b4e01cbb81b3d21190d4bde7bea Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 7 Aug 2025 14:21:49 +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-1754576495.json | 1 + .../swe_bench/official_integration.py | 24 ++++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .claude/checkpoints/task-1754576495.json diff --git a/.claude/checkpoints/task-1754576495.json b/.claude/checkpoints/task-1754576495.json new file mode 100644 index 0000000000..77ca171a95 --- /dev/null +++ b/.claude/checkpoints/task-1754576495.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250807-142134", "task": "🧠 HIVE MIND COLLECTIVE INTELLIGENCE SYSTEM ══════════════════", "timestamp": "2025-08-07T14:21:35Z", "commit": "3bf57eba9c4952d868983bdfdf5d55469a6a8425", "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 eef7a46180..4610af6047 100644 --- a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py +++ b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py @@ -124,21 +124,23 @@ 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) + # Use local claude-flow executable + claude_flow_path = './claude-flow' + + # Check if we're in benchmark directory + if Path.cwd().name == 'benchmark': + claude_flow_path = '../claude-flow' + + # Use hive-mind spawn with --claude flag for Claude Code generation cmd_args = [ - 'npx', 'claude-flow@alpha', 'swarm', - simple_prompt + claude_flow_path, 'hive-mind', 'spawn', + simple_prompt, + '--claude' # Generate Claude Code spawn commands ] - # Add strategy based on mode - if self.config.mode == CoordinationMode.MESH: - cmd_args.extend(['--strategy', 'optimization']) - elif self.config.strategy: - cmd_args.extend(['--strategy', self.config.strategy.value.lower()]) - - # Add agent count + # Add max workers for hive-mind if self.config.max_agents: - cmd_args.extend(['--agents', str(self.config.max_agents)]) + cmd_args.extend(['--max-workers', str(self.config.max_agents)]) # Non-interactive must be last cmd_args.append('--non-interactive')