基于大语言模型(LLMs)的软件开发代理在自动化环境设置、问题解决和程序修复等任务中展现出巨大潜力。然而,由于其复杂和动态的性质,理解和调试此类代理仍然具有挑战性。开发者必须推理解释LLM查询、工具调用和代码修改的轨迹,但当前技术在可理解的格式中揭示很少。本文的关键见解是调试软件开发代理与传统软件程序调试有许多相似之处,但需要更高的抽象层次,将层次从低级实现细节提升到高级代理行为。基于这一见解,我们引入了AgentStepper,这是第一个为LLM基于软件工程代理设计的交互式调试器。AgentStepper使开发者能够检查、控制并交互式地操纵代理轨迹。AgentStepper将轨迹表示为LLM、代理程序和工具之间的结构化对话。它支持断点、逐步执行和实时编辑提示和工具调用,同时捕获并显示中间的仓库级代码更改。我们的评估将AgentStepper应用于三种最先进的软件开发代理,ExecutionAgent、SWE-Agent和RepairAgent,表明将该方法整合到现有代理中只需要少量代码更改(39-42行编辑)。此外,我们报告了与十二名参与者进行的用户研究,表明AgentStepper提高了参与者解读轨迹的能力(64% vs. 67%平均表现)和识别代理实现中的错误的能力(17% vs. 60%成功率),同时减少了感知的工作量(例如,与传统工具相比,挫折感从5.4/7.0降低到2.4/7.0).
英文摘要:
Software development agents powered by large language models (LLMs) have shown great promise in automating tasks like environment setup, issue solving, and program repair. Unfortunately, understanding and debugging such agents remain challenging due to their complex and dynamic nature. Developers must reason about trajectories of LLM queries, tool calls, and code modifications, but current techniques reveal little of this intermediate process in a comprehensible format. The key insight of this paper is that debugging software development agents shares many similarities with conventional debugging of software programs, yet requires a higher level of abstraction that raises the level from low-level implementation details to high-level agent actions. Drawing on this insight, we introduce AgentStepper, the first interactive debugger for LLM-based software engineering agents. AgentStepper enables developers to inspect, control, and interactively manipulate agent trajectories. AgentStepper represents trajectories as structured conversations among an LLM, the agent program, and tools. It supports breakpoints, stepwise execution, and live editing of prompts and tool invocations, while capturing and displaying intermediate repository-level code changes. Our evaluation applies AgentStepper to three state-of-the-art software development agents, ExecutionAgent, SWE-Agent, and RepairAgent, showing that integrating the approach into existing agents requires minor code changes (39-42 edited lines). Moreover, we report on a user study with twelve participants, indicating that AgentStepper improves the ability of participants to interpret trajectories (64% vs. 67% mean performance) and identify bugs in the agent's implementation (17% vs. 60% success rate), while reducing perceived workload (e.g., frustration reduced from 5.4/7.0 to 2.4/7.0) compared to conventional tools.
Institute for Theoretical Particle Physics and Cosmology (TTK)(理论粒子物理与宇宙学研究所);RWTH Aachen University(亚琛工业大学);German Aerospace Center (DLR)(德国航空航天中心);Kavli Institute for Cosmology(卡弗里宇宙研究所);University of Cambridge(剑桥大学);Center for Computational Astrophysics(计算天体物理学中心);Flatiron Institute(Flatiron研究所);Department of Astrophysical Sciences(天体物理科学系);Princeton University(普林斯顿大学)
CLAPP 是一个基于 LLM 的交互式 AI 助手,通过多智能体编排、语义搜索和实时 Python 执行,为 CLASS 求解器提供结对编程支持,降低使用门槛并提升人机协作效率。
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(蚂蚁集团)
Do We Need Another Explainable AI Method? Toward Unifying Post-hoc XAI Evaluation Methods into an Interactive and Multi-dimensional Benchmark
IDIADA Fahrzeugtechnik GmbH(伊迪亚达汽车技术有限公司);University of Munich (LMU)(慕尼黑大学);Dr. Ing. h.c. F. Porsche AG(保时捷股份公司);ZBW - Leibniz Centre for Economics(莱布尼茨经济信息中心);Kiel University(基尔大学)
RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agents
University of Chicago(芝加哥大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);VirtueAI;Microsoft Research(微软研究院);UK AI Security Institute(英国人工智能安全研究所);University of Oxford(牛津大学);UC Berkeley(加州大学伯克利分校)
Exploring the Use of ChatGPT by Computer Science Students in Software Development: Applications, Ethical Considerations, and Insights for Engineering Education