Introduction
As Large Language Model (LLM)-based agents emerge as a dominant software paradigm, a critical meta-question arises: Can the Software Engineering (SE) agents designed to automate coding tasks effectively debug and fix the very systems they are built upon? While current SE agents demonstrate significant proficiency in resolving traditional software bugs, their performance on agent-specific issues remains largely unexplored. This paper introduces AGENTISSUE-BENCH, a specialized benchmark comprising real-world agent bugs, to evaluate the current state of "agents fixing agents."
The Challenge of Agentic Software
LLM-based agent systems, such as MetaGPT and AutoGen, differ fundamentally from traditional software. They are inherently non-deterministic, depend on volatile external APIs, and maintain complex internal states involving memory and planning. Traditional debugging tools are often ill-equipped to handle failures rooted in LLM hallucinations or API contract changes. Consequently, while SE agents like SWE-agent or Agentless have shown promise in standard Python environments, their ability to navigate the unique failure modes of agentic systems is a significant open question.
Methodology
The researchers developed a systematic pipeline to construct the benchmark and evaluate agent performance. This process involved three primary phases: system collection, issue extraction, and taxonomy construction.
- Taxonomy Construction: A manual analysis of 201 GitHub issues from 18 popular agent repositories was conducted to identify common failure modes.
- Benchmark Engineering: From the initial pool, 50 (later expanded to 70) reproducible tasks were curated. This required approximately 500 person-hours to address the "flakiness" inherent in agent bugs. Each task was containerized with failure-triggering tests to ensure rigorous evaluation.
- Evaluation Framework: Three state-of-the-art SE agents—Agentless, AutoCodeRover, and SWE-agent—were tested using GPT-4o and Claude-3.5-Sonnet as underlying models.
Taxonomy of Agent Failures
The study identified six major categories of issues within agentic systems. While some overlap with traditional "Utility" errors, many are specific to the agent architecture.
- LLM Operation Issues (31.34%): The largest category, involving parsing errors, context window management, and prompt-related failures.
- Tool-Related Issues: Failures in interacting with external tools, such as handling non-standard character encoding during web searches.
- Memory Issues: Errors in the storage, retrieval, or initialization of an agent's internal state and history.
- Incompatibility with LLM Providers: Issues arising from changes in external model APIs or parameter mismatches.
Key Results
The evaluation revealed a stark performance gap between traditional software maintenance and agent-specific debugging:
- Low Resolution Rates: On AGENTISSUE-BENCH, the most successful configuration (AutoCodeRover with Claude-3.5-Sonnet) achieved a resolution rate of only 4.67%.
- The Traditional Contrast: In contrast, these same SE agents resolve between 23% and 50% of issues on the standard SWE-bench (traditional code).
- Localization Difficulties: Agents struggled significantly with bug localization. Accuracy in identifying the correct file dropped below 28% for agent-specific tasks.
- Model Performance: Claude-3.5-Sonnet consistently outperformed GPT-4o, demonstrating superior reasoning capabilities for complex agent logic.
Conclusion and Future Directions
The failure of SE agents to fix agentic systems is attributed to several factors, including the lack of up-to-date API knowledge and the difficulty of static analysis on non-deterministic code. To bridge this gap, the authors propose:
- Dynamic Analysis: Equipping SE agents with the ability to execute code and inspect runtime trajectories.
- External Knowledge Integration: Providing agents with access to live documentation to handle the rapid evolution of LLM providers.
- Agent-Specific Training: Fine-tuning agents on trajectories of how agent systems fail and are fixed.
In conclusion, while SE agents are becoming powerful tools for traditional software development, they currently lack the specialized capabilities required to maintain the next generation of LLM-based agent systems.
Summary updated