SWE-bench
SWE-bench / SWE-bench
A software-engineering benchmark and evaluation harness built from real GitHub issues and their pull requests, testing whether a model can produce a patch that passes the tests.
Why choose it
- Tasks come from real repositories and issues.
- Passing tests is the success criterion, not a judge model.
- A standard baseline for coding agents.
Not for
You need a quick smoke test for a chat model.
You cannot run repository test suites in isolation.
Repository mirrors and evaluation environments take disk; the first run is not cheap.
Minimum setup
- Run one repository’s test suite on the base commit.
- Evaluate one agent patch and inspect the failure logs.
- Record the harness version, test command and environment.
Dependencies and cost
Check runtime, model weights and external service dependencies in the README.
License and usage boundaries
Code is MIT; model weights, training data and generated content may have separate terms — check each before commercial use.
Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
Alternatives and neighbors
- LM Evaluation Harness — Production,A standard LLM evaluation harness covering hundreds of tasks, few-shot settings, log-likelihood and generative metrics, with HF, vLLM and API backends.
- Inspect AI — Niche,An evaluation framework from the UK AI Safety Institute for rigorous, reproducible task evaluation.
- Ragas — Start here,A RAG evaluation library covering retrieval relevance, answer faithfulness and context recall.
Next steps
- Open GitHub and read the README, LICENSE, latest release and issues first.
- Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- Run a small sample first, then decide on production; never start with production data.