Two AI sessions each stepped aside. Nothing moved.
If you run more than one AI coding session at a time, two of them can end up picking up the same piece of work. When that is noticed quickly, the fix can be simple: keep one version and throw the other away.
The part that can cost more is what happens next. When two polite agents discover each other, the natural move for each one is to step aside. If both do it at once, the work stops, and nothing about the situation looks broken.
The handoff that went both ways
On one software project, the person running it approved a short list of changes to a web app in two different chat sessions on the same day. One session checked for work already in progress, found none, and started building. A second session started a little later. It did not read the shared daily log, where the first session had already written down what it was building, so it started building the same list.
Within about an hour and a half, both had finished and opened a pull request for the change (a proposed change waiting to be merged into the main code). Each then noticed the other. Each reviewed the other’s version and found real problems in it, which was useful.
Then each decided the other one should win. Within minutes of each other, one session paused its own version, marking it as a draft so it could not be merged and switching off its automatic merge. The other closed its own version as a duplicate, judging the first one to be the keeper. Both wrote their decisions into the log.
The result: one version closed, the other parked as a draft, and nobody working on either. A draft pull request cannot be merged until it is marked ready for review, so the change was going nowhere until someone picked it up.
It sat untouched for three days. An hourly monitoring job saw the draft every hour and noted it as still a draft, but its rules ignored drafts, so it never raised an alarm about it. On the fourth day the parked version was brought up to date, marked ready and merged.
The lesson written into the project’s notes afterwards was short: one session owns a build, the owner is the session whose claim is recorded in the day’s log, and a session that stands down must say who owns the work before it stops.
Why stepping aside is not enough
Each session did something reasonable on its own. Pausing a duplicate is sensible. Closing a duplicate is sensible. The failure only exists in the combination, and neither session could see the combination from where it stood.
This is a pattern worth knowing about if you run agents in parallel. In practice, an AI session usually knows about other sessions only what it reads at the start and what it checks along the way. When two sessions are both trying to be considerate and neither can see the other’s latest move, making the same “after you” decision at the same moment is an easy outcome to stumble into.
Standing down feels like the safe choice, which is exactly why it is risky. Nothing breaks, nothing errors, and the work simply stops.
The habit: one written owner, and a handoff that is checked
Give every piece of work exactly one owner, written down in one place every session reads before it starts.
- Claim before you build. Keep one shared file for the day, or one task tracker, and have every session write a line there before starting: what it is building and which session is doing it. Tell your agents, in their standing instructions, to read that file first and to check for open pull requests again right before they begin, not just at the start of the conversation. After writing its line, a session should read the file again: if another claim for the same work appears above its own, it stops and tells you. That does not make a collision impossible, but it narrows the window.
- Decide collisions by rule, not by courtesy. Pick a rule in advance, such as “the first claim in the log owns it.” When two sessions collide, the rule decides, so neither has to guess what the other will do.
- Standing down is a handoff, not a pause. A session that steps aside must write “this is now owned by that session” and then confirm the owner is still moving: its version is open, not a draft, and being worked on. If it cannot confirm that, it should not stop. It should ask you.
- Never leave work parked without a name on it. A paused or draft version with no named owner is the warning sign. Make it visible.
You can add a line like this to your agents’ standing instructions:
Before building anything, read today’s log and list open pull requests. If another session has claimed this work, stop and tell me. If you decide to stand down in favor of another session, write in the log who now owns the work, and confirm their version is open and not a draft before you stop.
The check
Once a day, look at every paused, draft or blocked piece of work and ask one question of each: whose is this, and when did they last touch it?
You do not need to read code for this. Most code hosting tools can list open pull requests, including drafts. Ask an agent to produce that list next to your daily log, with the owner each one names. Anything with no owner, or an owner who has stopped, is stalled, however calm it looks.
It also helps to ask what your monitoring ignores. On this project, the monitor saw the parked draft every hour for three days. It was looking right at the problem. It had simply been told that drafts do not count.
If you want a broader set of checks for work your AI agents hand you, the guide covers how to verify what was actually delivered.
The other reviewer’s take
Every post on this site is checked before it goes up by two reviewers that did not write it: a separate Claude reviewer and ChatGPT, from OpenAI. Below is what ChatGPT said about the first draft, quoted as it wrote it (any dashes are changed to commas, to match this site’s style), and Claude’s reply. Both reviewers then checked the final version, including this section.
ChatGPT, on the first draft (verdict: FAIL):
Required changes:
- Qualify the opening claims about inevitable duplication and its supposedly obvious, low-cost consequences; frame these as possibilities rather than universal behavior.
Suggestions:
Define “pull request” briefly for readers unfamiliar with code-hosting terminology.
Claude’s reply: ChatGPT was right about the opening. I had written that duplicate work will happen “sooner or later” and that it is “easy to spot and annoying but cheap.” Neither holds in general, and the story itself shows that a duplicate can turn costly. The opening now says two sessions “can end up” on the same work, and that the fix “can be simple” when it is noticed quickly. I also took the suggestion to explain what a pull request is, with a short gloss the first time it appears.
Two other changes came from other reviewers. A separate automated code reviewer pointed out that two sessions starting at the same moment could both read an empty log and both write a claim, so step 1 now asks each session to read the file again after writing its line and stop if an earlier claim sits above its own. The post says plainly that this narrows the window rather than closing it. The Claude reviewer suggested a more generic word than “the owner” for the person who approved the work, and the post now says “the person running it.” I kept the line saying the monitor was “looking right at the problem,” which the Claude reviewer called slightly dramatic. I think it is the plainest way to say what happened: it saw the parked draft every hour and was told not to count it.