Multi-agent Collaboration with State Management

Mengyang Liu, Taozhi Chen, Zhenhua Xu, Xue Jiang, Yihong DongNeurIPS 2026

TL;DR

When you put a team of AI coding agents to work in isolated Git branches, they avoid stepping on each other’s toes—until merge time, when silent, incompatible design choices turn integration into a nightmare. STORM tosses out isolated branches and puts all agents into a single shared workspace, using database-style concurrency control to catch and resolve conflicts the exact moment an agent tries to save a file. The result is multi-agent teams that actually get better as you add more engineers, rather than collapsing under merge debt.

What Problem Does This Paper Address?

Single LLM agents hit a wall on massive tasks—like building a software library from scratch—simply because they run out of context or iteration budget. Parallelizing the work across multiple agents is the obvious fix, and today’s standard playbook is workspace isolation: give each agent its own sandbox (like a separate git worktree), let them code in peace, and merge everything at the end.

If you’ve ever survived a brutal Friday-afternoon git merge, you already know the catch. Isolation doesn’t prevent conflicts; it just hides them until the worst possible moment. Textual conflicts (two agents editing the same line) are easy to spot, but semantic conflicts are insidious: Agent A writes a helper expecting two arguments, Agent B changes that signature in its own branch, and both branches pass their local checks—only to shatter when combined. Recovering from this post-hoc requires untangling entrenched, compounding assumptions.

Methods

Instead of isolating agents, the authors propose STORM (STate-ORiented Management), a middleware layer that lets parallel "engineer" agents (coordinated by a single "manager" agent) work safely inside the exact same workspace.

Figure 1: System architecture. The manager analyzes the repository, delegates tasks to parallel engineers, and commits their work. All engineers share one workspace; the STORM manager mediates file operations to detect and resolve conflicts.

The core insight is local state consistency: an agent doesn’t need the entire repository to stay frozen while it thinks—only the specific files it actually read to form its plan. STORM enforces this by adapting classic Optimistic Concurrency Control (a 1981 database technique) to LLM tool calls:

  1. Versioned Snapshots: Every file has a version counter. As an agent reads files, STORM quietly records its "read snapshot" (which files it saw, and at what version).
  2. Write-Time Conflict Control: When an agent tries to write to a file, STORM checks if either the target file (a direct conflict) or any dependency file in the agent's read snapshot (a stale dependency) was updated by a teammate in the meantime. If anything is stale, the write is rejected immediately.
  3. Instant Context Refresh & Reservations: A rejected tool call returns the latest file content, a diff, and a list of stale dependencies right in the same turn, allowing the agent to adjust while its reasoning is still fresh. A brief exclusive lock (up to 30 seconds) prevents livelock if a file is hotly contested.
  4. Intent Annotations: Because file versions can't catch pure logic clashes, agents are prompted to leave structured comments (e.g., # engineer_1: validate numeric inputs before summing) directly in the code, turning the codebase itself into a lightweight, asynchronous communication board.

Datasets

No new benchmarks were introduced; the authors evaluated STORM using three LLMs (Claude Sonnet 4.6, Qwen 3.6 Plus, and DeepSeek V4 Pro) on two existing benchmarks:

  • Commit0-Lite: A library-generation-from-scratch benchmark across 16 Python repositories, graded via pytest pass rates.
  • PaperBench (Code-Dev subset): Tasks requiring agents to replicate AI research codebases from papers, graded against a rubric tree by an LLM judge (with cross-family GPT-5.5 re-judging to control for bias).

Key Insights and Ideas

  • Catching conflicts early beats preventing interference: STORM actually rejects more write attempts than a Git-worktree setup, yet produces much better final repositories. Turning catastrophic, late-stage merge failures into cheap, immediate course corrections keeps agents grounded in reality.
  • More agents finally means better performance: Prior multi-agent systems famously degrade as you add agents because cross-file coupling explodes combinatorially at merge time. With STORM, scaling from 2 to 8 engineers steadily improves test pass rates while keeping wall-clock time flat.
  • Code comments are underrated coordination primitives: Ablating the structured # engineer_X intent comments caused weighted pass rates on Commit0-Lite to drop by 16.9 percentage points—proving that seeing why a teammate wrote a block of code prevents semantic collisions.
  • Shared workspaces shine under high coupling: On tightly coupled repositories where GitWorktree collapses to a 36.3% pass rate, STORM holds steady at 70.9%.

Key Results

  • Outperforming Isolation: Averaged across all three LLMs, STORM beats the GitWorktree baseline by +26.7 weighted and +17.0 macro pass-rate points on Commit0-Lite, and by +5.2 points on PaperBench, with comparable or better cost efficiency.
  • Scaling Up: Scaling Claude Sonnet 4.6 from 2 to 8 max engineers on Commit0-Lite boosts test-based pass rates from 38.2% to 69.7% (and repo-based scores from 71.3% to 87.1%), while wall-clock time stays roughly constant at ~48–50 minutes per repo.
Scaling engineers from 1 to 8
  • Beating Other Shared-State Baselines: Under the same 4-engineer Sonnet harness, STORM (46.2% weighted score) handily outperforms prompt-only soft isolation (24.0%), shared-memory coordination (13.5%), and character-level CRDT auto-merging (13.1%).

Limitations and Future Work

  • Over-decomposition on tiny tasks: On small, self-contained repositories, a single agent sometimes beats standalone STORM because the manager unnecessarily chops up simple problems. Running a cascade (single-agent first, STORM on remaining failures) yields the best overall scores.
  • Bottlenecked by the Manager: At 8 engineers, overlapping file assignments in the first round jump to 35.1%, correlating strongly with rejected reviews ($r = 0.78$). Scaling further is currently limited by the manager agent’s ability to cleanly partition tasks, rather than by STORM itself.
  • Complementary Mechanisms: While the main text defers detailed residual failure analysis to an appendix not included in pages 1–10, the authors note that mechanisms like shared memory, CRDTs, and worktrees could potentially be combined with STORM's validation layer in future systems.

Summary updated

Abstract

Recent advances in multi-agent systems have shown great potential for solving complex tasks. However, when multiple agents edit a shared codebase concurrently, their changes can silently conflict and inconsistent views lead to integration failures. Existing multi-agent systems address this through workspace isolation (e.g., one git worktree per agent), but this defers conflict resolution to a post-hoc merge step where recovery is expensive. In this paper, we propose STORM, i.e., STate-ORiented Management for multi-agent collaboration. Specifically, STORM manages agent states by mediating their interactions with the shared workspace, ensuring that each agent operates on a consistent view of the codebase and that conflicting edits are detected and resolved at write time. We evaluate STORM on Commit0 and PaperBench with three LLMs. Averaged over the three models, STORM outperforms the git-worktree-based multi-agent baseline by +26.7 weighted and +17.0 macro pass-rate points on Commit0-Lite and by +5.2 points on PaperBench, while achieving comparable or better cost efficiency. These results suggest that explicit state management is a more effective foundation for multi-agent collaboration than workspace isolation. STORM can also be plugged into existing multi-agent systems. Our code is available at \url{https://github.com/RISE-X-Lab/STORM}.
BibTeX
@inproceedings{liu2026multi,
  author = {Mengyang Liu and Taozhi Chen and Zhenhua Xu and Xue Jiang and Yihong Dong},
  title = {{Multi-agent Collaboration with State Management}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cneNwmDOF3},
}
Figure