NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Agentless: Demystifying LLM-based Software Engineering Agents

Chunqiu Steven Xia, Yinlin Deng, Soren Dunn, Lingming Zhang

TL;DR

AGENTLESS challenges the current trend of building increasingly complex autonomous software engineering agents. By replacing iterative planning and tool-use with a simple, structured three-phase pipeline—localization, repair, and validation—it achieves state-of-the-art performance on the SWE-bench Lite benchmark (32.00%) at a fraction of the cost ($0.70 per issue).

What Problem Does This Paper Address?

The software engineering community has recently pivoted toward "autonomous agents" (like Devin or SWE-agent) that use LLMs to browse codebases, run commands, and plan their own multi-step strategies to fix bugs. However, these agents are often "black boxes" that are expensive to run and prone to getting lost in their own complex decision-making loops.

The authors identify three major limitations in current agentic approaches:

  1. Complex Tool Usage: Mapping LLM outputs to API calls is error-prone and adds overhead.
  2. Planning Confusion: Agents can take 30–40 turns to solve a problem, making them hard to debug and easy to distract.
  3. Lack of Self-Reflection: LLMs struggle to filter out their own incorrect steps, often amplifying errors over time.

AGENTLESS asks a fundamental question: Do we actually need this complexity?

Methods

Instead of an autonomous agent, the authors propose a fixed, "agentless" pipeline. The process is broken down into three distinct, non-iterative phases:

1. Hierarchical Localization

To avoid overwhelming the LLM with thousands of lines of code, AGENTLESS narrows down the bug location in steps:

  • File Level: It uses a combination of LLM prompting (based on the repository's folder structure) and embedding-based retrieval to find the top $N$ suspicious files.
  • Element Level: For those files, it generates a "skeleton" (shown in Figure 2) containing only class and function signatures. This allows the LLM to see the "big picture" without the noise of implementation details.
  • Line Level: Finally, it provides the full code for the identified elements and asks the LLM for specific edit locations.
Figure 2: File skeleton format.

2. Repair

Once the location is found, AGENTLESS generates multiple candidate patches. Crucially, it uses a Search/Replace diff format (Figure 3) rather than rewriting entire files. This reduces the chance of the LLM "hallucinating" changes in unrelated parts of the code.

Figure 3: Search/Replace edit format.

3. Patch Validation

To pick the best patch, AGENTLESS:

  1. Generates a reproduction test (Figure 4) based on the issue description to confirm the bug exists.
  2. Filters out patches that fail existing regression tests.
  3. Selects the patch that passes the reproduction test and has the most "votes" from a majority-voting ensemble.
Figure 4: Example reproduction test.

Datasets

The authors evaluated AGENTLESS on SWE-bench Lite, a subset of 300 real-world GitHub issues.

During their evaluation, they discovered significant noise in the benchmark, such as issues that already contained the solution in the description or lacked enough information to be solved. To address this, they introduced SWE-bench Lite-S, a cleaned version of the dataset (249 problems) designed for more rigorous testing.

Key Insights and Ideas

  • Structure Over Autonomy: The success of AGENTLESS suggests that for current LLMs, a well-defined, hard-coded workflow is more effective than letting the model "decide" what to do next.
  • The Power of Skeletons: Providing function signatures (skeletons) instead of full code blocks is a highly token-efficient way to give LLMs repository-level context.
  • Simplicity is Cost-Effective: By avoiding long, multi-turn "agentic" conversations, AGENTLESS reduces inference costs by orders of magnitude compared to commercial agents.
  • Benchmark Fragility: The manual classification of SWE-bench Lite revealed that 10% of issues are essentially unsolvable due to missing information, highlighting the need for better evaluation standards in the field.

Key Results

  • Performance: AGENTLESS resolved 32.00% (96/300) of issues on SWE-bench Lite, the highest among all open-source approaches at the time of publication.
  • Cost: The average cost per issue was only $0.70, significantly lower than agent-based competitors (some of which cost $2–$4 per issue).
  • Industry Adoption: The approach was so effective that OpenAI adopted it as the "go-to" method for showcasing the coding capabilities of their GPT-4o and o1 models.
Figure 1: Overview of AGENTLESS.

Limitations and Future Work

  • Data Leakage: As with all LLM benchmarks, there is a risk that the models were partially trained on the GitHub issues used for evaluation.
  • Complex Search: AGENTLESS performs slightly worse than some closed-source agents on problems where the issue description provides zero clues about the bug's location. In these cases, the ability of an agent to use complex search tools might still be an advantage.
  • Future Directions: The authors plan to explore better patch re-ranking techniques and apply the "agentless" philosophy to other software engineering tasks like feature addition and test generation.

Summary updated

BibTeX
@misc{xia2024agentless,
  author = {Chunqiu Steven Xia and Yinlin Deng and Soren Dunn and Lingming Zhang},
  title = {{Agentless: Demystifying LLM-based Software Engineering Agents}},
  year = {2024},
  eprint = {2407.01489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.01489},
}
Figure