
Cc Safety Net
Operate CC Safety Net: explain why a command was blocked, triage false positives...
Install
npx skills add kenryu42/cc-safety-net --skill cc-safety-net -g -a claude-code -y- Repository
- kenryu42/cc-safety-net1.9k
- Category
- AI and agents
- Updated
- 3d ago
- License
- MIT
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
Operate CC Safety Net: explain why a command was blocked, triage false positives, configure custom rulebooks, manage agent CLI integrations, and diagnose protection.
CC Safety Net
CC Safety Net hooks into coding agent CLIs (Claude Code, Codex, Cursor, Gemini CLI, and others)
and blocks destructive commands and secret access before they run. The cc-safety-net CLI
inspects and controls that protection. Run it as npx -y cc-safety-net.
Learn the current CLI
The installed CLI is the authority for command syntax. Do not guess flags.
npx -y cc-safety-net --help
npx -y cc-safety-net help <command>
Run npx -y cc-safety-net rule doc and treat that output as the complete source of truth for
rulebook schema, paths, GitHub sources, matching behavior, and validation.
These commands are read-only and safe to run for discovery: --help, --version, status,
doctor, logs (without --prune-legacy), explain, rule list, rule verify, rule doc,
policy check, help. Every other command mutates configuration or installed integrations; run
those only as part of a workflow below.
Core model
- Built-in guards always apply. Custom rules only add restrictions; nothing in rule config can bypass built-in CC Safety Net protections.
- Config files (
rule.json) list rulebook sources. Rule definitions live inrulebook.json, not directly inrule.json. - Three scopes: user (all projects), project (current project only), and shareable GitHub
rulebooks at
.cc-safety-net/rules/<rulebook-name>/rulebook.jsonin a repository. - Rulebooks are live files. The runtime reads each
rulebook.jsonon every tool call, so a saved edit applies to the next command with no sync step. policy.jsonsets the safety level, per-feature toggles, per-rule overrides, and path lists. It has two scopes: the project file.cc-safety-net/policy.json, committed and shared with the team, layered on the user file that applies to every project.- The session safety level is
standard,strict, orparanoid, set per session with theCC_SAFETY_NET_LEVELenvironment variable.

