kenryu42/cc-safety-net
1,378 stars · Last commit 2026-06-05
A coding agent CLI hook that acts as a safety net, catching destructive git and filesystem commands before they execute. Supports Codex, Claude Code, OpenCode, Gemini CLI, Copilot CLI, Kimi CLI and Pi.
README preview
# CC Safety Net [](https://github.com/kenryu42/cc-safety-net/actions/workflows/ci.yml) [](https://codecov.io/github/kenryu42/cc-safety-net) [](https://github.com/kenryu42/cc-safety-net) [](#codex-installation) [](#claude-code-installation) [](#github-copilot-cli-installation) [](#gemini-cli-installation) [](#kimi-cli-installation) [](#opencode-installation) [](#pi-installation) [](https://opensource.org/licenses/MIT) <div align="center"> [](./.github/assets/cc-safety-net.png) </div>