mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
This commit is contained in:
1 parent
eb374a6ba4
commit
2d29e53fcb
2 files changed
+14
-11
No files matched your search
@@ -0,0 +1 @@
|
||||
{"checkpoint": "task-20250807-142134", "task": "🧠 HIVE MIND COLLECTIVE INTELLIGENCE SYSTEM ══════════════════", "timestamp": "2025-08-07T14:21:35Z", "commit": "3bf57eba9c4952d868983bdfdf5d55469a6a8425", "github_release": "true"}
|
||||
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user