kenryu42/cc-safety-net

A pre-execution guard for AI coding agents. It blocks destructive Git and file system commands, plus common attempts to access sensitive files, before a tool call runs. Supports Amp Code, Antigravity CLI, Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI, Grok Build, Hermes Agent, Kimi Code, OpenClaw, OpenCode, and Pi.

1.5kStars on the repository
8Mods indexed here, across every type
yesterdayLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

PreToolUse

01

kenryu42/cc-safety-net

Hook

Runs before the agent uses a tool, executing cc-safety-net.js via node with --coding-cli. From kenryu42/cc-safety-net.

1.5k yesterday A tokens not measured original MIT