arXiv:2610.13361cs.SEOct 2026

Manuscript Offprint

arXiv:2610.13361

AgentSWE: Can Coding Agents Build the Agent You Actually Want?

Jiahao Wang, Hongjin Qian, Yuyang Hu, Jiajun Zhang, Zheng Liu

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

ABSTRACT

As the production of software passes into the hands of software itself, coding agents are increasingly commissioned to build agents fitted to their users' own workflows. This delegation carries a quiet assumption, that the delivered agent will faithfully serve the requirement it was built for, rather than merely appear to. No existing benchmark tests that assumption. We introduce AgentSWE, a benchmark for agent software engineering spanning three stages of the agent development lifecycle: Creation of a complete agent from a natural-language requirement, Editing of production agent codebases, and Optimization toward a measurable target. Each of its 25 tasks is framed as a commission rather than an exam: the builder iterates against a handful of illustrative cases, while acceptance exercises the frozen submission on held-out cases designed to span the full requirement, grading behavior against requirement-derived rubrics under hard pass/fail gates or, for Optimization, against the source benchmark's own objective. Evaluating a range of coding agents across models and harnesses, we find that none comes close to delivering what a requirement asks for: the gap between what a builder demonstrates and what it delivers is the norm, not the corner case. An accompanying empirical analysis of the failure trajectories identifies recurring failure modes, among them overfitting to the visible cases, hollow runtimes behind code that looks complete, and unsupported claims of completion, each a signal by which coding agents can learn to build the agents they are asked for.

1 INTRODUCTION

Coding agents such as Claude Code (Anthropic, 2026) and Codex (OpenAI, 2026a) now carry substantial engineering workloads (Chen et al., 2021; Yang et al., 2024b; Wang et al., 2025b), and many of their users are not engineers: they describe what they need and delegate the rest (Hitzig et al., 2026). Increasingly, what they delegate is the building of an agent, a program that wraps a model, tools, and state around one recurring job so that the job runs on a fixed runtime, at a fixed cost, without a coding agent attending each run. Delegation of this kind rests on trust: that a coding agent, handed a requirement in natural language, will deliver the agent its user intends rather than one that merely appears to comply. Whether that trust is warranted is what this paper measures.

Agent development spans three stages. It begins with creation, where a natural-language requirement must become a working system; continues through editing, where new capabilities join a living codebase without unsettling what already works; and matures into optimization, where the agent is pushed toward an explicit target, be it a public leaderboard or a production workload. Handing this lifecycle to coding agents invites failures subtler than broken code: an agent that passes visible examples yet misses the intent behind them (Liu et al., 2023; Zhao et al., 2026a; Lodkaew et al., 2026); a tool registered but never invoked (Soni, 2026; Fan et al., 2026); a goal that drifts over a long horizon (Arike et al., 2025; Menon et al., 2026); a report citing evidence no source contains (Onweller et al., 2026; Rao et al., 2026). Such failures are not hypothetical; they are the present condition of

∗^{*}Equal contribution. †\daggerCorresponding author.

Figure

Figure 1: AgentSWE at a glance. (a) Existing benchmarks grade the patch a coding agent writes, or the performance of an agent someone else built; neither asks whether a coding agent delivers the agent a requirement describes. (b) AgentSWE commissions an agent from a natural-language requirement and grades what the delivered agent does on held-out cases, over creation, editing and optimization. (c) Mean held-out Result (S for Optimization) of five builders in the Codex harness (Table 1).

agent-built agents (Raj et al., 2026; Naik et al., 2026). The questions are how far coding agents compromise the requirements they are handed, on which capabilities, and for what reasons.

These questions outrun the instruments we have. SWE-bench and its descendants grade the repair of conventional software against a reference patch or test suite (Jimenez et al., 2024; Chan et al., 2024); NL2Repo-Bench commissions whole repositories from requirement documents (Ding et al., 2025); Paper2Code and PaperBench rebuild research implementations checked against the papers they reproduce (Seo et al., 2025; Starace et al., 2025). Each judges ordinary code against an answer known in advance. A commissioned agent wraps a stochastic policy around tools, answers to a requirement that has no reference solution, and keeps changing after delivery. Benchmarks that do evaluate agents, from AgentBench onward (Liu et al., 2024), examine a finished agent and ask how well it performs; none asks whether a coding agent could have built it. Work on agents that design or improve other agents (Hu et al., 2025; Mishra et al., 2026) comes closest, but it measures how far a search procedure or a meta-agent can raise a benchmark score, not whether a general coding agent delivers the agent a requirement describes (Section 2). Between judging built software and judging finished agents lies a step that current suites leave unmeasured: building the agent that a requirement asks for.

We introduce AgentSWE, a benchmark that turns faithful delegation from anecdote into measurement (Figure 1) through three commitments. The first is to measure the whole lifecycle, through twenty-five tasks spanning all three stages. Ten Creation tasks commission a complete agent from a natural-language requirement, over workloads from GUI automation to formal theorem proving, each scoped against a mature open-source system; ten Editing tasks ask for new capabilities in the pinned codebase of a production agent such as OpenHands or Aider, capabilities that cut through crash recovery, permission fencing, and transactional state; and five Optimization tasks set a working agent against a measurable target. The second commitment is that evaluation should mirror the delegation it studies. Each task is framed as a commission: the builder sees only what a customer could provide, while acceptance also tests the stated clauses its examples leave out. The builder develops against the requirement and a few illustrative cases; held-out cases then test the frozen delivery in isolation. The third commitment follows from the absence of a prescribed reference implementation: every Creation and Editing execution is graded against a rubric derived from the requirement itself, and hard gates assign zero to invalid executions and inapplicable patches.

We put this instrument to work on five models as builders in the Codex harness, together with further pairings of harness and model. The verdict is sobering. The strongest builders average 19.1 on Creation and 31.6 on Editing, and in Optimization no builder closes more than 5 % of the remaining gap to the target on average, and only 13 of the 25 runs score above their starter. Creation runs that end development at 90 or above deliver agents averaging 9.9 on held-out cases. The gap between what a builder demonstrates and what it delivers is not the corner case of agent software engineering; it is the norm. The builders' trajectories reveal recurring failures. Builders overfit to the visible development cases, and the delivery fails on the clauses those cases leave out; they ship hollow runtimes, code that reads as complete but does no work when run; and both builders and the agents they deliver claim completions that their own records contradict. Each of these modes names a habit that the next generation of coding agents can be built and trained to avoid. More development cases, a prescribed design, an instruction to test, and a longer case budget shift the scores but leave held-out Result low under every condition.

In sum, this paper makes three contributions. First, we formalize agent software engineering as a measurable problem, in which a builder must satisfy a requirement it can probe only through limited development feedback. Second, we deliver AgentSWE, twenty-five commissions whose acceptance executes the delivered agent on held-out cases and grades each run with a requirement-derived rubric or a native objective, and we evaluate various harness-model pairings against it. Third, we contribute an empirical analysis of the failure trajectories, which identifies recurring failure modes of coding agents and turns each into a direction for the next generation of coding agents.