Enhancing repository-level software repair via repository-aware knowledge graphs
Not on the map. Why?
Abstract (arXiv)
Repository-level software repair faces challenges in bridging semantic gaps between issue descriptions and code patches. Existing approaches, which primarily rely on large language models (LLMs), are hindered by semantic ambiguities, limited understanding of structural context, and insufficient reasoning capabilities. To address these limitations, we propose KGCompass with two innovations: (1) a novel repository-aware knowledge graph (KG) that accurately links repository artifacts (issues and pull requests) and codebase entities (files, classes, and functions), allowing us to effectively narrow down the vast search space to only 20 most relevant functions with accurate candidate fault locations and contextual information, and (2) a path-guided repair mechanism that leverages KG-mined entity paths, tracing through which allows us to augment LLMs with relevant contextual information to generate precise patches along with their explanations. Experimental results in the SWE-bench Lite demonstrate that KGCompass achieves state-of-the-art single-LLM repair performance (58.3%) and function-level fault location accuracy (56.0%) across open-source approaches with a single repair model, costing only 0.2 per repair. Among the bugs that KGCompass successfully localizes, 89.7% lack explicit location hints in the issue and are found only through multi-hop graph traversal, where pure LLMs struggle to locate bugs accurately. Relative to pure-LLM baselines, KGCompass lifts the resolved rate by 50.8% on Claude-4 Sonnet, 30.2% on Claude-3.5 Sonnet, 115.7% on DeepSeek-V3, and 156.4% on Qwen2.5 Max. These consistent improvements demonstrate that this graph-guided repair framework delivers model-agnostic, cost-efficient repair and sets a strong new baseline for repository-level repair.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Mar 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 14; 2026: 12.
26 papers.
Sort:
By area:
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2025SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness Under Resource Constraintscited by 17
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repaircited by 9
- 2025A Taxonomy of Prompt Defects in LLM Systemscited by 7
- 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7
- 2025SWE-Factory: Your Automated Factory for Issue Resolution Training Data and Evaluation Benchmarkscited by 6
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCPcited by 6
- 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-benchcited by 5
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Modelscited by 5
14 more
- 2025GraphLocator: Graph-guided Causal Reasoning for Issue Localizationcited by 4
- 2026From Historical Patches to Repair Plans: Outcome-Conditioned Reasoning for Repository-Level Program Repaircited by 2
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localizationcited by 2
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMscited by 1
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2025BackportBench: A Multilingual Benchmark for Automated Backporting of Patchescited by 1
- 2026Is Agentic AI Ready for Real-World Hardware Engineering? A Deep Dive with Phoenix-benchcited by 1
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescuecited by 1
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repaircited by 1
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Modelcited by 1
- 2025Autonomous Issue Resolver: Towards Zero-Touch Code Maintenancecited by 0
- 2026Context-Augmented Code Generation Using Programming Knowledge Graphscited by 0
- 2026Beyond Textual Repository Exploration: Dual-Modal Structural Reasoning for Agentic Issue Resolutioncited by 0
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issuescited by 0
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issues9 Sep 2026
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Model14 Aug 2026
- 2026Beyond Textual Repository Exploration: Dual-Modal Structural Reasoning for Agentic Issue Resolution2 Jul 2026
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair2 Jul 2026
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescue1 Jul 2026
- 2026Is Agentic AI Ready for Real-World Hardware Engineering? A Deep Dive with Phoenix-bench13 May 2026
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localization4 May 2026
- 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP28 Mar 2026
- 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair27 Feb 2026
- 2026From Historical Patches to Repair Plans: Outcome-Conditioned Reasoning for Repository-Level Program Repair30 Jan 2026
- 2026Context-Augmented Code Generation Using Programming Knowledge Graphs28 Jan 2026
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models25 Jan 2026
14 more
- 2025GraphLocator: Graph-guided Causal Reasoning for Issue Localization27 Dec 2025
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025Autonomous Issue Resolver: Towards Zero-Touch Code Maintenance9 Dec 2025
- 2025BackportBench: A Multilingual Benchmark for Automated Backporting of Patches1 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolution20 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025A Taxonomy of Prompt Defects in LLM Systems17 Sep 2025
- 2025SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness Under Resource Constraints11 Sep 2025
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul 2025
- 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-bench30 Jun 2025
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMs16 Jun 2025
- 2025SWE-Factory: Your Automated Factory for Issue Resolution Training Data and Evaluation Benchmarks12 Jun 2025
- 2025SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness Under Resource Constraintscited by 17
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repaircited by 9
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCPcited by 6
- 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-benchcited by 5
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localizationcited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2026Is Agentic AI Ready for Real-World Hardware Engineering? A Deep Dive with Phoenix-benchcited by 1
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescuecited by 1
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repaircited by 1
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Modelcited by 1
12 most cited of 14 All 14 (JSON)
- 2026XAgent: eXecution-guided Agentic AI for Effective Localization and Resolution of GitHub Issues9 Sep 2026
- 2026Engineering Reliable Coding Agents: Evaluating and Operating the System Around the Model14 Aug 2026
- 2026Beyond Textual Repository Exploration: Dual-Modal Structural Reasoning for Agentic Issue Resolution2 Jul 2026
- 2026ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair2 Jul 2026
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescue1 Jul 2026
- 2026Is Agentic AI Ready for Real-World Hardware Engineering? A Deep Dive with Phoenix-bench13 May 2026
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localization4 May 2026
- 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP28 Mar 2026
- 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repair27 Feb 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
12 newest of 14 All 14 (JSON)
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Modelscited by 5
- 2025GraphLocator: Graph-guided Causal Reasoning for Issue Localizationcited by 4
- 2026From Historical Patches to Repair Plans: Outcome-Conditioned Reasoning for Repository-Level Program Repaircited by 2
- 2026From Historical Patches to Repair Plans: Outcome-Conditioned Reasoning for Repository-Level Program Repair30 Jan 2026
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models25 Jan 2026
- 2025GraphLocator: Graph-guided Causal Reasoning for Issue Localization27 Dec 2025
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul 2025
- 2025A Taxonomy of Prompt Defects in LLM Systemscited by 7
- 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7
- 2025SWE-Factory: Your Automated Factory for Issue Resolution Training Data and Evaluation Benchmarkscited by 6
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMscited by 1
- 2025BackportBench: A Multilingual Benchmark for Automated Backporting of Patchescited by 1
- 2025Autonomous Issue Resolver: Towards Zero-Touch Code Maintenancecited by 0
- 2026Context-Augmented Code Generation Using Programming Knowledge Graphscited by 0
- 2026Context-Augmented Code Generation Using Programming Knowledge Graphs28 Jan 2026
- 2025Autonomous Issue Resolver: Towards Zero-Touch Code Maintenance9 Dec 2025
- 2025BackportBench: A Multilingual Benchmark for Automated Backporting of Patches1 Dec 2025
- 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolution20 Nov 2025
- 2025A Taxonomy of Prompt Defects in LLM Systems17 Sep 2025
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMs16 Jun 2025
- 2025SWE-Factory: Your Automated Factory for Issue Resolution Training Data and Evaluation Benchmarks12 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2026Know Before Fix: QA-Driven Repository Knowledge Acquisition for Software Issue Resolution
- 2025HAFixAgent: History-Aware Program Repair Agent
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement
- 2025T3: Multi-level Tree-based Automatic Program Repair with Large Language Models
- 2026A Study on the Impact of Fault localization Granularity for Repository-Scale Code Repair Tasks
- 2023RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair
- 2026SCPatcher: Automated Smart Contract Code Repair via Retrieval-Augmented Generation and Knowledge Graph
- 2025Extracting Conceptual Knowledge to Locate Software Issues