Install the safety net into Claude Code
Quando usar: You've been bitten by an agent overwriting uncommitted changes.
Fluxo
-
Wire hooksRun the included setup; settings.json gets PreToolUse entries.✓ Copiado→ Hooks active
-
TestAsk Claude to
git reset --hard; expect block.✓ Copiado→ Block triggered
Resultado: Destructive ops require explicit override.