atlas

Research map / Large language models / Agents, code and math

RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph

ICLR 2025 · Large language models › Agents, code and math · approach: Software engineering agents · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RepoGraph, a line-level repository code graph whose ego-graph retrieval plugs into procedural (RAG, Agentless) and agent (AutoCodeRover, SWE-agent) frameworks to boost SWE-bench-Lite resolve rates and transfers to CrossCodeEval.

Problem

LLMs struggle with repository-level software engineering tasks such as resolving GitHub issues, since file-level retrieval and flat repository views miss cross-file dependencies and global structure.

Approach

Build a graph whose nodes are code lines (def/ref) and whose edges capture invoke and contain dependencies across the repository, then retrieve k-hop ego-graphs around a search term and feed them to existing procedural or agent pipelines as a plug-in.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add RepoGraph to RAGRAG with GPT-4 · SWE-bench-Lite testresolve rate: 2.67 -> 5.33Helped
Add RepoGraph to AgentlessAgentless with GPT-4o · SWE-bench-Lite testresolve rate: 27.33 -> 29.67Helped
Add RepoGraph to AutoCodeRoverAutoCodeRover with GPT-4 · SWE-bench-Lite testresolve rate: 19.00 -> 21.33Helped
Add RepoGraph to SWE-agentSWE-agent with GPT-4o · SWE-bench-Lite testresolve rate: 18.33 -> 20.33Helped
Add RepoGraphDeepseek-Coder on CrossCodeEval Python · CrossCodeEval PythonCode Match EM: 10.2 -> 19.7Helped
Add RepoGraphDeepseek-Coder on CrossCodeEval Python · CrossCodeEval PythonIdentifier Match F1: 49.1 -> 58.9Helped
Add RepoGraphGPT-4o on CrossCodeEval Python · CrossCodeEval PythonCode Match EM: 10.5 -> 28.7Helped
Add RepoGraphGPT-4o on CrossCodeEval Python · CrossCodeEval PythonIdentifier Match F1: 47.9 -> 61.3Helped
Summarize the 1-hop ego-graph instead of flattening it (ablation)Agentless + RepoGraph · SWE-bench-Lite testresolve rate: 29.67 -> 28.33Hurt
Use 2-hop retrieval and flatten the ego-graph (ablation)Agentless + RepoGraph · SWE-bench-Lite testresolve rate: 29.67 -> 26.00Hurt
Use 2-hop retrieval and summarize the ego-graph (ablation)Agentless + RepoGraph · SWE-bench-Lite testresolve rate: 29.67 -> 28.67Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SWE-bench-Lite CrossCodeEval

Benchmarks: SWE-bench-Lite CrossCodeEval

Metrics: resolve rate patch application rate average cost average tokens exact match edit similarity identifier match F1 localization accuracy

Baselines: RAG Agentless AutoCodeRover SWE-agent

Builds on: Agentless SWE-agent AutoCodeRover RAG tree-sitter

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy