rm -rf ~/, git reset --hard, or git checkout -- . wiping out work you can’t get back. Soft rules written in CLAUDE.md or AGENTS.md help set expectations, but they rely on the model following instructions — and models don’t always follow instructions. CC Safety Net is a hard technical constraint: a PreToolUse hook that intercepts every shell command your AI agent attempts to run and blocks destructive operations before they execute, using semantic command analysis rather than fragile pattern matching. It works across Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Kimi Code, OpenCode, and Pi, so your code, history, and filesystem stay intact no matter which agent you’re working with.
Introduction
Learn what CC Safety Net protects against
Installation
Install for Claude Code, Codex, Gemini CLI, Copilot CLI, Kimi Code, OpenCode, and Pi
Configuration
Customize protection with modes and custom rules
CLI Reference
Diagnose issues and trace command analysis
CC Safety Net works out of the box with no configuration required. Advanced modes and custom rules are available when you need them. Ready to set it up? Start with the Installation guide.