SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work?

Rishi Desai, Jesse Hu, Joan Cabezas, Neel Harsola, Pratyush Shukla +21 more
6/5/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

AI agents are increasingly expected to complete long-horizon workflows that require sustained progress over hours, millions of tokens, and complex environments. Yet current agent benchmarks largely evaluate short-form tasks, such as single pull requests, small tickets, or 5-10 minute exercises, limiting our ability to measure agents' capabilities in planning, long-context understanding, and memory use.

Show full abstract

We introduce SWE-Marathon, a benchmark of 20 long-horizon tasks spanning software engineering and adjacent technical domains. Each task consists of a unique executable environment, a human-written reference solution, and a multi-layer verification suite. Logged agent attempts average 27.2M total tokens, making SWE-Marathon substantially longer-horizon than existing SWE and command-line agent benchmarks. Current frontier coding agents solve fewer than 30% of tasks. Failures often arise from poor self-verification, self-reported infeasibility, and premature termination. We also observe reward-hacking behavior in 13.8% of rollouts, where agents attempt to exploit the environment or verifier to bypass the intended workflow. SWE-Marathon includes adversarial review of test suites and execution environments, as well as multi-layer checks designed to prevent shortcut solutions. We release SWE-Marathon, evaluation code, and agent trajectories at https://swe-marathon.org/.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{desai2026swemarathon,
  title  = {SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work?},
  author = {Rishi Desai and Jesse Hu and Joan Cabezas and Neel Harsola and Pratyush Shukla and Roey Ben Chaim and Adnan El Assadi and Omkaar Mukund Kamath and Fenil Faldu and Prannay Hebbar and Jiankai Sun and Yiyuan Li and Pramod Srinivasan and Ishan Gupta and Christopher Settles and Daniel Wang and Derek Chen and Pranav Raja and Albert Liu and Marek Šuppa and Nevasini Sasikumar and Luyang Kong and Erik Quintanilla and Xiangyi Li and Ivan Bercovich and Steven Dillmann},
  year   = {2026},
  eprint = {2606.07682},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.07682v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.07682.svg)](https://codeofpaper.com/paper/2606.07682)

Discussion