Add block-no-verify to prevent agents from bypassing git hooks
Problem
.claude/settings.json currently configures settings but does not include a PreToolUse Bash hook to prevent AI agents from running git commit or git push with the hook-bypass flag. When an agent uses this flag, it silently skips pre-commit, commit-msg, and pre-push hooks.
Solution
Add block-no-verify as a PreToolUse Bash hook. I'm happy to open a PR if the maintainers are interested.
Add
block-no-verifyto prevent agents from bypassing git hooksProblem
.claude/settings.jsoncurrently configures settings but does not include aPreToolUseBash hook to prevent AI agents from runninggit commitorgit pushwith the hook-bypass flag. When an agent uses this flag, it silently skips pre-commit, commit-msg, and pre-push hooks.Solution
Add
block-no-verifyas aPreToolUseBash hook. I'm happy to open a PR if the maintainers are interested.