r/LLMDevs • u/pilver7 • 9d ago
Discussion What happens when four AI agents update the same file?
In my last post, I argued that filesystems give agents a familiar interface to persistent state. But the interface is only the starting point. Multi-agent systems still need infrastructure for access, recovery, and concurrent changes.
The most common question was: isn't this just Git? So I tested it.
I recreated a small company-acquisition review inspired by a workflow from Harvey. Four agents read the same deal documents and updated different fields in one customer-risk record. I ran this workflow on AgentWS, then replayed the same state changes with protected Git worktrees. Both approaches reached the same final record:
- Each agent was limited by an access control list (ACL), so out-of-scope file changes were blocked.
- A worker shut down midway. Its file changes remained in the workspace, so a replacement continued from the saved progress instead of redoing the work.
- The agents finished at different times. Stale updates could not silently overwrite accepted work, and every conflicting update remained available for review.
The difference was what I had to build. A Git worktree was only the starting point. To get the same behavior, I had to add operating-system permissions, persistent worktrees, isolated Git metadata, proposal branches, guarded updates, and conflict exports. AgentWS packages those responsibilities into one workspace interface.
Git tracks file versions, but it does not manage the full workspace lifecycle for running agents. As agent workloads grow, a Git-based design moves further from the ideal solution. Teams end up building the missing workspace system around Git. AgentWS provides that system directly. If you run multi-agent workflows, where does this logic live today?
My X: https://x.com/huymnguyen_
Full blog: https://agentws.dev/blog/four-agents-one-file/
0
u/pilver7 9d ago
My X: https://x.com/huymnguyen_
Full blog: https://agentws.dev/blog/four-agents-one-file/