claude-code-safety-net
HookA coding agent hook that acts as a safety net, catching destructive git and filesystem commands before they execute. Supports Codex, Claude Code, OpenCode, Gemini CLI and Copilot CLI.
Install
git clone https://github.com/kenryu42/claude-code-safety-netStars
1,576
7d change
▲ 1.03%
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 never blocks anything. 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
2 hooks
codex.jsonhooks.json30-day stars
Trust factors
- Source
- community
- Known advisories
- 0
- Maintenance
- active
- License
- MIT
- Age
- 9 months
safetysecurity#git#destructive-commands#ai-agents#ai-safety#antigravity#claude-code-plugin#cli#codex#codex-cli#coding-agent#cursor#developer-tools#dsh-plugin#guardrails#hermes-agent#hooks#openclaw#opencode#pi-extension