Skip to content
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.

From plugin
cc-safety-net
1.5k1 skill1 hook
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
Read hooks/hooks.json
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