π 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
feat: Add official SWE-bench integration with swarm-bench
rUv2d782c4a3313
diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.jsonindex ac349eceda..c2756f41a6 100644--- a/.claude-flow/metrics/system-metrics.json+++ b/.claude-flow/metrics/system-metrics.json@@ -1762,5 +1762,77 @@"cpuLoad": 0.0325,"platform": "linux","uptime": 6275.64+ },+ {+ "timestamp": 1754575028275,+ "memoryTotal": 67427545088,+ "memoryUsed": 5380288512,+ "memoryFree": 62047256576,+ "memoryUsagePercent": 7.979362892387912,+ "memoryEfficiency": 92.02063710761209,+ "cpuCount": 16,+ "cpuLoad": 0.03375,+ "platform": "linux",+ "uptime": 6305.67+ },+ {+ "timestamp": 1754575058306,+ "memoryTotal": 67427545088,+ "memoryUsed": 5310345216,+ "memoryFree": 62117199872,+ "memoryUsagePercent": 7.8756318490750985,+ "memoryEfficiency": 92.12436815092491,+ "cpuCount": 16,+ "cpuLoad": 0.034375,+ "platform": "linux",+ "uptime": 6335.7+ },+ {+ "timestamp": 1754575088336,+ "memoryTotal": 67427545088,+ "memoryUsed": 5405163520,+ "memoryFree": 62022381568,+ "memoryUsagePercent": 8.016254355613416,+ "memoryEfficiency": 91.98374564438659,+ "cpuCount": 16,+ "cpuLoad": 0.028125,+ "platform": "linux",+ "uptime": 6365.73+ },+ {+ "timestamp": 1754575118366,+ "memoryTotal": 67427545088,+ "memoryUsed": 5479698432,+ "memoryFree": 61947846656,+ "memoryUsagePercent": 8.126795102577768,+ "memoryEfficiency": 91.87320489742223,+ "cpuCount": 16,+ "cpuLoad": 0.020625,+ "platform": "linux",+ "uptime": 6395.76+ },+ {+ "timestamp": 1754575148396,+ "memoryTotal": 67427545088,+ "memoryUsed": 5422641152,+ "memoryFree": 62004903936,+ "memoryUsagePercent": 8.04217496710415,+ "memoryEfficiency": 91.95782503289585,+ "cpuCount": 16,+ "cpuLoad": 0.0625,+ "platform": "linux",+ "uptime": 6425.79+ },+ {+ "timestamp": 1754575178403,+ "memoryTotal": 67427545088,+ "memoryUsed": 5540331520,+ "memoryFree": 61887213568,+ "memoryUsagePercent": 8.216718423856731,+ "memoryEfficiency": 91.78328157614327,+ "cpuCount": 16,+ "cpuLoad": 0.06875,+ "platform": "linux",+ "uptime": 6455.8}]\ No newline at end of filediff --git a/benchmark/.claude-flow/metrics/performance.json b/benchmark/.claude-flow/metrics/performance.jsonindex 402e2624ea..9bfdfecea0 100644--- a/benchmark/.claude-flow/metrics/performance.json+++ b/benchmark/.claude-flow/metrics/performance.json@@ -1,5 +1,5 @@{- "startTime": 1754574994560,+ "startTime": 1754575180448,"totalTasks": 1,"successfulTasks": 1,"failedTasks": 0,diff --git a/benchmark/.claude-flow/metrics/task-metrics.json b/benchmark/.claude-flow/metrics/task-metrics.jsonindex e806c086db..4b94a3be0c 100644--- a/benchmark/.claude-flow/metrics/task-metrics.json+++ b/benchmark/.claude-flow/metrics/task-metrics.json@@ -1,10 +1,10 @@[{- "id": "cmd-hooks-1754574994663",+ "id": "cmd-hooks-1754575180549","type": "hooks","success": true,- "duration": 38.10195600000003,- "timestamp": 1754574994702,+ "duration": 5.888140999999962,+ "timestamp": 1754575180555,"metadata": {}}]\ No newline at end of filediff --git a/benchmark/.claude/checkpoints/1754575142.json b/benchmark/.claude/checkpoints/1754575142.jsonnew file mode 100644index 0000000000..d3d33df866--- /dev/null+++ b/benchmark/.claude/checkpoints/1754575142.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250807-135902", "file": "/workspaces/claude-code-flow/benchmark/test_swe_bench_official.py", "timestamp": "2025-08-07T13:59:02Z", "type": "pre-edit", "original_branch": "swe-bench"}diff --git a/benchmark/.claude/checkpoints/1754575143.json b/benchmark/.claude/checkpoints/1754575143.jsonnew file mode 100644index 0000000000..f9d7de0480--- /dev/null+++ b/benchmark/.claude/checkpoints/1754575143.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250807-135903", "file": "/workspaces/claude-code-flow/benchmark/test_swe_bench_official.py", "timestamp": "2025-08-07T13:59:03Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 48 ++++++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754575115.json | 1 + benchmark/.claude/checkpoints/1754575117.json | 1 + benchmark/test_swe_bench_official.py | 111 +++++++++++++++++++++++ 6 files changed, 165 insertions(+), 4 deletions(-) "}diff --git a/benchmark/swe-bench/FINAL_SUMMARY.md b/benchmark/swe-bench/FINAL_SUMMARY.mddeleted file mode 100644index 7ef889faee..0000000000--- a/benchmark/swe-bench/FINAL_SUMMARY.md+++ /dev/null@@ -1,124 +0,0 @@-# π SWE-Bench Implementation & Optimization Complete--## Executive Summary--Successfully implemented and optimized SWE-Bench for Claude Flow, achieving **97.7% success rate** with an average task duration of **11.1 seconds**.--## π Optimal Configuration Found--```yaml-coordination_mode: mesh-strategy: optimization-max_agents: 8-```--**Performance Metrics:**-- β **Success Rate**: 97.7% (Target: 80%) - **Exceeded by 22%**-- β‘ **Avg Duration**: 11.1s (Target: 15s) - **26% faster**-- π― **Combined Score**: 0.970 (Best possible: 1.0)--## π Benchmark Results Summary--### Top 3 Configurations--| Rank | Configuration | Success Rate | Avg Duration | Score |-|------|--------------|--------------|--------------|-------|-| 1 | mesh-optimization-8agents | 97.7% | 11.1s | 0.970 |-| 2 | mesh-optimization-10agents | 94.0% | 11.6s | 0.938 |-| 3 | hierarchical-development-8agents | 87.4% | 12.9s | 0.876 |--### Key Insights--1. **Mesh coordination** outperforms other modes by 15-30%-2. **Optimization strategy** increases success rate by ~10%-3. **8 agents** provides optimal balance (diminishing returns at 10)-4. **Combined approach** (mesh + optimization) yields best results--## π Implementation Highlights--### What Was Built--1. **Comprehensive Benchmark Suite**- - 7 SE task categories- - 18+ pre-configured test cases- - 3 difficulty levels--2. **Advanced Evaluation System**- - Multi-method evaluation- - Weighted scoring- - Real-time metrics collection--3. **Intelligent Optimization**- - ML-inspired optimization engine- - Auto-tuning capabilities- - Dynamic configuration adjustment--4. **Full Integration**- - CLI command: `swarm-bench swe-bench`- - GitHub issue tracking (#610)- - Automated reporting--## π Performance vs Targets--| Metric | Baseline | Target | Achieved | Improvement |-|--------|----------|--------|----------|-------------|-| Success Rate | 60% | 80% | 97.7% | +63% |-| Avg Duration | 30s | 15s | 11.1s | -63% |-| Token Usage | 5000 | 3000 | TBD | - |-| Memory | 500MB | 300MB | TBD | - |--## π§ Usage Guide--### Quick Start-```bash-# Run with optimal configuration-swarm-bench swe-bench run --mode mesh --strategy optimization --agents 8--# Run specific categories-swarm-bench swe-bench run --categories code_generation bug_fix--# Check status-swarm-bench swe-bench status-```--### Files Created-- `/benchmark/src/swarm_benchmark/swe_bench/` - Core implementation-- `/benchmark/swe-bench/` - Documentation and reports-- `optimal-config.yaml` - Best configuration settings-- GitHub Issue #610 - Complete benchmark tracking--## π― Recommendations--### For Production Use-1. Use **mesh-optimization-8agents** for general tasks-2. Adjust agent count based on task complexity (3-10 range)-3. Use task-specific configurations for specialized workloads--### For Further Optimization-1. Test with real Claude Flow execution (current: simulated)-2. Fine-tune timeout values per task category-3. Implement adaptive agent scaling based on workload--## π GitHub Issue #610--Successfully created and updated with:-- 10 configuration test results-- Performance analysis-- Optimal configuration recommendations-- Complete benchmark matrix--View: https://github.com/ruvnet/claude-flow/issues/610--## β Deliverables Complete--1. β SWE-Bench implementation-2. β Performance optimization-3. β GitHub issue with results-4. β Optimal configuration found-5. β Documentation complete-------**Branch**: `swe-bench`-**Status**: Ready for merge-**Performance**: All targets exceeded\ No newline at end of filediff --git a/benchmark/swe-bench/github-issue.md b/benchmark/swe-bench/github-issue.mddeleted file mode 100644index 35e3e5787c..0000000000--- a/benchmark/swe-bench/github-issue.md+++ /dev/null@@ -1,23 +0,0 @@-# π SWE-Bench Performance Analysis for Claude Flow--## Overview-Running comprehensive benchmarks to find the optimal Claude Flow configuration for software engineering tasks.--## Test Matrix--### Configurations to Test-- **Coordination Modes**: hierarchical, mesh, distributed, centralized-- **Strategies**: development, optimization, testing, analysis-- **Agent Counts**: 3, 5, 8, 10-- **Task Categories**: All 7 SWE categories--## Benchmark Progress--### π Test 1: Baseline Configuration-- **Status**: Starting...-- **Config**: hierarchical, development, 5 agents-- **Categories**: All-------*Updates will be posted as comments below*\ No newline at end of file