Automated program repair has emerged as a powerful technique to mitigate the impact of software bugs on system reliability and user experience. This paper introduces RepairAgent, the first work to address the program repair challenge through an autonomous agent based on a large language model (LLM). Unlike existing deep learning-based approaches, which prompt a model with a fixed prompt or in a fixed feedback loop, our work treats the LLM as an agent capable of autonomously planning and executing actions to fix bugs by invoking suitable tools. RepairAgent freely interleaves gathering information about the bug, gathering repair ingredients, and validating fixes, while deciding which tools to invoke based on the gathered information and feedback from previous fix attempts. Key contributions that enable RepairAgent include a set of tools that are useful for program repair, a dynamically updated prompt format that allows the LLM to interact with these tools, and a finite state machine that guides the agent in invoking the tools. Our evaluation on the popular Defects4J dataset demonstrates RepairAgent's effectiveness in autonomously repairing 164 bugs, including 39 bugs not fixed by prior techniques. Interacting with the LLM imposes an average cost of 270,000 tokens per bug, which, under the current pricing of OpenAI's GPT-3.5 model, translates to 14 cents of USD per bug. To the best of our knowledge, this work is the first to present an autonomous, LLM-based agent for program repair, paving the way for future agent-based techniques in software engineering.
Repeton: Structured Bug Repair with ReAct-Guided Patch-and-Test Cycles
Uppsala University Sweden;Hanoi University of Science \& Technology Vietnam;Knovel Engineering Lab Singapore;The University of Alabama at Birmingham USA;Uppsala University;Hanoi University of Science \& Technology;Knovel Engineering Lab;The University of Alabama at Birmingham;Institute for Clarity in Documentation Dublin Ohio USA;Inria Paris-Rocquencourt Rocquencourt France;Rajiv Gandhi University Doimukh Arunachal Pradesh India;Tsinghua University Haidian Qu Beijing Shi China;Palmer Research Laboratories San Antonio Texas USA;Institute for Clarity in Documentation;Inria Paris-Rocquencourt;Rajiv Gandhi University;Tsinghua University;Palmer Research Laboratories
本文提出开源框架 Repeton,用 ReAct 引导的结构化补丁与测试循环替代整体修复生成,在 SWE-bench Lite 上提升补丁有效性与可解释性。
K. N. Toosi University of Technology(肯恩·托基大学);Ferdowsi University of Mashhad(马什哈德费尔多西大学);Simon Fraser University(西蒙菲莎大学);Amirkabir University of Technology(阿米尔卡比尔理工大学)
MMPostTrainBench: Benchmarking Autonomous Research for Multimodal Post-Training
University of Science and Technology of China(中国科学技术大学);Alibaba Token Hub, Alibaba Group(阿里巴巴集团阿里云通义千问团队);University of the Chinese Academy of Sciences(中国科学院大学);Tsinghua University(清华大学);Shanghai Jiao Tong University(上海交通大学)
MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and Repair
Siebel School of Computing and Data Science, University of Illinois Urbana-Champaign, Urbana, IL, USA(伊利诺伊大学厄巴纳-香槟分校Siebel计算与数据科学学院);Amazon, Arlington, VA, USA(亚马逊公司,阿灵顿,弗吉尼亚州,美国);University of Oxford, Oxford, UK(牛津大学,牛津,英国)
LLM Parkinsonism: Executive-Control Failure, Token-Inefficient Persistence, and an Uncertainty-Aware Global Executive Control Architecture for Autonomous Language-Model Agents
Queensland Brain Institute, The University of Queensland(昆士兰大学昆士兰脑研究所);Northwestern Polytechnical University(西北工业大学);The University of British Columbia(不列颠哥伦比亚大学);Neurointelligence Labs(神经智能实验室)
Leveraging Large Language Model for Intelligent Log Processing and Autonomous Debugging in Cloud AI Platforms
Siebel School of Computing and Data Science(塞比尔计算与数据科学学院);College of Computing and Information Science(计算与信息科学学院);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Cornell University(康奈尔大学)
Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents
University of Chinese Academy of Sciences(中国科学院大学);Nanyang Technological University(南洋理工大学);Supply Chain Tech Team Y, JD.com(京东Y供应链技术团队);Peking University(北京大学);Fudan University(复旦大学);Fullive-AI(Fullive人工智能)
ResearchEnvBench: Benchmarking Agents on Environment Synthesis for Research Code Execution
Institute of Trustworthy Embodied AI(可信具身AI研究院);Shanghai Innovation Institution(上海创新机构);Shanghai Key Laboratory of Multimodal Embodied AI(上海多模态具身AI重点实验室);College of Computer Science and Artificial Intelligence(计算机科学与人工智能学院);OpenMOSS;Wuhan University(武汉大学);Nanjing University(南京大学);Jilin University(吉林大学)
Enhancing Automated Program Repair with Solution Design
School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);CCSE, Beihang University(北京航空航天大学计算机学院);School of Software, Beihang University(北京航空航天大学软件学院)
Can Language Models Go Beyond Coding? Assessing the Capability of Language Models to Build Real-World Systems
Nankai University(南开大学);Haihe Laboratory of Information Technology Application Innovation(海河信息技术应用创新实验室);Key Laboratory of Data and Intelligent System Security, Ministry of Education(教育部数据与智能系统安全重点实验室);Tianjin Key Laboratory of Software Experience and Human Computer Interaction(天津市软件体验与人机交互重点实验室);Tsinghua University(清华大学)
LLM-Assisted Dynamic Threat Analysis for Attacker-Reachable Software Weaknesses in Autonomous Vehicles
The University of Alabama(阿拉巴马大学);Department of Civil, Construction & Environmental Engineering, The University of Alabama(阿拉巴马大学土木、建筑与环境工程学院);Department of Computer Science, The University of Alabama(阿拉巴马大学计算机科学学院)
Empowering Autonomous Debugging Agents with Efficient Dynamic Analysis
Southern University of Science and Technology(南方科技大学);Research Institute of Trustworthy Autonomous Systems, Southern University of Science and Technology(南方科技大学可信自主系统研究院);Ant Group(蚂蚁集团)