paper-with-me

Papers

HAFixAgent: History-Aware Program Repair Agent

2025-11-02 · Yu Shi, Hao Li, Bram Adams, Ahmed E. Hassan arxiv

Automated program repair (APR) has recently shifted toward large language models and agent-based systems, yet most systems rely on local snapshot context, overlooking repository history. Prior work shows that repository history helps repair single-line bugs, since the last commit touching the buggy line is often the bug-introducing one. In this paper, we investigate whether repository history can also improve agentic APR systems at scale, especially for complex multi-hunk bugs. We present HAFixAgent, a History-Aware Bug-Fixing Agent that injects blame-derived repository heuristics into its repair loop. A preliminary study on 854 Defects4J (Java) and 501 BugsInPy (Python) bugs motivates our design, showing that bug-relevant history is widely available across both benchmarks. Using the same LLM (DeepSeek-V3.2-Exp) for all experiments, including replicated baselines, we show: (1) Effectiveness: HAFixAgent outperforms RepairAgent (+56.6\%) and BIRCH-feedback (+47.1\%) on Defects4J. Historical context further improves repair by +4.4\% on Defects4J and +38.6\% on BugsInPy, especially on single-file multi-hunk (SFMH) bugs. (2) Robustness: under noisy fault localization (+1/+3/+5 line shifts), history provides increasing resilience, maintaining 40 to 56\% success on SFMH bugs where the non-history baseline collapses to 0\%. (3) Efficiency: history does not significantly increase agent steps or token costs on either benchmark.

📄 PDF Abstract BibTeX arXiv:2511.01047

Code (0)

등록된 구현이 없습니다.

Tasks

Program Repair

Similar Papers 제목 키워드 기반

RepairAgent: An Autonomous, LLM-Based Agent for Program Repair

2024-03-25 · Islem Bouzenia, Premkumar Devanbu, Michael Pradel

Automated program repair has emerged as a powerful technique to mitigate the impact of software bugs on system reliability and user experience. This paper introduces RepairAgent, the first work to address the program rep…

Language ModellingLarge Language ModelProgram Repair

FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repair

2026-03-18 · Ruize Ma, Yilei Jiang, Shilin Zhang, Zheng Ma 외 arxiv

Multimodal Automated Program Repair (MAPR) extends traditional program repair by requiring models to jointly reason over source code, textual issue descriptions, and visual artifacts such as GUI screenshots. While recent…

Visual GroundingVisual ReasoningProgram Repair

ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair

2026-07-02 · Chiwang Luk, Matin Mohammad Najafi, Zhifeng Jia, Wei Yang 외 arxiv

Large language model agents can repair real repository issues, but they often spend large context budgets on whole-file reads, broad searches, and long terminal outputs where useful evidence is mixed with irrelevant code…

Program Repair

RepoRepair: Leveraging Code Documentation for Repository-Level Automated Program Repair

2026-03-01 · Zhongqiang Pan, Chuanyi Li, Wenkang Zhong, Yi Feng 외 arxiv

Automated program repair (APR) struggles to scale from isolated functions to full repositories, as it demands a global, task-aware understanding to locate necessary changes. Current methods, limited by context and relian…

Program Repair

SIADAFIX: issue description response for adaptive program repair

2025-10-17 · Xin Cao, Nan Yu arxiv

We propose utilizing fast and slow thinking to enhance the capabilities of large language model-based agents on complex tasks such as program repair. In particular, we design an adaptive program repair method based on is…

Program Repair