claude-code-safety-net
HookA coding agent hook that acts as a safety net, catching destructive git and filesystem commands before they execute. Supports Codex, Claude Code, OpenCode, Gemini CLI and Copilot CLI.
Install
git clone https://github.com/kenryu42/claude-code-safety-netStars
1,468
7d change
▲ 0.41%
Downloads / week
—
Last active
today
About
A PreToolUse hook that intercepts and blocks destructive git and filesystem commands before AI coding agents run them. CC Safety Net parses command semantics — so flag reordering, shell wrappers, and interpreter one-liners can't bypass it.
[!NOTE] Full documentation → — installation, configuration, reference, guides, and the security model live on the docs site.
What's inside
1 hook
hooks.json30-day stars
Trust factors
- Source
- community
- Known advisories
- 0
- Maintenance
- active
- License
- MIT
- Age
- 7 months
safetysecurity#git#destructive-commands#claude-code-plugin#codex#kimi-code#pi-extension