E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch

Hantian Ding, Chloe Bi, Jiacheng Zhu, John Yang, Matt Deitke, Pengcheng Yin, Zijian Wang, Rui HouarXiv 2026

TL;DR

The authors introduce E2E-SWE, a new benchmark designed to test if LLM-based coding agents can build entire, functional software repositories from scratch using only natural-language specifications. Evaluating 13 frontier models, they found a wide performance gap (11.7% to 67.7% pass@1), revealing that while top models are becoming capable architects, significant headroom remains for true system-level reasoning.

What Problem Does This Paper Address?

Current coding benchmarks for LLMs typically focus on "small-ball" tasks: completing a single function or fixing a localized bug in an existing codebase (e.g., the popular SWE-bench). While useful, these don't measure an agent's ability to act as a software architect.

Building a complete repository from an empty workspace requires long-horizon planning, system-level reasoning, and the ability to integrate multiple interdependent components. Previous attempts at whole-repository benchmarks often suffered from "solvability" issues—where tasks were underspecified or grading tests were too rigid, causing models to fail even when their code was functionally correct. E2E-SWE aims to provide a rigorous, solvable, and highly differentiating benchmark for this "0-to-1" software development challenge.

Methods

The researchers developed a sophisticated pipeline to ensure task quality and solvability, as illustrated in the task lifecycle:

The E2E-SWE task lifecycle: Creation, Refinement, and Evaluation.
  1. Task Creation: A human engineer collaborates with an LLM to ground a task in a real GitHub repository. They create a natural-language specification, a suite of hidden functional tests, and a containerized environment.
  2. Iterative Refinement: To ensure solvability, tasks undergo a "review-and-repair" loop. This includes Static Audits (checking spec-to-test correspondence) and Rollout-Guided Audits (analyzing why real models failed to distinguish between model errors and task defects). A specialized "Repair Agent" then fixes identified issues.
  3. Evaluation: Coding agents (using a simple ReAct scaffold) receive only the specification and an empty workspace. They must produce a complete, installable repository.
  4. Grading: The generated repo is installed in a fresh container and run against the hidden tests. A task is only "resolved" (pass@1) if every test passes.

Datasets

The primary contribution is the E2E-SWE dataset, which consists of 186 tasks spanning 11 programming languages (with Python, C++, and Java being the most common) and 13 functional categories like networking, databases, and scientific computing.

Composition of the E2E-SWE corpus by language and category.

The tasks are grounded in real-world projects with a median size of 7.4K lines of code, ensuring the complexity is representative of actual software engineering.

Key Insights and Ideas

  • Front-Loaded Reasoning: Analysis of agent trajectories revealed a "front-loaded" pattern. The longest reasoning turns typically occur very early (often within the first few turns), suggesting that successful agents spend significant effort upfront on repository-wide planning before diving into implementation.
  • Inference-Time Scaling: Performance scales strongly with "reasoning effort." Models like Claude Opus 4.8 and GPT-5.5 showed consistent improvements in pass@1 as they were allowed to use more output tokens for "thinking."
Pass@1 vs. reasoning effort (output tokens).
  • Solvability as a First-Class Citizen: By rigorously auditing and repairing tasks, the authors achieved much higher resolution rates than previous whole-repo benchmarks. They found that outcome-changing task defects occurred in only 2.2% of attempts, suggesting the benchmark provides a very clean signal of model capability.
  • Memorization vs. Resolution: While some models showed high "12-gram containment" (meaning they reproduced segments of the original reference code), this didn't guarantee success. Substantial code overlap was "far from guaranteeing resolution of the task," implying that models still need to reason about how to apply that knowledge to the specific requirements.

Key Results

The benchmark successfully differentiated between frontier models, showing a broad spread of capabilities:

  • Top Performers: Claude Opus 5 achieved the highest score at 67.7% pass@1, followed by Claude Fable 5 (65.3%) and GPT-5.6 Sol (61.2%).
  • Performance Spread: The range from 11.7% (Gemini 3.6 Flash) to 67.7% demonstrates that E2E-SWE is a challenging and effective leaderboard for current and future models.
The E2E-SWE leaderboard showing Pass@1 vs. Average Output Tokens.
  • Comparison to Existing Benchmarks: E2E-SWE requires significantly more output tokens per rollout than previous benchmarks like DeepSWE, confirming it captures the increased complexity of building entire systems rather than making single-PR changes.

Limitations and Future Work

  • Memorization: Despite the tasks being "0-to-1," the underlying repositories are public. The authors acknowledge that models may be recalling parts of the reference implementation from their training data.
  • Agent Scaffolds: All models were tested with a basic ReAct agent. Future work could explore how more sophisticated agent architectures (e.g., those with explicit planning modules) perform on this benchmark.
  • Requirement Discovery: E2E-SWE provides a complete specification upfront. A more realistic (and harder) benchmark might involve an agent having to discover requirements through interaction, similar to how a human engineer works with a client.

Summary updated

BibTeX
@misc{ding2026e,
  author = {Hantian Ding and Chloe Bi and Jiacheng Zhu and John Yang and Matt Deitke and Pengcheng Yin and Zijian Wang and Rui Hou},
  title = {{E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch}},
  year = {2026},
  eprint = {2609.38335},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38335},
}
Figure