← Latest papers
💬 NLP

Multi-agent Collaboration with State Management

This paper introduces STORM, a state-oriented management framework that mediates multi-agent interactions to detect and resolve code conflicts at write time, significantly outperforming traditional workspace isolation baselines on coding benchmarks while ensuring consistent views of the shared codebase.

Original authors: Mengyang Liu, Taozhi Chen, Zhenhua Xu, Xue Jiang, Yihong Dong

Published 2026-05-21
📖 5 min read🧠 Deep dive

Original authors: Mengyang Liu, Taozhi Chen, Zhenhua Xu, Xue Jiang, Yihong Dong

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Kitchen Nightmare"

Imagine a busy restaurant kitchen where four chefs (AI agents) are trying to cook a massive, complex meal together. They are all working on the same set of ingredients and the same pots.

In the old way of doing things (called GitWorktree), the kitchen manager gives each chef their own separate, private kitchen.

  • Chef A makes a sauce in Kitchen A.
  • Chef B makes a soup in Kitchen B.
  • They never see what the others are doing.

When they are done, the manager tries to combine everything into one giant pot. Disaster! Chef A added salt to the sauce, but Chef B added salt to the soup, and now the combined dish is too salty. Or worse, Chef A changed the shape of the spoon Chef B needed. They have to spend hours trying to fix the mess after the cooking is done. This is called "post-hoc merge," and it's expensive and often fails.

The New Solution: STORM (The "Smart Kitchen Manager")

The authors propose a new system called STORM. Instead of giving chefs private kitchens, they all work in one shared kitchen, but with a very smart manager standing over their shoulders.

Here is how STORM works, using three simple rules:

1. The "Fresh Ingredient" Rule (Local State Consistency)

In the old system, a chef might grab a bag of flour, start mixing, and then realize another chef swapped the flour for sugar while they weren't looking.

  • STORM's Fix: Before a chef is allowed to pour anything into a pot (write a file), the manager checks: "Did anyone touch the ingredients you are using right now?"
  • If the answer is No, the chef cooks.
  • If the answer is Yes (someone else changed the flour), the manager stops the chef immediately. The chef has to look at the new flour and start their mixing again with the correct ingredients. This prevents the "salty soup" disaster before it happens.

2. The "Note on the Counter" System (Intent Annotations)

Sometimes, two chefs need to work on the same pot. In the old system, they might accidentally overwrite each other's notes.

  • STORM's Fix: Chefs are required to leave a sticky note on the counter (an "intent annotation") that says, "I am adding garlic here because the recipe needs it."
  • When the next chef looks at the pot, they see the note. They know, "Oh, Chef A is handling the garlic, so I won't touch that part," or "I see Chef A added garlic, so I need to adjust my spices." This lets them coordinate without needing to stop and talk constantly.

3. The "Instant Rejection" (Write-Time Conflict Control)

In the old system, chefs would finish their dishes, and then the manager would realize the soup and sauce didn't mix. Fixing it then was a nightmare.

  • STORM's Fix: If a chef tries to pour something that conflicts with what's already in the pot, the manager says "STOP!" instantly. The chef doesn't waste time finishing a dish that will be thrown away. They get the updated pot, fix their plan, and try again immediately.

What Happened When They Tested It?

The researchers tested this on two types of "cooking challenges":

  1. Commit0: A challenge to fix broken code in existing software libraries (like fixing a broken recipe book).
  2. PaperBench: A challenge to recreate complex scientific research papers from scratch (like recreating a Michelin-star meal from a description).

The Results:

  • Better Scores: The STORM team cooked much better meals than the "private kitchen" teams. On the software challenge, they improved their success rate by nearly 19 points. On the research challenge, they also scored higher.
  • Cheaper & Faster: Because they didn't waste time fixing huge messes at the end, they actually used less money and time per successful dish.
  • Scaling Up: If you add more chefs (agents) to the "private kitchen" system, it gets chaotic and fails. But with STORM, adding more chefs actually made the kitchen more efficient because the manager caught conflicts instantly, allowing everyone to work in parallel without crashing the system.

The Bottom Line

The paper argues that managing the state (keeping track of who changed what and when) is more important than isolating the workspace (giving everyone their own room).

Think of it like a group project:

  • Old Way: Everyone works on their own laptop, then tries to merge their files at the last minute. It's a mess.
  • STORM Way: Everyone works on the same document, but the system automatically pauses you if someone else is editing the paragraph you are looking at, forcing you to refresh and re-read before you type.

The result is a team that works faster, makes fewer mistakes, and produces a much better final product.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →