mom
Run several AI coding agents in one checkout without them destroying each other's work.
mom is a Claude Code plugin (plus a small CLI for Codex and other tools). Its hooks see every edit, file read and shell command your agents make, and step in when one agent is about to wipe out another's work. It has no LLM, no daemon, no dependencies, and it writes nothing into your repo. An agent that isn't colliding with anyone never hears from it.

Install
/plugin marketplace add josephrich98/mom
/plugin install mom@mom
That's it. Starting with your next session, mom covers every git checkout you open. Its state lives in ~/.mom/. For Codex, Cursor or humans, install the CLI with npm i -g mom-cli (see Works with).
What it does
Agents sharing one checkout lose work in four ways. mom has one fix for each:
| How work gets lost | What mom does |
|---|
Whole-file overwrite. Agent A is partway through editing store.js. Agent B writes its own version of the whole file (Write, cat > f, cp, a script that writes without reading), and A's changes are gone. | Every file an agent edits is claimed for it. Whole-file writes to a file another agent holds are blocked. Small in-place edits (Edit, sed -i) still go through, and both agents get a one-line heads-up. |
| Stale overwrite. B read a file ten minutes ago, A changed it since, and B writes its old copy back. | A shell overwrite of a file someone else changed since this agent last read it is blocked until the agent reads the file again. |
| Stale paste. B's script reads the file and rewrites one paragraph using text B saw earlier, which silently puts back words A had changed in that paragraph. It looks like an in-place edit, so nothing else catches it. | mom keeps a copy of each file as each agent last read it. After a write, it runs a word-level three-way merge. If the write undid someone else's change, mom puts their change back, keeps the writer's own change, and tells the writer. |
Tree-wide git. Told to commit, an agent runs git add -A and commits everyone's half-finished work. Or it runs git stash, git checkout . or git reset, which wipe out the other agents' changes. | While another agent has files in play, these are blocked, and mom prints the exact git add <your files> to run instead. |
That's the core. Two smaller things fill in around it: when an agent finishes with a file that others have touched, they're told to re-read it, and mom note "<what changed>" lets an agent tell the others that it changed an interface they use.
Here is what an agent sees:
mom: heads-up — src/store.js is also being edited right now by [03f0]. Keep this edit small and local,
don't reformat or rewrite the file, and re-Read it before further edits.
mom: BLOCKED — src/store.js is currently held by agent [03f0] (claimed 2m ago, 3 edits so far).
Rewriting the whole file would discard their edits; use the Edit tool for a surgical change instead.
mom: BLOCKED — 1 other agent is working in this tree; stage only your own files.
Your files this session: README.md src/format.js. Do: `git add README.md src/format.js && git commit -m "..."`
What it doesn't do. It's a safety net, not a security boundary: mom recognizes shell writes by pattern, so an unusual script can get past it. It can't catch semantic conflicts either, such as an agent adding new code that uses a name another agent just renamed. And it doesn't make agents faster.
Results
Headless agents worked in one shared git checkout on overlapping tasks, with no worktrees. An acceptance checker scored the final tree. Blue bars are runs without mom and orange bars are runs with mom. Bars show means and dots show individual runs.
