skip to content
agentmash
get started

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

it reads before it writes

an edit into a file someone else just changed gets one of five levels

the five levels in docs
the 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

  1. active collisionsame file, in your tree, and they’re still around5 of 5
  2. stale readthe same, but they’ve gone, re-read it4 of 5
  3. parallel editsame file, another branch, keep the edit additive3 of 5
  4. recent editin your tree, older than five minutes2 of 5
  5. nearby editsame directory, one sentence for awareness1 of 5

src/routes1 here2 claims

rename every route handleralisher claimed it 4 min agohandlers.ts4 min agosrc/routes
add a login endpointdev3 · spell, just nowsrc/routessrc/routes/login.ts

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
claims in docs
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 docs
the 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 docs
  1. your repository, once

    sign in with github and pick it, anyone who can push to it can

    connect your repository
  2. every developer, once

    gets the app and signs in with github, or runs the login command once in a terminal, either connects their coding agents

  3. 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

get startedread the docslet your agent set it up