World of SWECraft: Agent Collaboration at Scale via Simulated Software Worlds

Shannon Zejiang Shen, Yapei Chang, Qiyao Liang, Benjamin Newman, Jenny Liang, Rulin Shao, Ziqiao Ma, Junjie Oscar Yin, Yung-Sung Chuang, Weijia Shi, Yejin Choi, Luke Zettlemoyer, Pang Wei Koh, Mohit Iyyer, Tongshuang Wu, David Sontag

TL;DR

The authors introduce Software World, a framework for simulating multi-agent collaboration within realistic ecosystems of interdependent Python packages. By running agents across 10,000+ hours of work, they demonstrate that collaborative agent teams can achieve up to a 31% speedup in downstream software, proving that collaboration is a powerful lever for scaling inference-time compute in complex engineering tasks.

What Problem Does This Paper Address?

Current AI agent benchmarks (like SWE-bench) typically focus on isolated, single-repository tasks with predefined goals. However, real-world software engineering is a long-term, collaborative endeavor. Maintainers must discover their own tasks, coordinate across library boundaries, and manage shared resources.

As we look toward scaling "inference-time compute"—giving models more time and agents to think and work—we lack a robust way to study how these agents should be organized. This paper addresses the gap by creating a "macro-level" simulation environment to study how communication, code ownership, and resource allocation affect the collective performance of agent teams.

Methods

The researchers developed two core components:

  1. SW-Env (The Environment): A pipeline that selects real Python libraries (e.g., requests, pandas) and builds "software worlds" based on their actual dependency structures. Agents are instantiated as LLMs equipped with tools (Bash, editors, profilers) and persistent memory. They interact via Forgejo, a GitHub-like platform, using issues and pull requests.
  2. SW-Eval (The Evaluation): Instead of just checking if a specific bug is fixed, the authors use extrinsic evaluation. They measure the speedup of held-out packages that depend on the libraries the agents are maintaining. This ensures agents are making meaningful, generalizable improvements rather than "hacking" a specific benchmark.
Overview of Software World: Agents maintain a core ecosystem, and performance is measured by the speedup of hidden downstream dependencies.

Agents run in discrete "sessions" (wakes), summarizing their progress into a durable memory branch to maintain continuity without exhausting the LLM's context window.

Datasets

The study utilizes three distinct "Software Worlds":

  • World-1 (Networking): 6 packages centered around requests and urllib3.
  • World-2 (Data Science): 6 packages including numpy and pandas, involving complex C/Cython code.
  • World-3 (Web & Tooling): A larger 26-package ecosystem including pydantic, aiohttp, and pytest.

The evaluation relies on human-authored benchmarks from held-out packages like requests-cache, scikit-image, and fastapi. The authors have released an open dataset of 40,000 agent session traces to support further research.

Key Insights and Ideas

  • Collaboration as a Scaling Law: Performance improvement scales remarkably well with the total tokens (compute) spent by the agents. More "thinking time" and more agents generally lead to better software.
  • The "Idling" Frontier: Surprisingly, some of the most capable frontier models (like gpt-6-astra) exhibited a lack of proactivity. They often concluded that "no work remains" and idled for 90% of their sessions, even when significant optimizations were possible. A "discovery prompt" encouraging exploration helped, but didn't entirely solve this.
  • Discovery through Interdependence: Collaboration helps agents find work they couldn't see alone. For example, a maintainer of a downstream package might notice a bottleneck in an upstream library that the upstream maintainer's own tests never triggered.
  • The Necessity of Ownership: Without clear code ownership, agents suffer from a "curse of coordination," frequently duplicating work or overwriting each other's changes. Assigned responsibilities significantly improved efficiency for the best-performing teams.
Communication patterns between packages. Agents often mirror human interaction frequencies, particularly between core dependencies like requests and urllib3.

Key Results

  • Significant Speedups: The best-performing model, gemini-3.8-flash, achieved a 1.31x speedup in World-3.
  • Collaboration Boost: For top-tier models like Gemini and Claude Opus, enabling collaboration (allowing agents to talk and see each other's code) led to higher final scores compared to isolated runs.
  • Compute Efficiency: gemini-3.8-flash was the most effective, achieving the highest scores while also having the longest median session durations, suggesting it was more "proactive" in seeking out work.
Performance scaling across the three worlds. Gemini-3.8-flash consistently achieves the highest speedups as more tokens are consumed.

Limitations and Future Work

  • Correctness vs. Performance: Agents sometimes introduced regressions (breaking code) to achieve speedups. While the "carry" scoring policy accounts for this, better internal validation by agents is needed.
  • Shallow Review: While agents communicated, they rarely performed the kind of rigorous code review typical of high-quality human open-source projects.
  • Resource Management: Agents struggled with "shared budgets." They were often too polite or cautious, leaving a large portion of their allocated work sessions unused.
  • Future Directions: The authors suggest exploring more complex organizational structures, better reward signals for long-term maintenance, and improving the "proactivity" of frontier models in open-ended environments.

Summary updated

BibTeX
@misc{shen2026world,
  author = {Shannon Zejiang Shen and Yapei Chang and Qiyao Liang and Benjamin Newman and Jenny Liang and Rulin Shao and Ziqiao Ma and Junjie Oscar Yin and Yung-Sung Chuang and Weijia Shi and Yejin Choi and Luke Zettlemoyer and Pang Wei Koh and Mohit Iyyer and Tongshuang Wu and David Sontag},
  title = {{World of SWECraft: Agent Collaboration at Scale via Simulated Software Worlds}},
  year = {2026},
  eprint = {2610.24061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.24061},
}
Figure