PostToolUse file soft-claim hook for agent collision detection
Every time an AI session edits a file, it quietly tells the dashboard, so two sessions editing the same file get flagged.
how it works
Claude Code PostToolUse(Edit|Write|...) hook reads the tool payload from stdin, posts a short-lived soft claim; fail-open with a short timeout so the hub being down never blocks work.
Agent hook: A script that runs automatically at a moment in an AI session (before a command, when it stops) to steer or guard it.
The code for this one lives in a private repo. This page explains the idea so you can build your own.