HAFixAgent: History-Aware Program Repair Agent
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Automated program repair (APR) has recently shifted toward large language models and agent-based systems, while prior work shows that repository history can help repair single-line bugs. We conduct a large-scale empirical study of whether, how much, and under what conditions repository history improves agentic APR beyond this setting. We present HAFixAgent, a history-aware program repair agent that injects blame-derived repository context into its repair loop. Across 854 Defects4J (Java) and 501 BugsInPy (Python) bugs, we first show that bug-relevant history is widely available. We then evaluate HAFixAgent across three base models under perfect fault localization. The best history heuristic improves over non-history from +4.4% on Defects4J and +1.1% on BugsInPy with the strongest model to as much as +64.3% with weaker models. HAFixAgent also outperforms RepairAgent by +56.6% and BIRCH-feedback by +47.1% on the strongest model, showing that it is a strong repair agent independent of history. The three history heuristics are complementary: each repairs a different subset of bugs, so their hybrid significantly repairs more bugs than non-history (McNemar's test, p < 0.001), and this advantage persists under realistic spectrum-based fault localization. Individual history heuristics are generally no more expensive than non-history in agent steps or tokens under either localization setting, while the hybrid costs roughly twice a single run in a cascade setting.
Key facts. Cited by 3 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 16 of its 83 references that are in the map. First posted on arXiv 2 Nov 2025.
Builds on
16 of 83 references.
Closest ancestors · 7
Same direction, newest first
- 2025SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness Under Resource Constraints11 Sep
- 2025Agentic Software Engineering: Foundational Pillars and a Research Roadmap7 Sep
- 2025Agentic AI for Software: thoughts from Software Engineering community24 Aug
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineering20 Jul
- 2024An Empirical Study on LLM-based Agents for Automated Bug Fixing15 Nov
- 2024A Multi-Agent Approach to Fault Localization via Graph-Based Retrieval and Reflexion20 Sep
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debugging26 Apr
Other references · 9
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024DeepSeek-V3 Technical Reportcited by 811
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 65
- 2024A Systematic Literature Review on Large Language Models for Automated Program Repaircited by 37
- 2025EXPEREPAIR: Dual-Memory Enhanced LLM-based Repository-Level Program Repaircited by 35
- 2025Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMscited by 11
- 2025Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challengescited by 7
- 2025Hierarchical Knowledge Injection for Improving LLM-based Program Repaircited by 6
- 2025HAFix: History-Augmented Large Language Models for Bug Fixingcited by 4
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026AtomicCommitBench: Can Coding Agents Reconstruct Commit Histories from Squashed Patches?cited by 2
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescuecited by 1
- 2026Better Understanding, Better Fixes? A Study of Hallucination in LLM-based Automated Program Repaircited by 0
- 2026Better Understanding, Better Fixes? A Study of Hallucination in LLM-based Automated Program Repair4 Sep 2026
- 2026AtomicCommitBench: Can Coding Agents Reconstruct Commit Histories from Squashed Patches?3 Jul 2026
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescue1 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026MultiFixer: A Coordinator-Proposer Based Multi-Agent Framework For Fixing Multi-Hunk Bugs
- 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repair
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair
- 2026From Historical Patches to Repair Plans: Outcome-Conditioned Reasoning for Repository-Level Program Repair
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localization