← All guides

Benchmark family / Reviewed 2026-11-09

SWE-bench

Repository issues and patch evaluation

Read the measurement

Task & metric

Given a repository and an issue, produce a patch evaluated in a controlled software environment.

What the number means

Resolved-issue proportion under a specified patch-evaluation harness. A result describes the model plus any agent, tools and attempt policy used to produce the patch.

Version & split

Record the named dataset, split and revision. Original, Lite, Verified, Multimodal and Multilingual are distinct; never assume their denominators or environments match.

Primary source · Checked 2026-11-09 ↗

Before comparing results

  • Record agent code, model snapshot, repository/environment image and evaluation-harness revision.
  • Disclose search/edit/test tools, network access, time limits, token limits and retries.
  • Record case selection and infrastructure failures; specify whether exclusions affect the denominator.
  • Record the run ID and cache policy. Reusing a run ID can reuse cached results even when the proposed patch changes.

What does not transfer

  • A resolved test case does not establish patch security, maintainability or suitability for release.
  • Changing agent tools or attempt budgets can change results without changing the base model.
  • Repository selection and issue types may differ from your team's current codebase.

These are editorial interpretation limits, not new experimental findings.

Original toy example / authored, not executed

Make the task concrete.

Input
Original toy issue: In a fictional date-format library, an empty format currently crashes. Define the intended behavior and patch it.
Illustrative expected output
A patch returns the documented fallback for an empty format, with a regression test and existing tests preserved.
Human review
Review the diff, run the agreed tests and check that the fallback does not hide unrelated errors. This is not a SWE-bench issue.

This example is original and illustrates the task shape. It is not an official dataset question or measured model output.

Sources & review

Privacy