用分步协作机制提升AI编程代理的长任务完成效率
Effective Strategies for Asynchronous Software Engineering Agents
- 中心化调度+异步独立执行,避免多代理冲突
- 在论文复现和库开发任务上准确率分别提升25.6%和14.7%
- 借鉴Git工作流,适合复杂代码协作项目
AI代理在独立软件工程任务(如GitHub问题修复)中表现日益出色,但涉及多个依赖子任务的长周期任务仍面临准确性和时效性挑战。为解决此问题,我们提出一种基于软件工程核心协作机制的异步多代理协调范式——中心化异步隔离委派(CAID)。该方法通过中心管理器构建依赖感知的任务计划,各代理在隔离工作区中并发执行子任务,并通过可执行测试验证的结构化整合合并进展。实证评估显示,CAID在论文复现任务(PaperBench)上相较单代理基线准确率提升25.6%,在Python库开发任务(Commit0)上提升14.7%。系统分析表明,分支与合并是多代理协作的核心机制,而git worktree、git commit、git merge等工具使其实现可靠且可执行。
原文摘要 · Abstract (English)
AI agents have become increasingly capable at isolated software engineering (SWE) tasks such as resolving issues on Github. Yet long-horizon tasks involving multiple interdependent subtasks still pose challenges both with respect to accuracy, and with respect to timely completion. A natural approach to solving these long-horizon tasks in a timely manner is asynchronous multi-agent collaboration, where multiple agents work on different parts of the task at the same time. But effective application of multi-agent systems has proven surprisingly difficult: concurrent edits by multiple agents interfere with each other, dependencies are difficult to synchronize, and combining partial progress into a coherent whole is challenging. On the other hand, human developers have long relied on mature collaboration infrastructure to manage these challenges in large software projects. Inspired by these collaboration primitives, we introduce Centralized Asynchronous Isolated Delegation (CAID), a structured multi-agent coordination paradigm grounded in three core SWE primitives: centralized task delegation, asynchronous execution, and isolated workspaces. CAID constructs dependency-aware task plans through a central manager, executes subtasks concurrently in isolated workspaces, and consolidates progress via structured integration with executable test-based verification. In empirical evaluation, we find that CAID improves accuracy over single-agent baselines by 25.6% absolute on paper reproduction tasks (PaperBench) and 14.7% on Python library development tasks (Commit0). Through systematic analysis, we find that branch-and-merge is a central coordination mechanism for multi-agent collaboration, and that SWE primitives such as git worktree, git commit, and git merge enable it to be realized in a reliable and executable manner.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。