see who’s in which file before your agent writes
a made-up team of four in one repo, where each agent is and what it’s told before it writes
the roomteam repo4 agents live
src/models2 here
dev1 · index
dev2 · pipe+12 −3 · touching deletedAtsrc/apinobody
src/routes1 here · claimed
dev3 · spellweb/src/pages1 here
dev4 · flex+30 −4 · AccountPageit reads before it writes
an edit into a file someone else just changed gets one of five levels
the five levels in docsthe string it reads
[AgentMash: ACTIVE COLLISION] alice's agent is working in src/models/user.ts — last write 2 min ago on your branch (main), while working on 'add soft deletes to the user model' (+12/-3 lines, touching deletedAt). Their write is already in your working tree, so whatever you read from this file earlier is out of date. Re-read src/models/user.ts now and rebuild this edit against what is actually there: a stale old_string either fails to match or quietly reverts their change. Leave deletedAt named and shaped as alice left it — that is what they just changed. If your task genuinely needs those same lines, change them and say so in your reply, so the overlap is visible.
what the agent is told
active collisionsame file, in your tree, and they’re still around
stale readthe same, but they’ve gone, re-read it
parallel editsame file, another branch, keep the edit additive
recent editin your tree, older than five minutes
nearby editsame directory, one sentence for awareness
src/routes1 here2 claims
overlapalisher already has src/routes, your claim stands, but split the work before you write
dibs, with an expiry
before a bigger task an agent claims the paths it’s taking, and learns if someone already has part of them
a flag, paths an agent has claimed for its task
the ring, time left before the claim expires
the string it reads
Claimed src/routes/login.ts, src/routes for "add a login endpoint" as dana@example.com (id claim_x9…, 120 min). OVERLAP — someone else has already claimed part of this: - alisher@example.com has src/routes for "rename every route handler" (claimed 4 min ago) Your claim stands, but split the work before you write anything: take the files and symbols they have not claimed, or build on top of what they land rather than changing it. …
collided anyway? you’re told before it lands
when a session ends having changed a file a teammate also changed, you’re told once whose change it meets
reconciliation in docsthe string it reads
[AgentMash: OVERLAP] A file this session changed was also changed by alice@example.com, so a person decides how the two changes come together: nothing was stopped, merged or committed for either side. • src/models/user.ts — also changed by alice@example.com. alice@example.com: last write 9 min ago on branch main — you are on feat/login while working on 'soft deletes' (+12/-3 lines, touching User, deletedAt). You both touched User — that is where the two changes are most likely to meet. Your side: 'add a login endpoint' (+8/-1 lines). Look at both changes with alice@example.com before either one lands.
mainsoft deletes+12 −3
feat/loginadd a login endpoint+8 −1
src/models/user.tsyou both touched User
a person decides how the two come together
nothing stopped
nothing merged
nothing pushed
overlapdev1 also changed src/models/user.ts, nothing was stopped, merged or committed, look at both changes together before either lands
connect it once each developer signs in once
nothing is committed to your repository, every developer’s agents pick it up from their next prompt
setup in docsyour repository, once
sign in with github and pick it, anyone who can push to it can
connect your repositoryevery developer, once
gets the app and signs in with github, or runs the login command once in a terminal, either connects their coding agents
then, the live room
restart the agent, prompts and edits show up live, and before an edit to a teammate’s file it is told who, what and why