kenryu42/cc-safety-net
1,491 stars · Last commit 2026-08-16
An AI coding agent guardrail — a CLI hook that blocks destructive git and filesystem commands and secret file access before they execute. Supports Amp Code, Antigravity CLI, Claude Code, Codex, Copilot CLI, Cursor, Gemini CLI, Hermes Agent, Kimi Code, OpenClaw, OpenCode, and Pi.
README preview
<h1>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./.github/assets/cc-safety-net-header-logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="./.github/assets/cc-safety-net-header-logo-light.svg">
<img alt="CC Safety Net" src="./.github/assets/cc-safety-net-header-logo-light.svg">
</picture>
</h1>
[](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)
[](https://ccsafetynet.com/docs/installation#amp-code-installation)
[](https://ccsafetynet.com/docs/installation#antigravity-cli-installation)
[](https://ccsafetynet.com/docs/installation#claude-code-installation)
[](https://ccsafetynet.com/docs/installation#codex-installation)
[](https://ccsafetynet.com/docs/installation#cursor-installation)
[](https://ccsafetynet.com/docs/installation#gemini-cli-installation)
[](https://ccsafetynet.com/docs/installation#github-copilot-cli-installation)
[](#hermes-agent-and-openclaw)
[](https://ccsafetynet.com/docs/installation#kimi-code-installation)