PAUSE:在编码智能体首次源代码编辑前的无搜索引导
PAUSE: Search-Free Steering of Coding Agents Before Their First Source-Code Edit
AI总结:
针对编码智能体现有引导方法成本高、效果有限的问题,提出无搜索引导框架PAUSE,在首次编辑前拦截请求,实验显示其在SWE-bench数据集上提升解决率,成本低于部分同类方法。
摘要:
编码智能体在仓库探索和测试上会投入大量精力,但仍可能生成不成功的补丁。现有在线引导方法会定期审查轨迹,或在监控检测到行为问题时调用顾问;频繁审查成本高昂,且无异常行为不代表智能体处于正确轨道。我们提出PAUSE,一种仅用一次规划干预引导编码智能体的框架。智能体在探索、bug复现和测试后,首次源代码编辑的轨迹进度中位数为60%。PAUSE在该编辑请求执行前拦截它,无需学习监控器、无需在检查点上搜索、无需额外模型调用(无搜索)。独立的Planner读取任务和编辑前的对话记录,编写一个修复计划;同一智能体的Executor保留其上下文和工作空间,按此计划恢复。PAUSE可在运行时在线应用,也可从记录的轨迹前缀离线应用。我们在SWE-bench Verified和SWE-bench Multilingual上评估PAUSE,使用两个Executor和三个智能体 harness。以Qwen3-coder为Executor、GPT-5.6 Sol为Planner时,在线引导在OpenHands的Verified上提升16.8%的解决率,在SWE-agent的Multilingual上提升14.7%的解决率。在SWE-agent中,PAUSE在相似Planner成本下,比规则触发顾问LivePlan在Verified上高3.2%、在Multilingual上高3.7%,且Planner成本约为SICA的定期监督器的11-15%时性能相当。离线时,PAUSE恢复35.4%的符合条件的失败Verified任务,从记录前缀恢复比重启少用33-41%的Executor token。
英文摘要:
Coding agents can invest substantial effort in repository exploration and testing yet still produce unsuccessful patches. Existing online steering methods review trajectories periodically or invoke an advisor when a monitor detects behavioral problems; frequent reviews are costly, and the absence of anomalous behavior does not mean that an agent is on the right track. We propose PAUSE, a framework for steering coding agents with a single planning intervention. Agents reach their first source-code edit at a median of 60% of trajectory progress, after exploration, bug reproduction, and testing. PAUSE intercepts this edit request before it executes, which requires no learned monitor, no search over checkpoints, and no extra model call (search-free). A separate Planner reads the task and the pre-edit transcript and writes one repair plan; the same agent, the Executor, resumes with this plan, keeping its context and workspace. PAUSE applies online, during a live run, and offline, from a recorded trajectory prefix. We evaluate PAUSE on SWE-bench Verified and SWE-bench Multilingual with two Executors and three agent harnesses. With Qwen3-coder as Executor and GPT-5.6 Sol as Planner, online steering improves resolution by 16.8% on Verified in OpenHands and by 14.7% on Multilingual in SWE-agent. In SWE-agent, PAUSE outperforms LivePlan, a rule-triggered advisor, by 3.2% on Verified and 3.7% on Multilingual at similar Planner cost, and is comparable to SICA's periodic overseer at about 11-15% of its Planner cost. Offline, PAUSE recovers 35.4% of eligible failed Verified tasks, and resuming from the recorded prefix uses 33-41% fewer Executor tokens than restarting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。