#206206th of 259 in Skills, plugins and prompts

cc-safety-net

Pre-execution hook that blocks destructive commands and secret access by coding agents

Stars
1.6k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
TypeScript

Missed the latest GitHub check; these facts may be older.

Overview

CC Safety Net installs as a hook in coding agent CLIs and parses each shell command or file access before it runs. It blocks things like `git reset --hard`, `git push --force`, `rm -rf` on dangerous targets, `curl | bash`, and reads of SSH keys, `.env` files and `~/.aws`, including when wrapped in `bash -c` or `python -c`. It is not a sandbox and does not restrict processes, filesystem permissions or network egress.

Who it is for: Developers running coding agents who want guards against destructive commands

Strengths

  • Supports 16 coding CLIs, including Claude Code, Codex, Cursor and Gemini CLI, on Windows, macOS, Linux
  • Parses command semantics, so wrapping in bash -c or reordering flags does not bypass rules
  • Standard, Strict and Paranoid presets, a GUI editor, and rulebooks for Terraform, AWS, gcloud, Azure
  • Policy lives in a committed .cc-safety-net/ directory; a broken config never blocks commands

Weaknesses

  • Not a sandbox: no process containment, filesystem permissions or network egress monitoring
  • Requires Node.js 18 or higher
  • Must keep the @latest qualifier on npx, or a stale cached copy may run
  • Protection depends on each CLI's hook support; per-CLI requirements vary

What it needs

  • no GPU
  • Needs Node.js 18+

Also in Skills, plugins and prompts

See all 259
Also in Skills, plugins and prompts
RankProjectScore
1impeccableDesign skill with 24 slash commands for AI coding agents' frontend output Live demo ↗ (opens in a new tab)84.5k starsApache-2.096 out of 100
2cavemanCuts token use in coding agents with terse replies and compressed inputs Live demo ↗ (opens in a new tab)114.1k starsApache-2.095 out of 100
3skillsAgent skills for planning, TDD, debugging and code review299.9k starsMIT94 out of 100
#4eccAgents, skills, hooks and rules bundle for Claude Code, Codex and other harnesses285.7k starsMIT94 out of 100
#5oh-my-claudecodeMulti-agent orchestration plugin and CLI for Claude Code40.2k starsMIT94 out of 100