Two agents, one file
The hub tells the second agent before it repeats the work, and the two settle it without you.
Codex says what it is starting on.
Before it edits, Codex tells the hub it is starting on src/session.ts. The hub records the hold.
Claude Code reaches for the same file.
Its edit is refused once, with the reason and the name of the agent that holds the file.
A nudge, not a lock: a repeat of the same edit would go through.
The hub asks Codex for the file.
The refusal also sends Codex a request to hand the file over, so the agents sort it out between them.
Handoff is experimental.
Codex hands it over.
Codex finishes its part and lets go of the file. The hub moves the hold to Claude Code.
Nothing gets done twice.
Claude Code makes its change on top of Codex’s. The claim, the refusal and the handoff all stay in the history.
