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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ouyang, Siru, Yu, Wenhao, Ma, Kaixin, Xiao, Zilin, Zhang, Zhihan, Jia, Mengzhao, Han, Jiawei, Zhang, Hongming, Yu, Dong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917960537341952
author Ouyang, Siru
Yu, Wenhao
Ma, Kaixin
Xiao, Zilin
Zhang, Zhihan
Jia, Mengzhao
Han, Jiawei
Zhang, Hongming
Yu, Dong
author_facet Ouyang, Siru
Yu, Wenhao
Ma, Kaixin
Xiao, Zilin
Zhang, Zhihan
Jia, Mengzhao
Han, Jiawei
Zhang, Hongming
Yu, Dong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_14684
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph
Ouyang, Siru
Yu, Wenhao
Ma, Kaixin
Xiao, Zilin
Zhang, Zhihan
Jia, Mengzhao
Han, Jiawei
Zhang, Hongming
Yu, Dong
Software Engineering
Artificial Intelligence
Computation and Language
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.
title RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graph
topic Software Engineering
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2410.14684