Loading video...

Video Failed to Load

Go Home

As soon as you try to run 2 agents on the same data, everything breaks: • Agent 1 reads some data and starts working. • Two seconds later, Agent 2 changes that same data. This is a problem. Agents will waste tokens on stale data, overwrite each other's work,...

29,555 views • 1 month ago •via X (Twitter)

32 Comments

Octavio Simón's profile picture
Octavio Simón1 month ago

I ran into this exact problem. This is exactly why we put an orchestrator in the middle with @trytermsquad. One agent owns the plan, splits the work, and gives each agent a clear responsibility so they don’t step on each other. Then shared memory keeps everyone working from the same context instead of rediscovering everything independently. That’s the flow that worked best for me

PrimeLine's profile picture
PrimeLine1 month ago

two sessions each read my notes file and wrote it back with one more entry, so the second erased the first. locking the file itself and writing into it in place fixed it, since replacing a file leaves the other locks on the old copy. twelve writers at once then lost nothing.

Anees Merchant's profile picture
Anees Merchant1 month ago

I hit a small version of this with three agents sharing one logged-in browser. Running them in parallel meant one agent navigated away from the page another was typing into. I now run them strictly in sequence, which costs time and was still cheaper than debugging overwritten state.

Nabendu Biswas's profile picture
Nabendu Biswas1 month ago

This is really a good concept. Remind me when multiple developers works on the same codebase and we get conflicts and we created ways to solve it

Jack Lipstone's profile picture
Jack Lipstone1 month ago

ended up giving each agent its own write scope, coordination never held.

Armalo AI's profile picture
Armalo AI1 month ago

The fix is boring on purpose: give the data a single writer. Both agents read freely, only one commits, and the other files intents in a queue. That's how you kill the stale-read race.

actuallyopenai's profile picture
actuallyopenai1 month ago

Separate copies only move the conflict to the merge boundary. Coordination needs versioned reads and explicit commit contracts.

Andrew Altshuler's profile picture
Andrew Altshuler1 month ago

🔥

Webster | JARVIS's profile picture
Webster | JARVIS1 month ago

Stale data + overlapping writes is such a common agent headache. Copy-on-write with a clear merge trail feels like the right instinct. Curious how it handles conflicts when two agents touch the same node.

Digital Foundation's profile picture
Digital Foundation1 month ago

agent 1 doesn't notice, it just writes a very confident commit about data from two seconds ago. we ended up putting one loop in charge of who touches what

Milo's profile picture
Milo1 month ago

The ugly version is the conflict at read time, not write time: Agent 1 is already mid-reasoning on a stale snapshot when Agent 2 changes the data. Locks protect the write. Nothing rolls back the thinking.

Todd's profile picture
Todd1 month ago

This times 1000. Running multiple agents on one external brain breaks the system. And I’m just talking about the individual level. Just imagine having 3 friends trying to coordinate with you at one time but they don’t talk to each other.

Ben Liu's profile picture
Ben Liu1 month ago

The useful boundary is a version check at the point of write. If agents can act on a snapshot they read minutes ago, more parallelism just turns stale context into fast corruption.

Alex | AI Systems's profile picture
Alex | AI Systems1 month ago

Branch and merge is the right mental model. The hard part is merge conflicts: when two agents change the same field, who wins? Last write, human review, or a rule per data type? That decides if it's safe for real workflows.

Dusan Odalovic's profile picture
Dusan Odalovic1 month ago

we had agents break stuff in code they never even touched, took ages to find :( how do you split the work between them, by data or by task?

Aljaz Klanecek's profile picture
Aljaz Klanecek1 month ago

branch and merge covers the stale read. the one that hides better is the retry: agent 2 merges, the response gets lost, the orchestrator reruns it, and the same changes land twice. stale data shows up as a wrong answer. a doubled write looks like success.

Akash's profile picture
Akash1 month ago

two agents one dataset is just distributed systems with worse error messages. locks or someone eats tokens forever

Zam's profile picture
Zam1 month ago

The unglamorous product feature is ownership: every shared record needs one clear writer and a visible handoff, or multi-agent just parallelizes the mess.

Sachin Shinde's profile picture
Sachin Shinde1 month ago

State isolation has to be a design requirement before you deploy agents, not a runtime fix. Optimistic locking, read-then-claim patterns, or event sourcing all work. But you have to pick one before you scale. Teams that skip this ship once and rewrite.

Kizuno18's profile picture
Kizuno181 month ago

branch-and-merge just pushes the race condition to merge time. in messaging agents, leasing the conversation scope with a short ttl before calling the model prevents the split in the first place. if the lease is taken, queue the turn or discard the duplicate event

Vatsal | The Vibepreneur's profile picture
Vatsal | The Vibepreneur1 month ago

agent atomic locks

Steven.Sun's profile picture
Steven.Sun1 month ago

Multi-agent systems fail the same way concurrent software always failed: shared mutable state without a merge/coordination layer. Prompting harder does not fix stale reads, overwrite races, or missing audit trails. The durable stack is identity + versioned context + merge semantics — classic distributed systems, now sitting under agent runtimes.

Mian Maaz Ullah Khan's profile picture
Mian Maaz Ullah Khan1 month ago

Multi agent systems run into the same problems as distributed systems. Agents need versioning, conflict resolution, and a way to track who changed what. Sharing context isn't enough.

Vadim Lebedev's profile picture
Vadim Lebedev1 month ago

Git worktrees are solving this problem first coders

DeDi's profile picture
DeDi1 month ago

副本加合并就是把git分支搬进代理编排,我们需要适当的协调

Rudra Satani's profile picture
Rudra Satani1 month ago

two agents on the same data and everything breaks. the multi-agent future needs a traffic controller

Gill's profile picture
Gill1 month ago

AI builders really spent two years reinventing database locks and git.

Grey's profile picture
Grey1 month ago

Git 那套分支加合并的思路搬到 agent 上来了,每个 agent 各开一个分支干活,合并的时候再审一遍,这个方向挺对的

Jr's profile picture
Jr1 month ago

multi agent resurrects classic concurrency. shared mutable context needs locks copies or merge, not better prompts. ship coordination before the swarm.

Maya Renner's profile picture
Maya Renner1 month ago

locking the row is the easy half. the part that bites is the plan. agent reads a row, builds six steps off it, row changes at step two, it finishes all six and reports success. stale data is cheap. a confident wrong completion is the one you pay for.

-baguette-'s profile picture
-baguette-1 month ago

this is useless tooling for made up problems plz dont fall for this bait

Aryaman Upmanyu's profile picture
Aryaman Upmanyu1 month ago

Good angle: multi-agent coordination is becoming a systems problem, not a prompting problem.

Related Videos

Everyone wants agent swarms. Very few people are talking seriously enough about the context layer that makes swarms useful. Even with one agent, context is fragile. Too little context and the agent guesses. Too much context and it wastes tokens, loses focus, or reasons over irrelevant noise. The sweet spot is precise context: the right knowledge, in the right structure, at the right moment. With many agents, that challenge explodes. Each agent produces decisions, assumptions, findings, summaries, risks, and partial conclusions. Unless that knowledge becomes shared, structured, and reusable, every new agent is forced to rediscover what another agent already learned. That is not a swarm. That is a crowd. Shared context graphs are what turn agent activity into agent collaboration, and OriginTrail DKG V10 brings them to life. Was just playing with some final polishing for the V10 release, and it is really powerful to see shared context graphs where multiple agents contribute knowledge into the same connected memory, with attribution visible directly in the graph ui. That matters for three reasons. First, agents can access and build on one shared memory instead of staying trapped in isolated sessions. Second, the graph structure helps them retrieve the exact context they need, instead of stuffing everything into a prompt and hoping the model sorts it out. Third, verifiability of provenance. You can see which agent contributed each piece of knowledge, trace the source, and decide what to trust. Tokenmaxxing starts with fewer tokens, but the deeper story is coordination - agents stop reloading the world and start building on shared, verifiable context. That is the foundation for serious multi-agent work across software engineering, research, finance, operations, project management, and far beyond. The future is not more agents, it is agents working from shared, verifiable context. But the more the merrier, of course.

Jurij Skornik

11,180 views • 5 months ago

Most AI coding setups right now look something like this: one agent in a terminal, another in a browser tab, a chat window somewhere else, and you in the middle copy-pasting diffs like a very tired air traffic controller. JetBrains just launched something aimed right at that mess. It's called JetBrains Air, and it lives inside their IDEs. The short version: Air lets you direct multiple coding agents, run their tasks in parallel, and review their work without ever leaving your IDE. Here's what stood out to me: 👇 1. You pick the agents. Air isn't tied to a single agent or provider. You can use the ones you already like. That matters more than it sounds, because the "best" coding agent changes every few months, and nobody wants to rebuild their whole workflow each time. 2. Parallel work without losing track. You can run several agent sessions at once, even across different projects. Air shows you where your attention is needed, so you're not hopping between tabs to find out which agent is stuck. 3. You stay in control. You can follow what each agent is doing, give it input, inspect the changes, and review the output before accepting anything. Nothing lands in your codebase just because an agent felt confident. 4. The agents get IDE smarts too. This is the part I find most interesting. JetBrains IDEs already have great code navigation, refactoring, testing, and debugging. With Air, both you and your agents work with that context. So the agents aren't guessing blind inside a chat box, and when something needs a human, the real tools are right there. The bigger idea here is that agents become part of your development workflow instead of a separate chat you keep switching to. There's also a nice bonus. For a limited time, JetBrains is offering Junie Lite for free (fair use applies). It's their own coding agent paired with a highly efficient model. It isn't pitched as a frontier-level agent. Think of it as a solid, free baseline for trying out Air and running everyday tasks. Air works in any JetBrains IDE and is in early access right now. If you write code with agents, give it a try: #ad

Mushfiq Sajib

40,469 views • 1 month ago

Your agents can't keep up with real-time data. Especially when it's scattered across dozens of sources. Most teams waste weeks building custom connectors for every database, API, and data warehouse. Then they build ETL pipelines to sync everything. By the time your agent retrieves the data, it's already outdated. Picture this: Your Postgres database updated 5 minutes ago. Your MongoDB collection changed 2 minutes ago. Your agent is still pulling from yesterday's snapshot. This is why most production RAG systems fail. There's a better approach: MindsDB is an open-source AI platform with a federated data engine that lets you query multiple data sources in real-time using SQL - without moving any data. Here's what makes it different: ↳ Your data stays in place. No ETL pipelines or data duplication ↳ Query Postgres, MongoDB, REST APIs, and more using consistent SQL ↳ JOIN across different sources in real-time with a unified interface ↳ Works with both structured and un-structured data And here's the best part: You don't even need to write SQL. Just describe what you want in plain English, and MindsDB converts it to SQL automatically. The system does all the heavy lifting. The breakthrough for AI agents is simple: When data updates at the source, your agent gets fresh results immediately. No sync delays. No stale embeddings. No custom code for each integration. You can literally write a SQL query that joins a Postgres table with a MongoDB collection and gets live results. This is what production AI applications need but rarely get. In this video, I give you a complete walkthrough of what we just discussed and how to actually do it. Make sure you watch this till the end. I've shared the link to MindsDB's GitHub repo in the next tweet!

Akshay 🚀

65,672 views • 1 year ago

New Course: ACP: Agent Communication Protocol Learn to build agents that communicate and collaborate across different frameworks using ACP in this short course built with IBM Research's BeeAI, and taught by Sandi Besen, AI Research Engineer & Ecosystem Lead at IBM, and Nicholas Renotte, Head of AI Developer Advocacy at IBM. Building a multi-agent system with agents built or used by different teams and organizations can become challenging. You may need to write custom integrations each time a team updates their agent design or changes their choice of agentic orchestration framework. The Agent Communication Protocol (ACP) is an open protocol that addresses this challenge by standardizing how agents communicate, using a unified RESTful interface that works across frameworks. In this protocol, you host an agent inside an ACP server, which handles requests from an ACP client and passes them to the appropriate agent. Using a standardized client-server interface allows multiple teams to reuse agents across projects. It also makes it easier to switch between frameworks, replace an agent with a new version, or update a multi-agent system without refactoring the entire system. In this course, you’ll learn to connect agents through ACP. You’ll understand the lifecycle of an ACP Agent and how it compares to other protocols, such as MCP (Model Context Protocol) and A2A (Agent-to-Agent). You’ll build ACP-compliant agents and implement both sequential and hierarchical workflows of multiple agents collaborating using ACP. Through hands-on exercises, you’ll build: - A RAG agent with CrewAI and wrap it inside an ACP server. - An ACP Client to make calls to the ACP server you created. - A sequential workflow that chains an ACP server, created with Smolagents, to the RAG agent. - A hierarchical workflow using a router agent that transforms user queries into tasks, delegated to agents available through ACP servers. - An agent that uses MCP to access tools and ACP to communicate with other agents. You’ll finish up by importing your ACP agents into the BeeAI platform, an open-source registry for discovering and sharing agents. ACP enables collaboration between agents across teams and organizations. By the end of this course, you’ll be able to build ACP agents and workflows that communicate and collaborate regardless of framework. Please sign up here:

Andrew Ng

105,894 views • 1 year ago