RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph
Siru Ouyang Wenhao Yu Kaixin Ma Zilin Xiao Zhihan Zhang Mengzhao Jia Jiawei Han Hongming Zhang Dong Yu
Large Language Models (LLMs) excel in code generation yet struggle with modern AI software engineering tasks. 
Unlike traditional function-level or file-level coding tasks, AI software engineering requires not only basic coding proficiency but also advanced skills in managing and interacting with code repositories. However, existing methods often overlook the need for repository-level code understanding, which is crucial for accurately grasping the broader context and developing effective solutions. On this basis, we present RepoGraph, a plug-in module that manages a repository-level structure for modern AI software engineering solutions. RepoGraph offers the desired guidance and serves as a repository-wide navigation for AI software engineers. We evaluate RepoGraph on the SWE-bench by plugging it into four different methods of two lines of approaches, where RepoGraph substantially boosts the performance of all systems, leading to a new state-of-the-art among open-source frameworks. Our analyses also demonstrate the extensibility and flexibility of RepoGraph by testing on another repo-level coding benchmark, CrossCodeEval. Our code is available at https://github.com/ozyyshr/RepoGraph.
AI Software Engineering, Large Language Models, Code Intelligence, Graph Structure