Keeping Agents Honest: Stalls, Drift and Supervising the Supervisor
A coordinator that says it's waiting, a worktree that isn't where the work is, and the commit habit that came out of losing a day
Post 40 was about agents stepping on each other. This one is about the quieter failures: nothing is wrong in the diff, the reports all say done, and the work still isn’t there.
When the working tree went back in time…
My backlog had a run of nine independent items: column fixes on the castings list, a two-step wizard for creating a talent profile, a login error banner, six tickets on the casting card. I briefed nine background agents, spot-checked each diff as it came in, and moved on. By mid-afternoon eight were done and the tree was full of uncommitted work.
The ninth hit a usage limit and paused. After the reset I told it to carry on. It did, and reported success.
Then I ran git diff. Almost nothing. Every tracked file was back at the morning’s commit, and no transcript showed a reset, a checkout or a clean. The only survivors were new files that had never been tracked and so had nothing to revert to.
I rebuilt two of the eight from diffs that happened to be printed earlier in the conversation. The other six were redone the next day. I still don’t know what the reset did. I know what it cost.
The rule, and it’s a boring one
Commit each agent’s output as soon as you’ve spot-checked it. Not at the end of the batch, not at a natural pause. Each one, as it lands, with a message that says what it is.
And before resuming anything that stopped partway, commit whatever’s in its worktree as WIP. A resume is when the environment comes back in a state you didn’t choose.
This sits awkwardly with another rule of mine, that commits happen when I say so. So during a multi-agent run the main session proposes a commit after every verified step and I say yes. Twice since, that has turned a day’s loss into a one-line git command.
Coordinators that stop without stopping
The coordinator plans, dispatches and chains the others. It’s also the one that fails most convincingly.
The first is the false wait. A coordinator reports “waiting for the security agent” and goes quiet. There is no security agent: it finished, or never started, or the coordinator lost the thread. Nothing is running, so nothing will wake it.
Treat waiting language as a stall, not a status. The message back is always the same: you have no active sub-agents, dispatch again or do it yourself, and carry through to the final report.
The second is drift. A coordinator is given a worktree and dispatches a specialist, which decides the repository root is a more sensible place to work and commits into my main checkout. The coordinator’s report says the work is in the worktree. It isn’t. Now every brief spells out the worktree path, says to start every command from it, and says never to change to the repository root, and coordinators pass that paragraph down verbatim.
The third is plumbing. Sub-agents can’t message each other by name, so a hand-off from specialist to security fails unless the main session relays. So the main session relays, and the briefs say so.
Supervising on a schedule
“Trust but verify” is a slogan until it has a timetable. Mine:
After every agent report: git status --short in the worktree and in main. The worktree should show the agent’s commits and nothing staged. Main should show exactly what it showed before. Anything else is a question.
At every milestone in a coordinator run, the same two commands, plus a read of the coordinator’s last message for the word “waiting”.
Before any resume, a WIP commit. Before any upload to dev, a diff of main against the last tag I trust. At the end of the day, nothing uncommitted anywhere, because tomorrow’s environment is not guaranteed to be this one.
None of this is clever. It’s the discipline a careful colleague would have brought to a shared checkout back in my Trolltech days. What’s new is that the colleagues run nine to a batch, finish in minutes, and are confident whether or not they’re right.
How to make a mess and fix it
A coordinator has been “waiting” for twenty minutes. It’s stalled. Tell it there are no children and to continue.
The worktree is clean and main has commits you didn’t make. A sub-agent drifted. Spell the path out in the brief, and move the commits.
Work gone after a resume. Nothing to fix now. Commit before the next one.
The report and the diff disagree. Believe the diff.
Useful links
Next: letting the agents test the work, with Playwright, build guards and a dev site that has to be looked at.