π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
π Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
rUv231ad153fcd6
diff --git a/benchmark/.claude/checkpoints/task-1754576142.json b/benchmark/.claude/checkpoints/task-1754576142.jsonnew file mode 100644index 0000000000..9f333cd4ca--- /dev/null+++ b/benchmark/.claude/checkpoints/task-1754576142.json@@ -0,0 +1 @@+{"checkpoint": "task-20250807-141541", "task": "fix and run it, @ruvnet β /workspaces/claude-code-flow (swe-bench) $ swarm-bench swe-bench officia", "timestamp": "2025-08-07T14:15:42Z", "commit": "8f2e30423631fabe30345cd585d55d04ecc86129", "github_release": "true"}diff --git a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py b/benchmark/src/swarm_benchmark/swe_bench/official_integration.pyindex 1ed67c8639..068c82b9b3 100644--- a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py+++ b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py@@ -197,23 +197,64 @@ Return ONLY the git diff patch in proper format."""def _extract_patch(self, output: str) -> str:"""Extract git diff patch from Claude Flow output."""- # Look for diff markers+ if not output:+ return ""++ # Debug: log first part of output+ print(f" π Output length: {len(output)} chars")+ if len(output) > 100:+ print(f" π Output preview: {output[:100]}...")++ # Look for various patch formatslines = output.split('\n')patch_lines = []in_patch = False+ in_code_block = Falsefor line in lines:- if line.startswith('diff --git') or line.startswith('---') or line.startswith('+++'):- in_patch = True+ # Check for code block with diff+ if line.strip().startswith('```diff') or line.strip().startswith('```patch'):+ in_code_block = True+ continue+ elif line.strip() == '```' and in_code_block:+ in_code_block = False+ if patch_lines:+ break+ continue- if in_patch:+ # Check for direct diff markers+ if line.startswith('diff --git') or (line.startswith('---') and not in_patch):+ in_patch = Truepatch_lines.append(line)-- # Stop at end markers- if in_patch and (line.startswith('```') or line.startswith('END')):- break-- return '\n'.join(patch_lines) if patch_lines else ""+ elif in_patch:+ # Continue collecting patch lines+ if line.startswith('```') or line.strip().startswith('END'):+ break+ patch_lines.append(line)+ elif in_code_block:+ patch_lines.append(line)++ # If no patch found, look for any diff-like content+ if not patch_lines:+ for i, line in enumerate(lines):+ if 'diff' in line.lower() and '--git' in line:+ # Found a diff, collect from here+ patch_lines = lines[i:]+ # Stop at first code block end or END marker+ for j, pline in enumerate(patch_lines):+ if pline.startswith('```') or pline.startswith('END'):+ patch_lines = patch_lines[:j]+ break+ break++ result = '\n'.join(patch_lines) if patch_lines else ""++ if result:+ print(f" β Extracted patch: {len(result)} chars")+ else:+ print(f" β οΈ No patch found in output")++ return resultasync def run_evaluation(self,