Manuscript Offprint

arXiv:2611.07166

Multi-step SWE: Can Coding Agents Keep Building on Their Own Code Over Long Horizons?

Xiangkai Zeng, Zheng Liu, Zihao Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Developers rarely give a coding agent a single request: they ask it to build a component and then to extend, upgrade, and optimize it, each time on code the agent itself wrote. Most benchmarks, however, score one task at a time. We introduce Multi-step SWE, a long-horizon benchmark of 69 software engineering tasks, each a chain of 5–15 dependent steps on a single codebase. Every step is a complete, multi-hour engineering request that starts from the code the agent produced in the preceding steps, so early design decisions and errors carry forward. The tasks span four families of engineering work and nine languages, include both from-scratch builds and existing open-source codebases, and ground every step in an existing source of truth that defines both the instruction and its verifier. Across nine frontier models, the strongest model reaches a solve rate of only 18.5%, and 38 of the 69 tasks are not solved by any model. We release Multi-step SWE publicly.

Leaderboard GitHub

1 Introduction

Coding agents have become part of everyday software development, and developers increasingly rely on them for long-horizon work that unfolds over a series of requests. A developer may ask an agent to build a component, then to extend it, to port it to a new framework release, and finally to accelerate a performance-critical path. Each request operates on code shaped by the earlier requests, frequently code that the agent itself wrote, and many requests require hours of agent work. The success of the final request therefore depends both on the quality of the first three and on the agent's ability to understand, extend, and preserve the existing code.

Most benchmarks still evaluate one task at a time. SWE-bench asks a model to resolve a single GitHub issue [Jimenez et al., 2023]; Terminal-Bench, DeepSWE, and FrontierSWE pose harder and longer tasks of up to 20 hours each [Merrill et al., 2026, Huang et al., 2026, Chu et al., 2026]; and Commit0 and ProgramBench ask agents to build an entire library or program from scratch [Zhao et al., 2024, Yang et al., 2026]. Regardless of length, each of these tasks is a single episode that is graded once at the end, so none of them requires an agent to keep building on its own earlier work as the requirements change. Recent sequential benchmarks chain dependent changes, such as package upgrades, feature checkpoints, and milestones mined from repository history [Orlanski et al., 2026, Lam et al., 2026, Shen et al., 2026, Deng et al., 2026, Shastry et al., 2026], and they report that the performance of agents degrades as work accumulates.

We introduce Multi-step SWE, a multi-step, long-horizon benchmark of 69 software engineering tasks in which a coding agent carries one codebase through 5–15 dependent steps, each built on the agent's own earlier code (Figure 1). It extends the sequential setting in three directions: in the scale of each step, which is a complete engineering request with a budget of several hours; in grounding, since every step is tied to an existing source of truth and graded by the field's own tools; and in breadth, with nine languages and four families of engineering work, including performance optimization and stack migration.

*Equal contribution; authors are listed in alphabetical order by first name.

Long horizon: 5–15 dependent steps · each step a full engineering request · 10–60 h per task

Figure

69 tasks · 574 steps · 9 languages · built from scratch or on real open-source codebases

Figure 1: Overview of Multi-step SWE. A task chains dependent steps on one repository. Each step is a complete engineering request that starts from the code the agent produced in earlier steps and is graded by a dedicated verifier. A task is solved only if every step receives full credit. A single source of truth defines both the requirements of each step and the way the step is graded.

A step is a complete engineering request, not an agent turn or a tool call. Each step corresponds to a request that a developer might delegate to an agent, such as “move the interpreter to Lua 5.4” or “make the AES kernels faster,” and has its own instruction, verifier, and time budget of 2–4 hours.

Each step builds on the agent’s own code. Step kk starts from the workspace that the agent left after step k−1k-1 rather than from a reference solution, so the agent’s design decisions and errors carry forward. This property distinguishes Multi-step SWE from a collection of independent tasks: every step after the first is attempted on code that the agent itself has written or modified.

Coding benchmarks are susceptible to instruction–verifier mismatch, in which a verifier checks details that the instruction does not state or rejects valid solutions [OpenAI, 2024]. Multi-step SWE mitigates this problem by grounding every step in an existing source of truth that already defines the expected behavior, such as specifications, upstream release histories, the behavior of an original codebase, and reference implementations. Each step provides or cites this material, and the verifier grades against it with the established tools of the field, so that each instruction and its verifier are derived from the same material (Section 2.4).

We evaluate nine frontier models with four rollouts per task and consider a rollout solved only if every step receives full credit. Whole tasks are seldom solved. The strongest model, Claude Opus 5.5, reaches a solve rate of 18.5% and solves 31.9% of the tasks within four attempts; every other model has a solve rate of at most 17.8%, and more than half of the tasks are not solved by any model.

Our contributions are as follows:

  • A broad multi-step, long-horizon benchmark. Multi-step SWE spans four families of engineering work (performance optimization, feature implementation, version upgrade, and migration), nine languages, and both from-scratch builds and existing open-source codebases, ranging from interpreters and databases to network protocols and cryptography. All tasks are packaged in the open Harbor multi-step task format.

  • Well-defined steps with aligned instructions and verifiers. Every step is grounded in an existing source of truth and graded at the artifact’s external interface by the field’s own conformance suites, reference tools, recorded baseline behavior, or speedup measurements gated on unchanged output, so that what is requested

and what is graded are designed to agree. Every task passed two rounds of review by expert software engineers with at least five years of experience, and every step has a reference solution.

  • An evaluation of nine frontier models. The evaluation shows that models often pass individual steps but rarely complete whole tasks, that failing agents often stop early and report success, having checked their work only against their own expectations.

References (23)