← All hooks

No-Verify Strip

non-blocking stable

PreToolUse hook that strips --no-verify from git commit commands before they execute. Per Common.md §2.2 (no skipping hooks) and the governance SPEC §10.3. Default behavior: strip silently and log the bypass attempt to the audit pipeline. The bypass can be allowed per-project via allowNoVerifyBypass=true in settings, which removes this hook from the preHooks list.

ID hook/no-verify-strip Version 1.0.0 Author convergent-systems-key
ai hooks run no-verify-strip
Event PreToolUse Language python Trigger tool-nameBash Side effects
  • removes --no-verify flag from git commit argv
  • logs bypass attempt to audit pipeline
linuxmacoswindows Logic is cross-platform. Wiring: use 'ai hooks run no-verify-strip' in settings.json — the ai binary discovers Python on each OS. Modifies git argv in-process — cross-platform. Invoked via 'ai hooks run'.
gitgovernancehooksauditno-verifyclaude-code
Attribution: convergent-systems-key.