Skip to content
Security
Hook

Hooks

What safety-net runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

Install
$ npx -y skills add kenryu42/cc-safety-net --agent claude-code

Ships with safety-net. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs --claude-code.
Read hooks/hooks.json
Ships withsafety-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, auto-invoked
Stats
1,467
Stars
1
Views
69
Forks
Active
Maintenance
TypeScript
Language
MIT
License
1d ago
Last commit
7mo ago
Created

Repo: kenryu42/cc-safety-net