EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

SGAgent : Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair

Quanjun Zhang, Chengyu Gao, Yu Han, Ye Shang, Chunrong Fang, Zhenyu Chen, Liang Xiao

ACM Transactions on Software Engineering and Methodology · 30.11.2026 · 35 (11) · 1-33

DOI: 10.1145/3818617 ↗

Kurz gefasst

Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 04.11.2026. Verfasst von Quanjun Zhang und 6 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 72 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Natural Science Foundation of Jiangsu Province, National Natural Science Foundation of China, Frontier Technologies R&D Program of Jiangsu.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

The rapid advancement of Large Language Models (LLMs) has led to the emergence of intelligent agents capable of autonomously interacting with environments and invoking external tools. Recently, agent-based software repair approaches have received widespread attention, as repair agents can automatically analyze and localize bugs, generate patches, and achieve state-of-the-art performance on repository-level benchmarks (e.g., SWE-Bench). However, existing software repair approaches usually adopt a localize-then-fix paradigm , jumping directly from “where the bug is” to “how to fix it,” leaving a fundamental reasoning gap. To this end, we propose SGAgent , a S uggestion- G uided multi- Agent framework for repository-level software repair, which follows a localize-suggest-fix paradigm. Specifically, SGAgent introduces a suggestion to strengthen the transition from localization to repair. The suggester starts from the buggy locations and incrementally retrieves relevant context until it fully understands the bug, and then provides actionable repair suggestions. Moreover, we construct a Knowledge Graph (KG) from the target repository and develop a KG-based toolkit to enhance SGAgent ’s ability to enhance global contextual awareness and repository-level reasoning. Based on these components, three specialized sub-agents in SGAgent (i.e., localizer, suggester, and fixer) collaborate to achieve automated end-to-end software repair. We evaluated SGAgent on the SWE-Bench-Lite benchmark. Experimental results show that SGAgent with Claude-3.5 achieves 51.3% repair accuracy, 81.2% file-level, and 52.4% function-level localization accuracy with an average cost of $1.48 per instance, outperforming all baselines using the same base model. Moreover, SGAgent generalizes well across different base LLMs, further reaching a 60.7% resolution rate with Claude-4. When extended to vulnerability repair, SGAgent achieves a 48.0% resolution rate on VUL4J and VJBench, demonstrating strong generalization across tasks and programming languages.

Förderung

  • Natural Science Foundation of Jiangsu Province
  • National Natural Science Foundation of China
  • Frontier Technologies R&D Program of Jiangsu

Zitieren

APA

Zhang, Q., Gao, C., Han, Y., Shang, Y., Fang, C., Chen, Z., & Xiao, L. (2026). SGAgent : Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair. ACM Transactions on Software Engineering and Methodology, 35(11), 1-33. https://doi.org/10.1145/3818617

Vancouver

Zhang Q, Gao C, Han Y, Shang Y, Fang C, Chen Z, et al. SGAgent : Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair. ACM Transactions on Software Engineering and Methodology. 2026;35(11):1-33. doi:10.1145/3818617

BibTeX
@article{Zhang2026,
  author = {Zhang, Quanjun and Gao, Chengyu and Han, Yu and Shang, Ye and Fang, Chunrong and Chen, Zhenyu and Xiao, Liang},
  title = {SGAgent : Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair},
  journal = {ACM Transactions on Software Engineering and Methodology},
  year = {2026},
  volume = {35},
  number = {11},
  pages = {1--33},
  doi = {10.1145/3818617}
}
Kostenlos starten →