Can Agent Fix Agent Issues?

Alfin Wijaya Rahardja, Junwei Liu, Weitong Chen, Zhenpeng Chen, Yiling LouNeurIPS 2025

Introduction

We are entering a new software paradigm where Large Language Model (LLM)-based agents—such as AutoGen, MetaGPT, and CrewAI—handle complex tasks by orchestrating planning, memory, and tool use. However, like all software, these agent systems are prone to bugs and require continuous maintenance to adapt to changing external requirements.

Recently, Software Engineering (SE) agents like SWE-agent have shown remarkable promise in automatically resolving traditional software bugs. But a critical question remains: Can the current generation of SE agents actually maintain the next generation of agentic software?

Agent systems are fundamentally different from traditional software. They are inherently non-deterministic, rely heavily on volatile external APIs, and involve complex "brain" logic (prompting and LLM parameters) that traditional debuggers are not built to handle. This paper introduces AGENTISSUE-BENCH, a first-of-its-kind benchmark of real-world bugs in LLM-based agent systems, revealing that state-of-the-art SE agents fail to resolve over 95% of these issues.

Constructing the Taxonomy and Benchmark

To understand what goes wrong in agent systems, the researchers manually analyzed 201 real-world GitHub issues across 18 popular agent repositories. This analysis led to a taxonomy of six major agent issue categories: Incompatibility with LLM providers, Tool-related, Memory-related, LLM operation, Workflow, and Utility.

Taxonomy construction pipeline for agent issues

Following this, the team spent over 500 person-hours engineering AGENTISSUE-BENCH. This reproducible benchmark comprises 50 specific, real-world agent issue resolution tasks. Because LLMs are non-deterministic, creating this benchmark required building specialized, Dockerized environments with "failure-triggering tests" capable of reliably catching bugs even when an LLM's output varies.

Evaluating State-of-the-Art SE Agents

The researchers evaluated three leading SE agents—Agentless, AutoCodeRover, and SWE-agent—using both GPT-4o and Claude-3.5-Sonnet as their underlying models. The agents were tasked with navigating the codebase, localizing the issue based on the description, and generating a verified patch.

Evaluation framework for SE agents on AgentIssue-bench

Key Findings

The quantitative results serve as a wake-up call for the field, highlighting a massive "Agent Gap" between traditional software maintenance and agent system maintenance:

  • Abysmal Success Rates: On AGENTISSUE-BENCH, the best-performing SE agent (AutoCodeRover powered by Claude-3.5-Sonnet) achieved a correct resolution rate of only 4.67%. For context, these same agents typically solve 20% to 50% of issues in traditional software benchmarks like SWE-bench Lite.
  • Localization is the Bottleneck: In traditional software, SE agents are reasonably adept at finding the buggy file. In agent systems, their file-level localization accuracy drops significantly, often falling below 28%. If an agent cannot locate the bug, it cannot fix it.
  • Struggles with Core Agent Logic: While current SE agents can occasionally fix "Utility" issues (standard Python bugs like file path errors), they almost completely fail at resolving "LLM Operation" or "Memory" issues.
  • Claude Outperforms GPT: Across almost all metrics, agents backed by Claude-3.5-Sonnet outperformed those using GPT-4o, showing a better grasp of the complex architectural logic inherent to agent systems.
  • Complementary Failures: A Venn diagram analysis revealed that different SE agents often fixed non-overlapping bugs. This suggests that current architectures have distinct "blind spots" rather than one being universally superior.

Future Directions

The extreme difficulty of manually reproducing non-deterministic bugs currently limits the benchmark to 50 tasks, though there are plans for continuous expansion. Furthermore, while this study focuses on reactive maintenance (fixing reported bugs), future work could explore proactive maintenance, where agents monitor logs to catch failures before users report them.

Ultimately, the findings underscore the urgent need for "Agent-Aware" SE Agents. The authors suggest three promising paths forward:

  1. Knowledge Bases: Equipping SE agents with access to evolving API documentation and release notes for LLM providers.
  2. Dynamic Analysis: Moving beyond static code reading to analyze "execution trajectories"—understanding how the agent thought and acted during a failure.
  3. Fine-tuning: Utilizing the trajectories collected in AGENTISSUE-BENCH to fine-tune SE agents specifically for the nuances of agentic debugging.

Summary updated

BibTeX
@inproceedings{rahardja2025can,
  author = {Alfin Wijaya Rahardja and Junwei Liu and Weitong Chen and Zhenpeng Chen and Yiling Lou},
  title = {{Can Agent Fix Agent Issues?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=N9HLe9iPhj},
}
Figure