Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); GitHub - agenticsorg/sparc-bench: SWE Benchmark · GitHub
Skip to content

Repository files navigation

Roo Code Evaluation & Benchmarking System

A comprehensive benchmarking platform that evaluates AI coding agents using real-world GitHub issues from SWE-bench, integrated with the Roo SPARC methodology for structured, secure, and measurable software engineering workflows.

The Roo SPARC system transforms SWE-bench from a simple dataset into a complete evaluation framework that measures not just correctness, but also efficiency, security, and methodology adherence across thousands of real GitHub issues.


🎯 Overview

SWE-bench provides thousands of real GitHub issues with ground-truth solutions and unit tests. The Roo SPARC system enhances this with:

  • Structured Methodology: SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) workflow
  • Multi-Modal Evaluation: Specialized AI modes for different coding tasks (debugging, testing, security, etc.)
  • Comprehensive Metrics: Steps, cost, time, complexity, and correctness tracking
  • Security-First Approach: No hardcoded secrets, modular design, secure task isolation
  • Database-Driven Workflow: SQLite integration for task management and analytics

✨ Key Features

🏗️ SPARC Methodology Integration

  • Specification Mode: Requirements analysis and edge case identification
  • Pseudocode Mode: High-level logic design with TDD anchors
  • Architecture Mode: Modular system design and component boundaries
  • Refinement Mode: Implementation with testing and security reviews
  • Completion Mode: Integration, documentation, and final validation

🎯 Specialized AI Modes

  • 🧠 Auto-Coder: Clean, modular code implementation
  • 🧪 Tester (TDD): Test-driven development and coverage
  • 🪲 Debugger: Runtime bug analysis and error resolution
  • 🛡️ Security Reviewer: Vulnerability assessment and secure coding
  • 📚 Documentation Writer: Comprehensive technical documentation
  • 🔗 System Integrator: Component integration and cohesion
  • 🎯 Benchmark Orchestrator: SWE-bench evaluation management

📊 Advanced Analytics

  • Step Tracking: Detailed execution logs with timestamps
  • Complexity Analysis: Task categorization (simple/medium/complex)
  • Performance Metrics: Success rates, efficiency patterns, cost analysis
  • Security Compliance: Secret exposure prevention, modular boundaries
  • Repository Statistics: Per-project performance insights

🔒 Security & Compliance

  • Zero Hardcoded Secrets: Environment abstraction required
  • Modular Design: Files limited to 500 lines maximum
  • Isolated Execution: Task-specific workspaces
  • Solution Security: No solution exposure during active problem solving

🎯 Benefits

For AI Researchers

  • Standardized Evaluation: Consistent methodology across experiments
  • Comprehensive Metrics: Beyond simple pass/fail to include efficiency and quality
  • Real-World Validation: Actual GitHub issues, not synthetic problems
  • Reproducible Results: Detailed execution logs and structured workflows

for Development Teams

  • Code Quality Assessment: Security, modularity, and maintainability metrics
  • Methodology Validation: SPARC workflow effectiveness measurement
  • Performance Optimization: Identify bottlenecks and improvement opportunities
  • Compliance Tracking: Ensure adherence to coding standards and security practices

For Platform Providers

  • Benchmark Comparisons: Standardized evaluation across different AI systems
  • Cost Analysis: Resource utilization and efficiency metrics
  • Quality Assurance: Automated validation of AI-generated solutions
  • Continuous Improvement: Data-driven enhancement of AI capabilities

📈 Evaluation Metrics

Core Performance Indicators

MetricDescriptionGoal
CorrectnessUnit test pass rateFunctional accuracy
StepsNumber of execution stepsEfficiency measurement
TimeWall-clock completion timePerformance assessment
CostToken usage and API costsResource efficiency
ComplexityStep-based task categorizationDifficulty analysis

Advanced Analytics

  • Repository Performance: Success rates by codebase
  • Mode Effectiveness: Performance comparison across AI modes
  • Solution Quality: Code quality and maintainability metrics
  • Security Compliance: Adherence to secure coding practices
  • Methodology Adherence: SPARC workflow compliance

🚀 Quick Start

1. Environment Setup

# Clone the repository
git clone https://github.com/agenticsorg/sparc-bench.git
cd sparc-bench
# Set up Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate# Install dependencies
pip install -r requirements.txt

2. Database Initialization

# Load SWE-bench dataset into SQLitecd swe-bench-sqlite/scripts
python load_swe_bench_to_sqlite.py
# Verify database setup
python benchmark_db_helper.py summary

3. Run Your First Benchmark

# Get an available task
python benchmark_db_helper.py get_task
# Start task execution
python benchmark_db_helper.py start_task <instance_id># Monitor progress and analyze results
python benchmark_db_helper.py step_analytics

🏗️ System Architecture

sparc-bench/
├─ swe-bench-sqlite/ # Database and task management
│ ├─ databases/ # SQLite databases (lite & full)
│ ├─ scripts/ # Database utilities and helpers
│ └─ README.md # Database documentation
├─ swe-bench-workspace/ # Active task execution
│ ├─ active/ # Isolated task workspaces
│ ├─ results/ # Completion results and reports
│ └─ config/ # Configuration and environment
├─ .roo/ # Roo SPARC mode definitions
│ ├─ rules-benchmark/ # Benchmark orchestrator rules
│ └─ rules-code/ # Code editing guidelines
├─ .roomodes # Mode configurations and instructions
└─ plans/ # Architecture and planning docs

🎯 Benchmark Orchestrator Workflow

Phase 1: Secure Task Selection

# Get task without solution exposure
python benchmark_db_helper.py get_task

Phase 2: Structured Execution

# Start task with timing
python benchmark_db_helper.py start_task <instance_id># Log execution steps
python benchmark_db_helper.py log_step <instance_id>"Step description"

Phase 3: Completion & Analysis

# Mark completion
python benchmark_db_helper.py update_status <instance_id> completed "Success details"# Analyze results
python benchmark_db_helper.py task_details <instance_id># Reveal solution (post-completion only)
python benchmark_db_helper.py get_solution <instance_id>

🔧 Advanced Configuration

Custom Mode Creation

Define specialized modes in .roomodes for specific evaluation scenarios:

customModes:
- slug: custom-evaluatorname: 🎯 Custom EvaluatorroleDefinition: Your custom evaluation logiccustomInstructions: Specific instructions for your use case

Database Management

  • Full Dataset: 2,294 real GitHub issues
  • Lite Dataset: 300 curated issues for faster evaluation
  • Custom Datasets: Load your own evaluation sets

Performance Tuning

  • Batch Processing: Parallel task execution
  • Resource Limits: Memory and time constraints
  • Quality Gates: Automated quality checks

📊 Analytics Dashboard

Real-Time Monitoring

# Overall progress
python benchmark_db_helper.py summary
# Repository-specific insights
python benchmark_db_helper.py repo_stats
# Step complexity analysis
python benchmark_db_helper.py step_analytics

Data Export

All results are stored in structured SQLite format for:

  • Custom analysis and visualization
  • Integration with external monitoring tools
  • Historical trend analysis
  • Performance regression detection


🔍 Example Evaluation Run

# 1. Initialize evaluation environmentcd swe-bench-sqlite/scripts
python benchmark_db_helper.py summary
# 2. Select and start a task
TASK_ID=$(python benchmark_db_helper.py get_task | jq -r '.instance_id')
python benchmark_db_helper.py start_task $TASK_ID# 3. Execute with step tracking
python benchmark_db_helper.py log_step $TASK_ID"Analyzing problem statement"
python benchmark_db_helper.py log_step $TASK_ID"Implementing solution"
python benchmark_db_helper.py log_step $TASK_ID"Running tests and validation"# 4. Complete and analyze
python benchmark_db_helper.py update_status $TASK_ID completed "Solution verified"
python benchmark_db_helper.py task_details $TASK_ID

🤝 Contributing

Development Workflow

  1. Fork the repository
  2. Create feature branch following SPARC methodology
  3. Implement with step tracking and security compliance
  4. Run evaluation suite
  5. Submit pull request with benchmark results

Guidelines

  • Modular Design: Keep files under 500 lines
  • Security First: No hardcoded secrets or credentials
  • Test Coverage: Include comprehensive test suites
  • Documentation: Update README and mode definitions

📚 Resources


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


The Roo SPARC Coding Evaluation & Benchmark System transforms software engineering evaluation from simple correctness checking into comprehensive methodology assessment, providing the insights needed to build more effective, secure, and maintainable AI coding systems.

Created by rUv - Bridging the gap between AI capability and real-world software engineering excellence.

About

SWE Benchmark

Resources

Stars

52 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages