mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
- Create OfficialSWEBenchEngine using real Princeton dataset - Integrate with HuggingFace datasets API for SWE-bench-Lite - Add 'swarm-bench swe-bench official' CLI command - Support for generating predictions.json for leaderboard submission - Implement validation for submission format - Use optimal configuration (mesh-optimization-8agents) from testing - Add test script for verifying integration This enables real SWE-bench evaluation for official leaderboard submission
SWE-Bench Integration for Claude Flow
Overview
SWE-bench is a comprehensive benchmark suite designed to evaluate software engineering capabilities of AI systems. This implementation integrates SWE-bench with Claude Flow's swarm benchmark system.
Features
- Comprehensive Task Coverage: Tests across multiple SE domains
- Real-World Scenarios: Based on actual GitHub issues and PRs
- Performance Metrics: Detailed tracking of execution time, accuracy, and resource usage
- Optimization Pipeline: Iterative improvement based on benchmark results
- Multi-Agent Support: Leverages Claude Flow's swarm capabilities
Quick Start
# Run basic SWE-bench suite
python run_swe_bench.py
# Run with specific configuration
python run_swe_bench.py --config configs/swe_bench_config.yaml
# Run optimization pipeline
python optimize_swe_bench.py --iterations 10
# Generate performance report
python generate_swe_report.py --output reports/
Benchmark Categories
- Code Generation: Implementing functions from specifications
- Bug Fixing: Identifying and fixing bugs in existing code
- Refactoring: Improving code structure without changing functionality
- Testing: Writing comprehensive test suites
- Documentation: Generating accurate documentation
- Code Review: Analyzing and reviewing code changes
- Performance: Optimizing code for better performance
Performance Targets
| Metric | Baseline | Target | Optimized |
|---|---|---|---|
| Task Success Rate | 60% | 80% | TBD |
| Average Time/Task | 30s | 15s | TBD |
| Token Efficiency | 5000 | 3000 | TBD |
| Memory Usage | 500MB | 300MB | TBD |
| Parallel Tasks | 1 | 5 | TBD |
Architecture
swe-bench/
├── configs/ # Configuration files
├── datasets/ # SWE-bench task datasets
├── evaluators/ # Task evaluation logic
├── executors/ # Task execution engines
├── optimizers/ # Performance optimization
├── reports/ # Generated reports
└── tests/ # Test suites
Integration with Claude Flow
The SWE-bench suite leverages Claude Flow's advanced features:
- Swarm Coordination: Multi-agent task execution
- SPARC Methodology: Systematic problem-solving approach
- Real Metrics: Actual execution tracking
- Neural Optimization: ML-based performance improvements
- Collective Intelligence: Shared learning across agents
Results Tracking
Results are tracked in:
- JSON reports:
reports/swe_bench_results_*.json - SQLite database:
swe_bench.db - GitHub issues: Auto-updated with progress
Contributing
See CONTRIBUTING.md for guidelines on adding new benchmarks or improving existing ones.