PAGENT: Learning to Patch Software Engineering Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM Agents produce patches automatically to resolve an issue. However, they can generate inaccurate patches. Little is known about the root causes behind those failed patches or how those could be fixed. This paper reports an empirical study of the failed patches generated by seven top LLM code agents. We collected 114 issues from the SWE-bench Lite dataset that remained unresolved across the agents. The seven agents produced a total of 769 failed patches for those issues, which we checked with a combination of GPT-4o and manual analysis. We present a taxonomy of the failure reasons across the patches. The taxonomy contains six categories, with several sub-categories under each category. For example, a frequently observed category is the inability of an LLM to correctly infer/produce the appropriate variable type in the produced patch. As a first step towards addressing such type-related errors, we designed PAGENT (Patch Agent). PAGENT utilizes program analysis techniques like CFG creation and exploration to infer the type of information of a patch. PAGENT does this by applying repository-level static code analysis techniques. Then, PAGENT refines the inferred type by further utilizing an LLM-based inference technique. We tested PAGENT on all 127 type-related failed patches from the top three agents in our study. PAGENT could fix 29 of the 127 failed patches.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 35 references that are in the map. First posted on arXiv 21 Jun 2025.
Builds on
15 of 35 references.
Closest ancestors · 6
Same direction, newest first
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debugging26 Apr
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar
Other references · 9
- 2024GPT-4o System Cardcited by 4,588
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2024AutoCodeRover: Autonomous Program Improvementcited by 278
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2022Automated Repair of Programs from Large Language Modelscited by 71
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 25
- 2024Memory-Efficient Large Language Models for Program Repair with Semantic-Guided Patch Generationcited by 5
- 2023PatchZero: Zero-Shot Automatic Patch Correctness Assessmentcited by 3
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localizationcited by 4
- 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agentscited by 1
- 2025One Tool Is Enough: Reinforcement Learning for Repository-Level LLM Agentscited by 0
- 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agents9 Apr 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025One Tool Is Enough: Reinforcement Learning for Repository-Level LLM Agents24 Dec 2025
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localization30 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios
- 2025Agentic Program Repair from Test Failures at Scale: A Neuro-symbolic approach with static analysis and test execution feedback
- 2024An Empirical Study on LLM-based Agents for Automated Bug Fixing
- 2026Probe-and-Refine Tuning of Repository Guidance for Coding Agents
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents
- 2025From LLMs to Agents: A Comparative Evaluation of LLMs and LLM-based Agents in Security Patch Detection
- 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labeling
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement