Back to all

git-safety-guard

by Dr Alexander Mikhalev

10Feb 6, 2026Visit Source
Blocks destructive git and filesystem commands before execution. Prevents accidental loss of uncommitted work from git checkout --, git reset --hard, rm -rf, and similar destructive operations. Works as a Claude Code PreToolUse hook with fail-open semantics.