kenryu42/cc-safety-net

Hook that blocks destructive git/fs commands

What

Pre-execution guard for coding agents: blocks destructive git and file system commands (hard resets, recursive deletes) and reads of sensitive files before the tool call runs. Supports Claude Code, Codex, Amp and others.

How to use

bash
npx -y cc-safety-net@latest install
npx -y cc-safety-net@latest doctor

Reach for it when

Running agents with broad permissions and wanting a safety net.