TL;DR
Current AI coding agents struggle significantly when collaborating, performing worse than when working alone – a phenomenon termed the "curse of coordination." This paper introduces CooperBench, a new benchmark for evaluating agent cooperation, revealing that agents fail due to poor communication, broken commitments, and flawed expectations, rather than a lack of coding skill.
What Problem Does This Paper Address?
As AI agents become more capable in complex tasks like software development, their ability to collaborate effectively is crucial. However, existing research often focuses on individual agent competence or relies on heavy scaffolding to manage multi-agent interactions. This paper addresses the gap in understanding and evaluating intrinsic cooperative capabilities of AI agents, particularly in scenarios requiring nuanced coordination and communication under partial observability, mirroring real-world software development challenges. The authors hypothesize that current agents, despite strong individual performance, lack the "social intelligence" needed for effective teamwork.
Methods
The core of this work is the introduction of CooperBench, a novel benchmark designed to measure agent cooperation. CooperBench consists of 652 collaborative coding tasks, each involving two agents tasked with implementing features that have potential conflicts. These tasks are derived from real open-source repositories and include expert-written tests. The agents operate in isolated environments and communicate in real-time to coordinate their efforts. The evaluation pipeline assesses both the compatibility of the merged code and its correctness against unit tests. The authors also employ an LLM-as-judge approach to analyze communication failures and categorize coordination issues.
Datasets
The primary contribution is the CooperBench benchmark, comprising 652 collaborative coding tasks. These tasks are constructed from 12 popular open-source libraries across Python, TypeScript, Go, and Rust. Each task involves two agents independently implementing features that may conflict, requiring them to coordinate to avoid merge conflicts and ensure functional code. The benchmark is designed to isolate coordination challenges from raw implementation difficulty.
Key Insights and Ideas
- The "Curse of Coordination": A surprising and consistent finding is that agents perform significantly worse when collaborating (Coop setting) compared to working individually on the combined workload (Solo setting). This "coordination gap" is substantial, with leading models showing a 50% drop in success.
- Coordination vs. Coding Skill: The research highlights that strong individual coding ability does not translate to good coordination. Some weaker models exhibit better coordination retention than more capable ones.
- Communication is Necessary, But Not Sufficient: While agents communicate extensively, this communication doesn't necessarily lead to better cooperation success. It does, however, reduce merge conflicts.
- Three Key Failure Modes: Agents fail due to:
- Expectation Failures: Mismodeling partner's code state or plans.
- Commitment Failures: Deviating from stated commitments or making unverifiable claims.
- Communication Failures: Jammed channels with vague, ill-timed, or inaccurate messages.
- Spatial vs. Semantic Coordination: Agents are better at "spatial" coordination (agreeing on where to edit) than "semantic" coordination (agreeing on what values or behaviors to implement).
- Emergent Coordination Behaviors: In successful runs, agents exhibit behaviors like role division, resource division, and negotiation, suggesting that the underlying capabilities are present but unreliable.
Key Results
- "Curse of Coordination": On average, agents achieve only 25% success with two-agent cooperation on CooperBench, which is approximately 50% lower than a single agent performing both tasks.
- Coordination Gap: The gap between Solo and Coop performance is largest on tasks with middle-level technical difficulty.
- Communication Impact: Communication significantly reduces merge conflicts but does not improve overall cooperation success. Agents spend up to 20% of their action budget on communication.
- Retention: On average, only 59% of Solo capability is preserved under cooperation (pooled retention). MiniMax shows the worst retention (0.46), while Qwen achieves the highest (0.68).
- Failure Symptom Frequencies: Work overlap (33.2%), divergent architecture (29.7%), and repetition (14.7%) are the most common coordination failure symptoms.
Limitations and Future Work
- Limited Scope of Communication: The current communication tool is basic. Future work could explore expanding communication bandwidth or reducing noise.
- Agent Frameworks: The paper focuses on intrinsic model capabilities, not agent frameworks. Future research could compare different frameworks or training methods.
- Trust Paradox: A key hypothesis for expectation failures is that models are trained to be cautious and verify, which conflicts with the need to trust partner claims in isolated workspaces. This mismatch needs further investigation.
- Scaling: The paper briefly explores scaling beyond two agents, observing a monotonic decline in success, suggesting this is a fruitful area for future research.
- Social Intelligence Shift: The authors call for a research shift from individual agent capability to "social intelligence," emphasizing understanding others, effective communication, and coordination. CooperBench is presented as a tool to drive this progress.
Summary updated