arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06593cs.SEcs.AI
收藏

AgentStepper: 软件开发代理的交互式调试

AgentStepper: Interactive Debugging of Software Development Agents

University of Stuttgart(斯图加特大学);CISPA Helmholtz Center for Information Security(CISPA 沃尔夫冈·泡利信息安全中心)

Robert Hutter, Michael Pradel

AI总结:

AgentStepper是一种用于LLM软件工程代理的交互式调试工具,通过结构化对话和逐步执行提升调试效率,减少开发者工作量。

摘要:

基于大语言模型(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑