GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

Agentless: Demystifying LLM-based Software Engineering Agents

Fix GitHub issues with a fixed localization, repair and validation pipeline. Agentless resolved 32% of SWE-bench Lite for $0.70 per issue, leading the open-source systems in the paper's comparison.

Breakdown by FDE Interviews · 13 min read · Updated

About the original · 2024
AUTHORS
Xia, Deng, Dunn, Zhang
FROM
University of Illinois Urbana-Champaign
PUBLISHED
Jul 2024 · arXiv preprint
CITED BY
550Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 18% of this breakdown.

01

The paper in one minute

In 2024, the race on SWE-bench, the benchmark of real GitHub issues in Python projects, was a race of agents: systems that give a model a shell, file tools and a test runner, and let it decide step by step what to do. Chunqiu Steven Xia, Lingming Zhang and colleagues at the University of Illinois asked whether that autonomy was earning its keep. Current models plan poorly over long horizons, agents can wander and get stuck, and each extra turn costs money.

Agentless is their answer: a fixed pipeline with no model deciding the next action. Localization narrows the search hierarchically: the model ranks suspicious files (combined with embedding retrieval), then reads a compressed "skeleton" of those files to pick classes and functions, then picks specific edit lines, sampled four times for variety. Repair generates ten candidate patches per set of locations, forty in all, as search-and-replace edits. Validation picks one: it drops patches that break the repository's existing tests, keeps patches that pass a reproduction test the model wrote from the issue, normalizes the remaining patches so cosmetic differences do not split the vote, and submits the most common.

With GPT-4o this resolved 96 of the 300 SWE-bench Lite issues (32.0%) for $0.70 on average, ahead of every open-source agent at the time and cheaper than most. On SWE-bench Verified it resolved 38.8%. The paper also audited the benchmark itself and found issues whose descriptions contained the exact fix, lacked necessary information, or suggested a wrong fix.

THE IDEA, VISUALLY
THREE FIXED PHASES, NO AGENT LOOP Localize files (prompt + embeddings) classes and functions (skeletons) edit lines, 4 sampled sets Repair 10 patches per location set search/replace edits 40 candidates per issue Validate drop patches breaking old tests keep patches passing a generated reproduction test, then vote The model never chooses its next action; the pipeline does. SAME 40 CANDIDATES, DIFFERENT SELECTION (TABLE 4) vote 77 / 300 + regression 81 / 300 + reproduction 96 / 300 SIMPLER, CHEAPER, MORE FIXES SWE-bench Lite resolved %, average cost per issue (Table 1) Agentless · GPT-4o $0.70 32.0% OpenDevin + CodeAct · Claude 3.5 S $1.14 26.7% SWE-agent · Claude 3.5 Sonnet $1.62 23.0% SWE-agent · GPT-4o $2.53 18.3% RAG, no agent · Claude 3 Opus $0.25 4.3% Several closed-source systems scored higher (up to 43%) without publishing code or trajectories; some were built on an earlier version of Agentless.
Agentless replaces an agent loop with a pipeline: narrow down where to edit, generate many candidate patches, then let tests pick one. Most of the gain came from the selection step, not from smarter generation.
Research notes: the problem, approach and results
96 / 300

SWE-bench Lite issues resolved at $0.70 each, against 55 for SWE-agent with the same model at $2.53

77 → 96

issues resolved from the same 40 candidates as patch selection added regression and reproduction tests

4.3%

of SWE-bench Lite issues whose description already contained the exact fix

THE PROBLEM

Coding agents give a model tools and let it decide what to do next over many turns. They are complex, expensive and hard to debug, and it was unclear how much of that autonomy actually helped on real issues.

THE IDEA

A fixed process: localize the fault hierarchically from files to functions to lines, generate 40 candidate patches, then filter by existing regression tests and a generated reproduction test, normalize and majority-vote.

THE RESULT

32.0% of SWE-bench Lite resolved (96 of 300) at $0.70 per issue with GPT-4o, the best of any open-source approach then, and 38.8% on SWE-bench Verified. The authors also found that about 19% of SWE-bench Lite issues were flawed and built a cleaner subset.

02

Why it matters to an FDE

A customer asking for "an agent" usually has a task with a known shape. This paper is the strongest public evidence that, for such tasks, a well-designed fixed pipeline can beat a free-roaming agent on quality, cost and debuggability.

Start with the pipeline, add autonomy if it pays. Write the stages the task obviously has, measure, and only let the model choose steps where the fixed structure demonstrably fails. Agentless outperformed agents that cost three times as much.

Generate many candidates, select with evidence. Most of the gain came from choosing among 40 patches with tests, not from generating better ones. When a customer's task has a checker, such as tests, a schema, a reconciliation or a business rule, use it to pick among samples.

Narrow before you generate. Hierarchical localization with compressed views (file skeletons instead of whole files) kept prompts small and accurate. The same idea applies to finding the right document, record or code path in customer data.

Audit the benchmark before trusting it. About one in five SWE-bench Lite issues was flawed. Any customer eval set built from historical tickets will have the same problems: answers in the question, missing information, misleading hints.

Cheap per item changes what is possible. At 70 cents an issue, running every incoming ticket through the pipeline is a budget conversation, not a research project.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 99 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    Each phase in detail, the ablations, the benchmark audit, the results, and the misreadings to avoid

    Free account
  2. 04How it works

    Localization, repair and validation in detail, plus how the benchmark was audited

    Premium
  3. 05The numbers that matter

    Costs and tokens, Lite-S, Verified, and how to read the leaderboard comparison

    Premium
  4. 06Try it yourself

    Simulate the selection stage and see how test quality turns 40 candidates into one good patch

    Premium
  5. 07Where it breaks

    The limits of fixed pipelines and of this evaluation

    Premium
  6. 08Using it on a deployment

    Building a generate-and-select pipeline for a customer's repeated task

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →