Reference
This page documents a Claude Code hook that runs automatically during sessions.
auto-generated from kli/hooks/file-conflict.lisp

File Conflict

PostToolUse hook handler for swarm file conflict detection

Event: PostToolUse
Matches: Edit|Write

Warns Claude after editing a file recently touched by another session. Delegates to the task-mcp daemon's /file-conflict endpoint which enforces the Session Attribution Invariant (PID liveness + session-aware scanning).

Handler

file-conflict-handler — PostToolUse handler: warn about recent file activity after Edit/Write. Delegates to the task-mcp daemon for PID-checked, session-aware conflict detection.