Manuscript Offprint

arXiv:2610.12569

SWE-Duel: Towards a Self-Scaling Arena for Coding Agents

Wei Minn, Zhensu Sun, Lwin Khin Shar, David Lo

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

ABSTRACT

Static coding benchmarks are fixed at release. Over time their tasks leak into training data, and stronger agents eventually saturate them. We argue that a benchmark should instead aim to be self-scaling: its tasks and oracles are created at evaluation time, so no content exists in advance to leak, and its difficulty is set by the participating agents rather than fixed at release. We introduce SWE-DUEL, an arena in which two coding agents evaluate each other over mirrored Red–Blue turns. In each turn, the Red agent works on a real repository across three context-isolated sessions. It proposes and implements a new feature with feature tests, then embeds a subtle bug in that feature along with sealed bug-triggering tests. The resulting pull request is admitted only if (1) it passes the feature tests and the repository's existing tests while failing exactly the bug tests, and (2) a fresh session of the same agent can repair the bug blind, which rules out unsolvable tasks. The Blue agent then reviews the pull request without being told a bug exists. It wins only if its revision passes all three test suites, and then the two agents swap roles. We run a tournament among 11 model–harness participants on 15 repositories in five languages for 1,500 turns. The leaders win in different ways. GPT-5.5 with Codex CLI ranks first as the strongest solver, repairing 98.3% of the defects it reviews. Claude Opus 4.8 with mini-swe-agent ranks second as the strongest task author, with a 27.3% Red win rate. Finally, within one model family, tasks written by the newest version defeat a fixed-reference solver far more often than those of older versions (42.9% vs. 4.0%), giving preliminary evidence that task difficulty scales with task authoring capability.

BRADLEY-TERRY RATING (HIGHER IS BETTER)

Figure

BOOTSTRAP RANK PROBABILITY

Figure 1: SWE-Duel Tournament Rankings after a round-robin tournament involving 11 participants. Gemini 3.1 Pro with mini-swe-agent is a late entrant, demonstrating that new LLMs or harnesses can be evaluated without discarding the current tournament.

∗^{*}Corresponding Author

1 INTRODUCTION

Benchmarks are the primary instrument for measuring progress in coding agents. To deliver trustworthy signal over the long run, a benchmark must remain absent from the training data of the models it evaluates and challenging for agents to solve. This is increasingly difficult to satisfy, as LLMs continually learn from publicly available materials and grow more capable with every generation. The deeper issue is that most existing coding benchmarks are static once released and built from openly accessible sources. Such content is eventually absorbed into training corpora, and a fixed task set is eventually saturated by stronger agents. In other words, from the moment a benchmark is released, it begins to leak into training data and to fall behind the agents it is meant to measure. We argue that avoiding this consequence requires a benchmark to be self-scaling: its tasks and oracles are created at evaluation time, so no content exists in advance to leak, and its difficulty is set by the participating agents rather than fixed at release, so it can rise as those agents improve.

Existing benchmarks fall short of this property in different ways. Static benchmarks have already run into this problem: OpenAI recently stopped reporting results on SWE-bench Verified (Jimenez et al., 2024) after finding that frontier models could reproduce its gold patches. Continuously updated benchmarks such as SWE-bench-Live (Zhang et al., 2025) and SWE-rebench (Badertdinov et al., 2025) mitigate leakage by collecting tasks created after model training cutoffs, but their task difficulty is still bounded by the daily issues faced by human developers. Most recently, model-generated tasks have emerged as a new direction: BugPilot (Sonwane et al., 2025) collects bugs introduced unintentionally by agents implementing new features, and SwingArena (Xu et al., 2026) pairs LLMs as patch submitters and test-writing reviewers in an adversarial arena. However, BugPilot generates its tasks ahead of time as a fixed set and SwingArena still draws tasks from a fixed pool of human-written GitHub issues, generating only the oracles at evaluation time; neither produces tasks whose difficulty grows with the agent being evaluated. This motivates the central question of this work: Can we create a self-scaling benchmark for coding agents?

To answer this question, we present SWE-DUEL, a self-scaling arena with a evaluation protocol in which two coding agents evaluate each other over mirrored adversarial turns. In each turn, the Red agent, working on a given repository across three context-isolated sessions, proposes a new feature, implements it together with feature tests, and finally injects subtle bugs along with bug-triggering tests. The resulting PR is used in the duel only if 1) it passes the feature tests and the repository's regression tests while failing exactly the bug-triggering tests, and 2) the Red agent can repair its own bugs in a fresh session, which rules out unsolvable tasks. The Blue agent then reviews the PR and submits a revision, winning the round if and only if the revision passes all three test suites; the two agents swap roles in the next turn. Because every feature, bug, and oracle is created at evaluation time, these specific tasks cannot appear in earlier training data, And because tasks are authored by the agents under evaluation, task difficulty is not fixed by a human-written pool; it can in principle rise as the authors improve, up to the limit set by the self-repair gate. Altogether, a single duel profiles a broad slice of the software engineering lifecycle, including requirement specification, feature implementation, test generation, code review, fault localization, and program repair.

We evaluate SWE-DUEL in a tournament among 11 participants, each pairing a frontier proprietary or open-weight model (e.g., GPT-5.5, Claude Opus 4.8, DeepSeek V4 Pro, and Gemini 3.1 Pro) with one of three agent harnesses, on 15 repositories in five languages. Ten participants play a full round robin, and Gemini 3.1 Pro joins afterwards as a late entrant, giving 50 matches and 1,500 turns. The leaders win in different ways. GPT-5.5 with Codex CLI ranks first as the strongest solver, repairing 98.3% of the defects it reviews, while Claude Opus 4.8 with mini-swe-agent ranks second as the strongest task author, with a 27.3% Red win rate. A late entrant can be placed with only five matches, and within one model family, tasks written by the newest version defeat a fixed reviewer far more often than those of older versions (42.9% vs. 4.0%), giving preliminary evidence that difficulty tracks authoring capability.

We make the following contributions:

• We introduce SWE-DUEL, a self-scaling arena that evaluates coding agents with each other. It does not leak test content by design and determines the task difficulty with the participants’ own authoring ability rather than fixed at release.

Figure

Figure 2: A contamination-resistant evaluation in SWE-DUEL. Red agent implements a new feature with an embedded bug, so that the Blue agent cannot simply revert the repository to its original version to remove the bug as doing so would remove the implemented feature. Feature retention is deterministically verified with the feature test suite, while bug removal is deterministically verified with the bug test suite. Existing test suite verifies no regression by the Blue agent's patch.

• We build an open arena toolkit for SWE-DUEL (Minn, 2026c), enabling the community to start their own tournament from scratch, or add a new agent to the existing leaderboard (Minn, 2026b).

• We conduct a 1,500-turn tournament over 11 (model, harness) pairs, demonstrating the broad applicability of SWE-DUEL and revealing distinct behavioral profiles across models and harnesses (Minn, 2026a).

References (71)