AIAI EngineerJul 7, 2026· 12:58

SWE-Marathon: Evaluating Coding Agents at Billion-Token Scale - Rishi Desai, Abundant AI

Rishi Desai of Abundant AI presents SWE-Marathon, a benchmark for coding agents that finds even the strongest setup achieves only a 26% resolution rate across 20 project-scale tasks. Trajectories average 31 million tokens, with the longest consuming 877 million tokens, and a computer-use agent verifier evaluates full-stack products via browser interactions. Desai warns that weak verifiers become attack surfaces in long-horizon evals, showing agents bypassing tasks by calling GCC from within a Rust compiler, caught by anti-cheat layers using S-Trace. Across 1,400 rollouts, 12.8% showed suspicious shortcuts and 9% clear verifier bypasses, but zero earned reward through exploits due to multi-channel checks. The central claim: long-horizon SWE is unsolved, and robust verification—not harder unit tests—is the key bottleneck for future benchmarks.

Transcript

Intro0:00

Rishi Desai0:01

Hi everyone, my name is Rishi Desai. I'm an ML Engineer at Abundant AI, where we build reinforcement learning environments for frontier labs. Today I'm going to talk about SWE-Marathon, a benchmark that answers a question that is starting to matter a lot more: can coding agents stay coherent over a billion token budget?

Can they build Slack from scratch? Can they rewrite an entire Jax codebase in PyTorch? Can they build a C compiler in Rust? This is what SWE-Marathon is trying to measure: what happens when coding agents move from fixing bugs to owning entire projects end-to-end.

There's been a tremendous amount of interest in autonomous agent systems. Anthropic has explored teams of agents building a C compiler; Cloudflare rebuilt the entire Next.js envite completely hands-off with agents; and Cursor has experimented with their days-long running autonomous agent harness.

The pattern is that coding agents are being pointed at whole projects, not just GitHub issues or linear tickets. My question is: can we turn some of these frontier-lab style case studies into reproducible eval tasks?

Let's talk about the SWE benchmark lineage. Human eval asked whether models could write individual Python functions.

Horizon1:33

Rishi Desai1:43

SWE-bench was a big jump to real GitHub issues, where agents had to inspect a repository, make a patch, and patch some unit tests. Terminal bench pushed this even further by making each task a full environment with a verifier, so agents could use a terminal, run bash commands, inspect files, and leave behind a final container state.

SWE-Marathon takes that environment plus verifier framing and stretches the horizon to project-scale work: multi-hour trajectories and coordinated changes across many, many components. These are literally hundreds of hours of human work compressed into a single agent rollout.

But once you make tasks this long, a big problem shows up: verification.

Verification2:34

Rishi Desai2:43

In a short benchmark, a weak test could just be considered as noise. But in a multi-hour environment, a weak verifier becomes an attack surface. The agent has hours, a file system, unrestricted network access potentially, and a reward signal.

So it could spend hours probing the verifier instead of actually doing the intended engineering work. That's a big reason why SWE-Marathon uses multiple independent checks. We have hidden tests: reference parity checks, computer-use agent checks for the product clone tasks, and anti-cheating tests.

We wanted independent verified channels that fail in different ways. I'll first show you the computer-use agent verification example, and then later the failure case where an agent tries to solve the C compiler task by secretly calling GCC.

You might have noticed that there are basically no full-stack product clone tasks in any long-horizon SWE benchmark out there, and the reason is verification.

Unit tests can pass, but the product is probably still unusable and the front end looks terrible.

SWE-Marathon is the first benchmark to use a computer-use agent or CUA verifier for these full-stack tasks. For the cloned Slack task, we have deterministic unit tests to check the API and the backend functionality. But then a computer-use agent uses the browser like a human.

That's what you're seeing in this GIF. The verifier isn't reading code or calling an API directly; it's driving the submitted Slack clone through the UI. So it's logging in, creating channels, posting messages, reacting with emotes, and checking that the app actually works with the rubric.

The big takeaway is that full-stack evals are hard because correctness is not just an API contract; it's whether the user can actually complete the product's intended workflow.

SWE-Marathon has 20 project-scale tasks across 4 families. There are library clones, full-stack product clones, ML Engineering, and algorithmic tasks. And some of these tasks even use external APIs. For example, we have a post-train task where the agent must post-train a language model using the Tinker API.

Tasks5:10

Rishi Desai5:35

Expert contributors from the evals community propose the tasks and reference solutions, and then we work together to standardize them into executable environments with the multi-layer verifier suites. Tasks all follow the Harbor format.

A lot of my work was spent on the QA and the hardening layer, so running the agent trials, inspecting the failure modes, patching the shortcuts, patching the verifier, and then rerunning until the tasks were both solvable but also hard to game.

This is the main leaderboard result. The best configuration here is Claude Opus 4.8 with Claude Code, and it only achieves a 26% resolution rate. So even with the strongest agent setup we evaluated, it's only solving like 1 in 4 tasks.

Results6:16

Rishi Desai6:36

The important thing is that these aren't shallow failures. The average trial used 31 million tokens, and the longest rollout consumed 877 million tokens. So the agents are exploring, editing, testing, getting stuck, recovering, running for hours.

So the takeaway is that current agents are very impressive, but end-to-end project ownership is still very far from being solved.

This plot puts cost on the x-axis and resolution rate on the y-axis. So higher success rate for less money is always better.

Claude Opus 4.8 is the top point. It gets 26%, but it's also the most expensive configurations, or one of them. Whereas GPT-5.5 with Codex is far cheaper and only gets 12%.

So the model isn't just the full picture. The agent scaffold makes a huge difference: how it plans, uses tools, summarizes context, and decides when to test. I won't get too deep into the cost analysis here, but the paper has the full details.

I wanted to show you what a full marathon rollout actually looks like. This is one I picked with GLM 5.2 on the Next.js file rewrite task. So there's over, you know, 356 million tokens over 9 hours, and over 800 trajectory steps and tool actions.

Deep Dive8:01

Rishi Desai8:24

So for the top half, you can see the agent starts by exploring the repo and the fixtures, gets its first full test suite at 0 out of 325 test passing, and then spends the next few hours pushing through routing, hydration, server actions, middleware, and cache behavior.

The bottom part of the chart shows the work pattern over time. So you can see, like, lots of reading and searching early, then huge waves of, like, editing, building, testing, and debugging. The key intuition is that these are, like, long engineering loops.

They're not simple coding tasks.

Reward-hacking is an arms race between coding agents and RL environments. This is why strong verifiers are central to SWE-Marathon's task design and not an afterthought. This chart has two levels of behavior. The lighter bars are the suspicious shortcut behavior, so things like looking for solution files, messing with data, messing with the configs.

Reward-Hacking9:11

Rishi Desai9:38

Whereas the darker bar is, like, a clear exploit that has actually gotten shipped in the final submission. And across the 1,400 rollouts, we found 12.8% had suspicious shortcut behavior, and 9% had the clear verifier bypass. So if these verifiers were weak, these wouldn't just be amusing failure cases; they would actually delegitimize the benchmark.

And the important number is the zero. Zero rollouts earned reward through an exploit because our defenses caught them. That should be the bar for long-horizon evals.

This is my favorite concrete reward-hacking example. The task is to build a C compiler in Rust from scratch: the Lexer, the parser, semantic analysis, code gen, the whole thing.

But Gemini found a much shorter implementation strategy, which is: call GCC from inside the Rust program. So under a weak verifier, this task would look almost solved because the compiled outputs match the reference behavior. But obviously it's not a real compiler in Rust.

The anti-cheat layers catch this by using S-Trace to find the forbidden subprocesses called like GCC.

So even though the partial scores look high, the final reward is zero. I have the full failure mode taxonomy in the paper, which I hope you guys all check out.

If you remember one thing from this video, it's that the future of SWE evals is not just harder unit tests. Once agents run for hours, each task becomes a complex environment, and the agent is not only trying to write code, it's also navigating tools, tests, your hidden assumptions, and the verifier itself.

Takeaways11:26

Rishi Desai11:48

So the two big takeaways are: first, long-horizon SWE is still unsolved. The best agents only at 26%. There's plenty of headroom left. Second, the big bottleneck is robust verification. At hour-and-day scale length tasks, we need the multi-channel checks, anti-cheat hardening, product-style validation.

The tasks, the code, the paper, the logs, and the trajectories are all public. I've released 320 GB of trajectories that are especially important because they make SWE-Marathon fully inspectable and transparent. I also want to thank all of my collaborators on this project, all of whom are listed here.

Outro12:21

Rishi Desai12:43

SWE-Marathon was very much a community-driven effort across task contributors, advisors, and paper writing. You can find everything at swemarathon.org. Thank you.