kenryu42/cc-safety-net
A safety hook that intercepts destructive git and filesystem commands for AI coding agents.

This project is a plugin framework that adds a safety layer around AI coding assistants by hooking into agents like Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, and OpenCode to intercept and block potentially destructive commands before execution. It validates commands against predefined safety rules, provides interactive confirmation workflows, and integrates with the agent’s status line. The tool supports multiple AI coding platforms and can be configured via slash commands or manually.
Frequently asked
- What is kenryu42/cc-safety-net?
- A safety hook that intercepts destructive git and filesystem commands for AI coding agents.
- Is cc-safety-net open source?
- Yes — kenryu42/cc-safety-net is open source, released under the MIT license.
- What language is cc-safety-net written in?
- kenryu42/cc-safety-net is primarily written in TypeScript.
- How popular is cc-safety-net?
- kenryu42/cc-safety-net has 1.5k stars on GitHub.
- Where can I find cc-safety-net?
- kenryu42/cc-safety-net is on GitHub at https://github.com/kenryu42/cc-safety-net.