Building complex software isn't just about writing code; it’s about coordination. While AI agents have become impressively good at fixing isolated bugs, they often stumble when asked to build entire libraries or reproduce research papers from scratch. The reason? As tasks grow, single agents hit a "complexity wall," and traditional multi-agent systems often descend into chaos, with agents overwriting each other's work or losing track of dependencies.
In their paper "Effective Strategies for Asynchronous Software Engineering Agents," Jiayi Geng and Graham Neubig from CMU argue that the secret to scaling AI developers isn't just "more agents"—it's giving them the same professional tools human developers use.
TL;DR
The authors introduce CAID (Centralized Asynchronous Isolated Delegation), a framework that coordinates multiple AI agents using standard software engineering primitives like dependency graphs, isolated git worktrees, and git merge. By treating agents like professional developers rather than just chat bots, CAID achieves absolute accuracy gains of up to 25.6% over single-agent baselines on complex, long-horizon tasks.
What Problem Does This Paper Address?
Current LLM-based agents struggle with long-horizon tasks—projects that require many interdependent steps over a long period. When a single agent tries to do everything, it often gets stuck in loops or runs out of context.
A natural solution is to use multiple agents working in parallel. However, this introduces the "coordination tax." In unstructured multi-agent systems, agents suffer from:
- Physical Interference: Two agents editing the same file simultaneously and overwriting each other.
- State Misalignment: Agents working on outdated versions of the codebase.
- Dependency Failures: Agents trying to implement a feature before its required components exist.
Methods
The researchers developed CAID, a structured coordination paradigm grounded in three core human software engineering (SWE) primitives:
- Centralized Task Delegation: A "Manager" agent analyzes the repository to build a dependency graph. It ensures that "Engineer" agents are only assigned tasks once their prerequisites are met.
- Isolated Workspaces: Instead of sharing one folder, each Engineer agent works in a
git worktree—a completely isolated, versioned copy of the repository. This prevents "silent interference" where one agent's half-finished code breaks another's environment. - Structured Integration: When an Engineer finishes, they don't just "say" they are done. They must perform executable self-verification (running tests) and submit a
git commit. The Manager then usesgit mergeto integrate the work into the main branch, explicitly handling any conflicts.
Datasets
The authors evaluated CAID on two challenging, long-horizon benchmarks:
- Commit0-Lite: A benchmark requiring agents to implement popular Python libraries (like
tinydborjinja) from scratch, starting only with a skeleton and a test suite. - PaperBench: A high-level task where agents must reproduce the main contributions and experimental results of a published AI research paper.
- ProgramBench: Used in the appendix to test even more complex dependency structures.
Key Insights and Ideas
- Branch-and-Merge is a Coordination Powerhouse: The researchers found that the "branch-and-merge" workflow is the most effective way to manage agentic state transitions. It turns vague natural language coordination into concrete, executable operations.
- Physical Isolation is Non-Negotiable: The paper compares "soft isolation" (telling agents not to touch certain files) with "worktree isolation." Soft isolation often fails as tasks get longer, whereas physical isolation via Git keeps the process stable.
- The Scaling Ceiling: Adding more agents doesn't always help. For
Commit0, performance peaked at 4 engineers. Beyond that, the "coordination tax"—the overhead of managing fine-grained tasks and resolving frequent merge conflicts—actually caused performance to drop. - Single Agents Can't Just "Run Longer": Simply doubling the iteration budget for a single agent rarely improves results and sometimes even degrades them. The bottleneck isn't just time; it's the structural difficulty of managing a massive, growing context.
Key Results
CAID consistently outperformed single-agent baselines across multiple LLMs (Claude 4.5, GLM 4.7, and MiniMax 2.5):
- PaperBench: Achieved a massive 25.6% absolute improvement in pass rate for the MiniMax 2.5 model. Even the top-tier Claude 4.5 saw a 6.1% boost.
- Commit0-Lite: Showed a 14.7% absolute improvement for MiniMax 2.5.
- Efficiency: While CAID increases API costs due to the overhead of the Manager, it significantly reduces the "wall-clock time" required to complete projects by enabling parallel execution.
Limitations and Future Work
- Coordination Overhead: The structured nature of CAID (merging, testing, re-delegating) introduces sequential steps that can limit the speed gains from parallelism.
- Heuristic Delegation: Currently, the Manager uses heuristics to split tasks. The authors suggest that learned delegation policies could further optimize how work is distributed.
- Domain Specificity: While highly effective for code, the authors note that extending this to non-code domains (like collaborative document writing) would require new ways to define "isolation" and "verification" without the benefit of a compiler or test suite.
Summary updated