Security
Hook
Hooks
What cc-safety-net runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
Install
> /plugin marketplace add kenryu42/claude-code-safety-net > /plugin install cc-safety-net@cc-safety-net-dev
Ships with cc-safety-net. Installing the plugin gets these hooks.
What fires, and when
PreToolUse
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/cc-safety-net.js" hook --coding-cli
Ships withcc-safety-net
A coding agent CLI hook that acts as a safety net, catching destructive git and filesystem commands and secret file access before they execute. Supports Claude Code, Codex, Gemini CLI, Copilot CLI, Antigravity CLI, Kimi Code, OpenCode, Pi, Cursor, and Amp Code.
Get the whole plugin
Stats
1,492
Stars
73
Forks
Active
Maintenance
TypeScript
Language
MIT
License
13h ago
Last commit
7mo ago
Created
Repo: kenryu42/claude-code-safety-net

