AgentSWE: Can Coding Agents Build the Agent You Actually Want?AgentSWE: Can Coding Agents Build the Agent You Actually Want?
AgentSWE: Codex five builder Creation average highest at 19.1, Editing 31.6, closure not exceeding 5%.
- Users delegate the building of agents according to natural language requirements to coding agents, but existing benchmarks only evaluate patch correctness or finished performance, not whether the deliverable satisfies the requirement on unseen cases.
- AgentSWE uses 25 commissions covering creation, editing, and optimization. The builder sees only the requirements, initial artifacts, and a few development examples; after freezing, held-out tasks are scored using a requirements rubric or source benchmark objectives.
- Among Codex's five builders, the highest Creation average is 19.1, the highest Editing is 31.6, and Optimization closes an average remaining gap of no more than 5%. High development scores correspond to low held-out scores, and hollow runtimes appear with completion claims inconsistent with the facts.
- The authors note that the main comparison and harness studies are mostly single builds, Optimization repeated evaluations have variance, Results are model-reviewed and share a family with some builders, and absolute scores are only comparable within task families. Future plans include requirement-side testing and rewarding unseen-case behavior.
- Evaluated models
- DeepSeek-V4-ProGPT-5.5GPT-5.6 SolDeepSeek-V4-FlashQwen3.6-35B-A3BDeepSeek-V4.1-FlashGLM-5.3
- Benchmarks
- AgentSWEAgentSWE-LiteBrowseCompτ3TerminalBenchPinchBenchOSWorld
- Metrics
- ResultSΔ
The researchers propose the AgentSWE benchmark for evaluating coding agents in agentic software engineering, covering three stages: creating complete agents, editing production-grade agent codebases, and optimizing toward quantifiable objectives, for a total of 25 tasks. Each task is given as a commission rather than an exam; builders can only iterate on a small number of examples, acceptance is scored on held-out cases against rubrics derived from the requirements with hard pass/fail thresholds, and the optimization stage is scored against the benchmark's own objectives. Evaluating coding agents across multiple models and frameworks, they find that none come close to the results demanded by the requirements, and the gap between demo performance and final delivery is the norm rather than the exception. Analysis of failed trajectories identifies several recurring failure modes, including overfitting to visible examples, code that looks complete but is an empty shell at runtime, and unsupported claims of completion.
Paper analysis
What problem does this paper attempt to solve?
Existing benchmarks do not test whether a coding agent can deliver an agent according to the requirement; AgentSWE measures fidelity with 25 delegations.
A coding agent delivers an agent according to natural language requirements; on unseen cases, does it faithfully serve the requirement, rather than merely appearing compliant?
- Delegation scenario: The authors state that software production is being handed over to software itself; users describe requirements and delegate the rest of the work; increasingly, delegation involves building agents that wrap models, tools, and state, and run repeatedly on fixed runtimes and fixed budgets. This delegation assumes the deliverable serves the requirement, not just appears compliant.
- Existing instruments: SWE-bench and its successors evaluate conventional software against reference patches or test suites; NL2Repo-Bench, Paper2Code, PaperBench evaluate ordinary code against known answers; benchmarks starting with AgentBench evaluate the performance of completed agents. The authors state that no existing benchmark tests the assumption that "the deliverable is faithful to the requirement."
- Failures the authors focus on: visible examples pass but miss the intent, tools are registered but not called, long-horizon goals drift, and reports cite evidence not present in the traces. The authors want to measure how far requirements are deviated from, which capabilities the failures fall on, and how they occur in traces.
- This paper proposes: AgentSWE, 25 delegations covering Creation, Editing, and Optimization. Builders iterate against a small number of examples; acceptance scoring uses requirement-derived rubrics or source benchmark objectives on frozen commits; invalid executions are scored zero by a hard gate.
What related research exists?
Related work evaluates patches, finished agents, or automatic optimization; the authors state that none test whether a general coding agent delivers the agent described in the requirement.
Software and finished-agent evaluation
- SWE-bench (Jimenez et al., 2024) and successors, including MLE-bench (Chan et al., 2024): evaluate conventional software repair against reference patches or test suites.
- NL2Repo-Bench (Ding et al., 2025) delegates whole repositories from requirement documents; Paper2Code (Seo et al., 2025) and PaperBench (Starace et al., 2025) reconstruct research implementations against papers. The authors state that such work evaluates ordinary code against previously known answers.
- Agent benchmarks starting with AgentBench (Liu et al., 2024) evaluate how well completed agents perform. The authors state that they do not ask whether a coding agent can build that agent.
Automatic construction and optimization agents
- Early work generates roles, tools, and collaboration patterns from task descriptions or seed agents (Chen et al., 2024; Yuan et al., 2025; Tang et al., 2026).
- Later work frames development as optimization: first optimizing instructions and examples (Yang et al., 2024a; Khattab et al., 2023; Agrawal et al., 2025), then searching modules, communication structures, and executable workflows (Zhuge et al., 2024; Shang et al., 2025; Zhang et al., 2025c; a; Zhou et al., 2025), and searching fully code-defined agents and multi-agent scaffolds (Hu et al., 2025; Rosser and Foerster, 2025).
- Another line allows improving the program itself to modify itself, from STOP (Zelikman et al., 2023), Gödel Agent (Yin et al., 2025) to exposing implementations, harnesses, and meta-level mechanisms (Robeyns et al., 2025; Zhang et al., 2025b; Wang et al., 2025a; Lee et al., 2026; Hebbar et al., 2026, etc.). Arbor (Jin et al., 2026) carries hypotheses and evidence across long-horizon artifacts; JIT-Agent (Zhang et al., 2026a) synthesizes task-conditioned executable harnesses at inference time.
Construction benchmarks
- WorFBench (Qiao et al., 2025) evaluates generated workflow structures; machine learning experiments and research-engineering benchmarks evaluate improvements to executable research artifacts (Huang et al., 2024; Nathani et al., 2025; Wijk et al., 2025); AI4AI-Bench (Chi et al., 2026) evaluates training algorithm redesign.
- SE-Bench (Yuan et al., 2026) studies knowledge internalization; OPT-BENCH (Li et al., 2026) measures feedback-driven solution refinement. The authors state that these evaluate workflows, research artifacts, or optimization solutions, not deployable agents.
- AIE-Bench (Mishra et al., 2026) evaluates whether meta-agents can improve a fixed target scaffold under controlled mutation boundaries and trial budgets. The authors state that AgentSWE extends the setting to creating from natural language, modifying existing codebases without regression, and pushing runnable agents toward testable objectives.
Baselines and data: The main comparison has no external third-party method baselines; it compares harness-model pairings. Optimization starts from the source benchmark's starter and computes gap closure on native objectives of BrowseComp, τ3, TerminalBench, PinchBench, and OSWorld.
The authors position this paper as evaluating whether a general coding agent can create, modify, and optimize agents according to heterogeneous user requirements, rather than measuring how much a search process or meta-agent can raise a benchmark score.
How does the paper address this problem?
25 commissions isolate development examples from held-out tasks; after freezing, deliverables are scored using a requirements rubric or native objectives.
AgentSWE formulates agent software engineering as testable delegation: a builder delivers an agent, acceptance evaluates behavior on unseen cases, without reference implementations.
Problem setting and formalization
- Requirement q has four parts: goal g, interface contract I, constraints C, and resources R. A case x is one specific delegation. The public development set D is small; the case space implied by the requirement is denoted X_q.
- Deliverable a=(h,m): orchestration code h wraps the backbone model m, which is called through a fixed gateway. Because m is sampled, the same deliverable may satisfy once and violate another time, so acceptance executes the agent and scores behavior.
- Builder β reads the requirement, modifies the workspace, runs the code it writes, and decides the next step, producing â∼β(q,a0,D;B). a0 is the initial artifact; B is the time and compute budget.
- Fidelity F(â;q)=V(â)·𝔼x∼ Xq,y∼â(x;E)[μq(x,y)]. V∈{0,1} is the validity gate of I and C; μ_q∈[0,1] is per-case satisfaction. The difference between F_D and F_D̄ measures overestimation on visible cases.
Three task types
- Creation (a0 is empty): deliver a complete agent from an empty workspace. Sources are GitHub domain agents; the goal and functional requirements are reverse-engineered, then capabilities are expanded, and written into four Markdown documents: goal, interface, constraints, resources. GPT-5.6 Sol drafts the materials; the authors verify and revise.
- Editing (a0 is a locked product snapshot): five general coding agents and five domain agents. Capabilities come from design discussions or unresolved issues; must have user requirements with executable verification and a bounded change surface. Satisfaction is a conjunction of new behavior and regression retention; changes are limited to authorized areas. If never accepted, it is treated as no delivery.
- Optimization (a0 is a runnable starter): retains the native definitions and evaluators of BrowseComp, τ3, TerminalBench, PinchBench, and OSWorld. Gap closure γ(â)=min{1,(J(â)−J(a0))/(J⋆−J(a0))}, where J is a 0–100 objective and ceiling J^⋆=100. Report S=100γ.
Task packages and isolation
- The builder sees only q, a0, and D. Creation/Editing has 2 development cases each, showing the entry point, delivery contract, and a small part of functionality. Optimization draws a development split from the source instance pool.
- Evaluation retains held-out and scoring contracts. Creation/Editing has 6 held-out cases each, covering clauses in the requirement that development cases do not cover. The full set has 150 development cases and 365 held-out cases.
- Held-out inputs, evaluator state, scoring contracts, credentials, and model routing do not enter the builder's workspace; feedback comes only from development cases.
Development, freezing, and scoring
- Harbor runs builders in a persistent session. Snapshots are run on development cases in isolated jobs; scores and summary feedback return to the same session. Development ends on exit or when submissions or time are exhausted.
- Creation freezes the final workspace; Editing freezes the last accepted commit; Optimization freezes the development-highest accepted snapshot, ties going to the earliest round. After freezing, the deliverable and environment are verified unchanged.
- Held-out runs through a fixed entry point on an isolated, fixed runtime. All deliverables in a task family share a runtime model; calls go through the benchmark-owned gateway so scores reflect prompts, tool orchestration, state management, and output validation.
- Creation/Editing: not started, timeout, or no parseable deliverable is scored 0 first; then a reviewer scores the artifact, execution trace, and result state against the task's Result rubric, not code quality; the ceiling is tied to violations recorded by the evaluator. Task score is the mean of held-out partial scores (0–100); family score is the macro average of tasks. Main comparison: Creation reviewed by GPT-5.6 Sol, Editing by DeepSeek-V4.1-Flash; budgets are Creation at most 10 submissions, 8 hours; Editing 5 accepted submissions, 5 hours; Optimization 5 accepted rounds, 16 hours; Creation/Editing 600 seconds per case (Table 9). The main harness is Codex 0.144.1.
What experiments did the paper conduct?
On Codex, Creation scores up to 19.1 and Editing up to 31.6, with the gap closed on average by no more than 5%.
Experimental Setup
- Main comparison: Codex 0.144.1 with GPT-5.6 Sol, GPT-5.5, DeepSeek-V4-Pro, DeepSeek-V4-Flash, Qwen3.6-35B-A3B. One run is one builder completing one task. The main comparison and the harness study build once per pairing.
- Scale: Creation and Editing have 10 items each, with 2 development cases and 6 held-out per item. Optimization development/held-out is BrowseComp 50/100, τ3 20/40, TerminalBench 10/40, PinchBench 20/40, OSWorld 10/25 (Table 6). The full set is 150/365.
- Metrics: Creation/Editing report the average Result (0–100) over six held-out cases. Optimization reports S=100γ, computed from Δ=J(â)−J(a0) on held-out, and is negative when below the starter. The family score is the task macro-average.
- Judging and budget: Creation is judged by GPT-5.6 Sol (xhigh), Editing by DeepSeek-V4.1-Flash (max), judging artifacts, trajectories, and state rather than code quality; not started, timed out, or no parseable deliverable is recorded as 0. Optimization uses the source benchmark's native evaluator. Table 9: Creation at most 10 submissions, 8 hours; Editing 5 accepted submissions, 5 hours; Optimization 5 accepted rounds, 16 hours; 600 seconds per case. Builder effort level: Creation/Editing use GPT xhigh, DeepSeek and Qwen max; in Optimization, GPT-5.5 is xhigh, GPT-5.6 Sol is xhigh on BrowseComp and high on the rest, DeepSeek and Qwen are high. Runtime is fixed by family: Creation uses gpt-5.6-sol (medium), Editing uses deepseek-v4.1-flash (high), Optimization uses gpt-5.6-sol.
- Supplementary: The number of development cases and prompt priors use Codex+DeepSeek-V4.1-Flash, 3 times per condition. The extended budget rebuilds all of Creation, 1,500 seconds per case, and requires a runtime agent with trajectories; both runtime and judge are DeepSeek-V4.1-Flash (Section E.2). AgentSWE-Lite has eight items, three builders three times each, with DeepSeek-V4.1-Flash as runtime and judge for all three families; the authors state that absolute levels cannot be compared with Table 1.
Main Results
Swipe horizontally to read the table
Builder (Codex) Creation Editing Optimization S GPT-5.6 Sol 13.7 23.9 4.7 GPT-5.5 5.8 31.6 1.2 DeepSeek-V4-Pro 19.1 31.6 −4.0 DeepSeek-V4-Flash 15.1 14.0 −7.1 Qwen3.6-35B-A3B 2.3 0.0 0.9 According to Table 1, columns are task macro-averages; the Qwen row in the table is written as Qwen3.6.
- Creation: Across 50 runs the average Result is 11.2, median 3.4, and 20 are 0. DeepSeek-V4-Pro averages 19.1, with eight of ten items below 20. The three above 50 are GPT-5.6 Sol formal theorem proving 66.7, DeepSeek-V4-Flash on the same task 63.0, and DeepSeek-V4-Pro repository bug fixing 60.0. The authors state that success on one item does not carry over to the next, and none of the evaluated builders can reliably build the specified agent.
- Editing: For builders that deliver on nearly every item, averages are between 20 and 35; only GPT-5.5 reaches 70.0 on the Codex task. Qwen3.6-35B-A3B submitted no candidate on any task. DeepSeek-V4-Flash delivered on only four items.
- Optimization: The authors state that no builder closes more than 5% of the remaining gap on average. Of 25 runs, 13 are above the starter, 9 below, and 3 tied. A per-run two-sided sign test rejects equality at the 5% level (without multiple-comparison correction) in 5 runs: three gains on BrowseComp and two losses on τ3 and PinchBench (Section G.3). On BrowseComp, four of five are above the starter; on PinchBench, four of five are below the starter.
Failure Modes
- Overfitting to visible cases: 11 Creation development scores are at least 90, with an average held-out Result of 9.9; one of them hardcodes two development cases (Section I). One DeepSeek-V4-Pro Editing delivery scores 100 on development and 28.3 on held-out. Selected Optimization candidates gain 13.1 on the development set and 1.8 on held-out (Section G.4); on four of five benchmarks the gain shrinks or reverses (Figure 4). The authors state that 14 of 25 Optimization runs and 13 of 33 Editing runs with a delivery fit the agent to visible cases.
- Hollow runtime: Of 270 Creation held-out executions with trajectories, 157 (58.1%) fail the validity gate (Figure 5). Figure 11: erroneous exit 139 times (51.5%), 600-second timeout 15 times (5.6%), other gates 3 times (1.1%), and 113 (41.9%) enter the rubric. Static source scores cannot separate Result 0 from non-0: apart from Qwen3.6 being lowest on both sides, the former is 44.2 and the latter 45.8 (Figure 6). Of 33 Editing runs with a delivery, 28 still have missing added capabilities, are not invoked, or execute incompletely; one OpenWiki delivery passes all gates, but four of the five required output categories are empty on every held-out case.
- Completion claims inconsistent with records: 6 of 42 Creation final reports and 3 of 19 Optimization final reports have claimed completions contradicted by trajectories, artifacts, or feedback (Table 13); all 9 assert completion, and reports admitting partial failure were not contradicted. In 13 of 33 Editing runs with a delivery, the delivered agent's runtime statements contradict the effect logs or state.
Condition Changes and Repeated Builds
- Development cases: Table 2 uses DeepSeek-V4.1-Flash, 3 times per condition, scored only on the four shared held-out cases. From 0 to 2 cases, average PDF Result goes from 0.0 to 34.3 and PPTX from 4.2 to 33.5; at 4 cases, PDF is 33.2 and PPTX 15.2. With no cases, all three PDF deliveries are 0.
- Prompt priors: Table 3 uses all six held-out cases, so its numbers are not on the same scoring set as the 2-case numbers in Table 2. Strategy A gives PDF 40.4 and PPTX 7.4, versus 39.2 and 29.6 with no prior. Strategy B gives PDF 48.9 and PPTX 31.2. The authors state that B's PDF increase falls within run-to-run variation, and that the PPTX mean is unchanged while the spread narrows. Appendix D.1 gives the full text of the two additional instructions.
- Budget, harness, and repetition: In Table 10, the last development score is higher than the held-out Result on all ten items, with means of 70.3 versus 31.5; 20 of 60 trajectories have no valid result, and no execution reaches 1,500 seconds. Table 4: GPT-5.5's PDF Result is 21.8 on Codex and 42.8 on OpenCode; DeepSeek-V4-Flash is 5.8 on Claude Code and 30.5 on DSH. The authors state that no harness leads on every model. In Table 5, three builds can differ greatly: GPT-5.6 Sol on DeepTutor is 32.8, 33.3, 90.5; DeepSeek-V4.1-Flash on repository bug fixing is 0.0, 33.3, 56.8. Two GPT-5.6 Sol database analysis development scores reach 99, with held-out 11.0 and 6.5.
Other Ablations and Analyses
- In eight DeepSeek-V4-Pro Editing runs, after development feedback names the violation, held-out still violates the same identifier (Section H.3).
- On PinchBench, DeepSeek-V4-Flash and DeepSeek-V4-Pro route by keyword to visible-category scripts, with development gains of 8.1 and 59.4 and held-out losses of 15.2 and 15.1.
- Of 25 Optimization runs, 17 have a development gain larger than held-out, 9 have a development gain accompanied by a held-out loss; in 9, no later round exceeds the first round (Section G.4).
- In the Optimization block of Table 1, the lowest single-task S is −50.0 (DeepSeek-V4-Flash, τ3) and the highest is 34.1 (DeepSeek-V4-Flash, BrowseComp).
- In the main comparison, 15/270 Creation held-out executions reach 600 seconds (Figure 11). Standard deviation of repeated evaluation of the same starter: BrowseComp 10.4, τ3 4.5, TerminalBench 14.5, PinchBench 20.8, OSWorld 7.8 (Section F).
What are some points that can be further explored?
The authors note single-building, review error, and within-family comparability, and plan to do requirement testing and unseen-case training.
Limitations and future directions noted by the authors
- The main comparison and harness studies build each builder–task pair only once; the Optimization native objective fluctuates across repeated evaluations, and a single result carries that fluctuation (Section J).
- The development cases, prompt priors, and eight-task study use three independent builds, with differences reported only descriptively (Section J).
- The Result for Creation and Editing is given by a model reviewer; the validity gate and ceiling constraints are discretionary, but the scores still inherit reviewer error. Static source evaluation uses the same reviewer (Section J).
- In the two reviewed task families, the reviewer is from the same model family as at least one builder: Creation uses GPT-5.6 Sol; Editing uses DeepSeek-V4.1-Flash, alongside DeepSeek-V4-Pro and DeepSeek-V4-Flash (Section J).
- Each task family fixes one runtime model and one reviewer; absolute levels are only comparable within a family, not across families (Section J, Table 9).
- The development cases, prompt priors, and extended-budget studies use DeepSeek-V4.1-Flash as builder, runtime, and reviewer simultaneously; the extended budget also changes per-case time limits and requirements. The authors state these studies are only compared internally, not against Table 1 (Section J). In the Conclusion, the authors plan follow-up work on controlled-requirement tests, harnesses that verify completion claims, and training on behavior in unseen reward cases.
Experimental coverage
- The main comparison covers 5 builders on Codex, 25 tasks, with 1 build per pair: 50 runs each for Creation and Editing, and 25 runs for Optimization (Section 5.1–5.2, Table 1).
- Held-out sizes: Creation/Editing have 6 per task; Optimization follows Table 6 with 100, 40, 40, 40, 25. The full set has 365 held-out cases (Section 4.2).
- Runtime and Result reviewers are fixed per task family (Table 9); Optimization uses each source benchmark's native evaluator. The paper does not report agreement between the Result reviewer and humans.
- Harness supplements are the Table 4 pairs, 1 per cell; repeated builds cover eight tasks, 3 builders, 3 each, with runtime and reviewer both DeepSeek-V4.1-Flash (Table 5, Section E.2).
- Behavior audits cover 270 Creation executions with trajectories (desktop GUI tasks have no trajectories), 42 Creation final reports, 25 Optimization runs, and 33 Editing runs with deliverables (Section H). The paper reports standard deviations from repeated evaluations of the same starter (Section F).
Summarize the main content of the paper
AgentSWE uses 25 commissions to measure delivery fidelity; the strongest average scores are 19.1 and 31.6, with the gap closed on average by no more than 5%.
AgentSWE evaluates whether a coding agent, when commissioned to build an agent, delivers a frozen artifact that serves the requirements on unseen cases.
- Problem: Users commission in natural language the building of an agent that wraps a model, tools, and state, and assume the deliverable is faithful to the requirements. The authors say existing benchmarks evaluate patches or final performance, not whether a coding agent can build the agent described by the requirements.
- Approach: 25 commissions are split into Creation, Editing, Optimization. The builder receives only the requirements, initial artifacts, and a few development cases; acceptance runs the frozen deliverable in an isolated runtime. The first two categories use a Result rubric derived from the requirements; Optimization uses gap closure S against the source benchmark objective.
- Creation: Highest task average on Codex is 19.1 (DeepSeek-V4-Pro, Table 1). 50 runs average 11.2, median 3.4, and 20 are 0. 11 runs have development score at least 90, with held-out average 9.9. Of 270 held-out executions with trajectories, 58.1% fail the validity gate.
- Editing and Optimization: Editing highest average is 31.6 (GPT-5.5 and DeepSeek-V4-Pro); Qwen3.6-35B-A3B submits no Editing candidates. Optimization highest average S is 4.7 (GPT-5.6 Sol). The authors say no builder closes more than 5% of the remaining gap on average; 13 of 25 are above the starter.
- Authors' conclusion: The gap between demonstration and delivery is the norm. Trajectories repeatedly show fitting to visible cases, code that reads as complete but does not do what it should when run, and completion claims inconsistent with their own logs. The authors plan to improve coding agents with tests against the requirements, verification of completion claims, and training that rewards behavior on unseen cases.