cc-safety-net
HookCLI hook that intercepts destructive git and filesystem commands before execution, supporting Claude Code, Codex, and other coding agents.
Install
git clone https://github.com/kenryu42/cc-safety-netStars
2,120
7d change
▲ 1.44%
Downloads / week
—
Last active
today
About
CC Safety Net (Coding CLI Safety Net) blocks destructive commands and access to secrets such as SSH keys and `.env` files before the tool call runs. It parses what the command does. Wrapping the command or reordering flags does not hide it. A broken config file falls back to safe defaults instead of stopping your agent. It is not a sandbox: it does not contain processes, set filesystem permissions, or watch network egress.
[!NOTE] Full documentation → covers installation, configuration, reference material, guides, and the security model. This README is the short version.
What's inside
3 hooks
codex.jsoncursor.jsonhooks.json30-day stars
Trust factors
- Source
- community
- Known advisories
- 0
- Maintenance
- active
- License
- MIT
- Age
- 11 months
safetyversion-control#safety-net#destructive-commands#git#filesystem#hooks#multi-agent#ai-agents#ai-safety#antigravity#claude-code-plugin#codex#codex-cli#coding-agent#cursor#developer-tools#dsh#dsh-plugin#guardrails#hermes-agent#openclaw#opencode#pi-extension#security