[PR #10699] feat: add SWE-bench evaluation tool #13526

Open
opened 2026-02-16 18:18:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10699

State: open
Merged: No


Fixes #10690

Summary

  • Add SWE-bench dataset integration (Lite/Verified/Full)
  • Automated patch generation for bug fixing tasks
  • Output predictions.jsonl in SWE-bench standard format
  • Support concurrent processing with configurable parallelism
  • Checkpoint support for resumable runs
  • Interactive and quick start modes

What does this PR do?

This PR adds a SWE-bench evaluation tool that allows users to evaluate opencode's performance on real-world software engineering tasks.

Features:

  • Load SWE-bench datasets directly from HuggingFace
  • Clone target repositories and checkout to specific commits
  • Use opencode to generate patches for bug fixes
  • Output results in SWE-bench standard format (predictions.jsonl)
  • Support resumable runs with checkpoints

Usage:

# Interactive mode
bun swebench/run.ts

# Quick mode (smoke test with 2 instances)
bun swebench/run.ts -q

# Full control
bun swebench/index.ts --model anthropic/claude-sonnet-4-20250514 --limit 10

How did you verify your code works?

  • Ran smoke test with 2 instances
  • Verified output format matches SWE-bench standard
  • Tested checkpoint resume functionality
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10699 **State:** open **Merged:** No --- Fixes #10690 ## Summary - Add SWE-bench dataset integration (Lite/Verified/Full) - Automated patch generation for bug fixing tasks - Output predictions.jsonl in SWE-bench standard format - Support concurrent processing with configurable parallelism - Checkpoint support for resumable runs - Interactive and quick start modes ### What does this PR do? This PR adds a SWE-bench evaluation tool that allows users to evaluate opencode's performance on real-world software engineering tasks. **Features:** - Load SWE-bench datasets directly from HuggingFace - Clone target repositories and checkout to specific commits - Use opencode to generate patches for bug fixes - Output results in SWE-bench standard format (`predictions.jsonl`) - Support resumable runs with checkpoints **Usage:** ```bash # Interactive mode bun swebench/run.ts # Quick mode (smoke test with 2 instances) bun swebench/run.ts -q # Full control bun swebench/index.ts --model anthropic/claude-sonnet-4-20250514 --limit 10 ``` ### How did you verify your code works? - Ran smoke test with 2 instances - Verified output format matches SWE-bench standard - Tested checkpoint resume functionality
yindo added the pull-request label 2026-02-16 18:18:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13526