Agents and checks · 19 of 20

Parallel agents get one worktree each and one owner per file

Hit in our code
Check it
git worktree listgit status --short | wc -l     # in a shared checkout, before any agent starts
Free, no call

Get every Fix AI Slop Code episode

The code it wrote, the code it should have written and a check, for every episode

Free, straight to your inbox. No call, no pitch

What is going on

Two agents editing the same checkout write over each other, and neither reports an error because each one's write succeeded. Cost scales with the number of agents, not with the amount of work, when they trample and redo.

Where it bit

One night, 13 agents, $824. The collisions were the expensive part, not the work. The build-order page on this site was built in its own git worktree because the main checkout had another session's uncommitted edits on the same two files; the merge then cost one deliberate conflict resolution instead of a silent overwrite. In the video pipeline: CapCut overwrote a draft that was written while it was running, so the rule became check the process, then write.

The practice

One worktree per agent. One owner per file, named in the brief. Shared files go through one writer. Any process that also writes the file is checked before you do, with pgrep -x, because ps | grep -q inverts under pipefail and reports the opposite of the truth.

Free, no call

Get this check as a script you can run tonight

Free, straight to your inbox. No call, no pitch

What to do with this

If this check came back with more than you expected, that is worth a conversation

Book a free 30-minute call