TL;DR 45 sec9 min coredeep dive optional Claude gates are hook-based checks in your repo that block Claude Code from finishing work until your rules pass: the destructive command never runs, the edit never lands unformatted, and the session never ends on a dirty working tree. Three hook events cover most gates: PreToolUse runs before… Continue reading