MarsCode Agent: AI-native Automated Bug Fixing

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Liu, Yizhou, Gao, Pengfei, Wang, Xinchen, Liu, Jie, Shi, Yexuan, Zhang, Zhao, Peng, Chao
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910589013458944
author Liu, Yizhou
Gao, Pengfei
Wang, Xinchen
Liu, Jie
Shi, Yexuan
Zhang, Zhao
Peng, Chao
author_facet Liu, Yizhou
Gao, Pengfei
Wang, Xinchen
Liu, Jie
Shi, Yexuan
Zhang, Zhao
Peng, Chao
contents Recent advances in large language models (LLMs) have shown significant potential to automate various software development tasks, including code completion, test generation, and bug fixing. However, the application of LLMs for automated bug fixing remains challenging due to the complexity and diversity of real-world software systems. In this paper, we introduce MarsCode Agent, a novel framework that leverages LLMs to automatically identify and repair bugs in software code. MarsCode Agent combines the power of LLMs with advanced code analysis techniques to accurately localize faults and generate patches. Our approach follows a systematic process of planning, bug reproduction, fault localization, candidate patch generation, and validation to ensure high-quality bug fixes. We evaluated MarsCode Agent on SWE-bench, a comprehensive benchmark of real-world software projects, and our results show that MarsCode Agent achieves a high success rate in bug fixing compared to most of the existing automated approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2409_00899
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MarsCode Agent: AI-native Automated Bug Fixing
Liu, Yizhou
Gao, Pengfei
Wang, Xinchen
Liu, Jie
Shi, Yexuan
Zhang, Zhao
Peng, Chao
Software Engineering
Artificial Intelligence
Recent advances in large language models (LLMs) have shown significant potential to automate various software development tasks, including code completion, test generation, and bug fixing. However, the application of LLMs for automated bug fixing remains challenging due to the complexity and diversity of real-world software systems. In this paper, we introduce MarsCode Agent, a novel framework that leverages LLMs to automatically identify and repair bugs in software code. MarsCode Agent combines the power of LLMs with advanced code analysis techniques to accurately localize faults and generate patches. Our approach follows a systematic process of planning, bug reproduction, fault localization, candidate patch generation, and validation to ensure high-quality bug fixes. We evaluated MarsCode Agent on SWE-bench, a comprehensive benchmark of real-world software projects, and our results show that MarsCode Agent achieves a high success rate in bug fixing compared to most of the existing automated approaches.
title MarsCode Agent: AI-native Automated Bug Fixing
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2409.00899