Hook

Claude Code Safety Net

CC Safety Net, by kenryu42, blocks destructive commands and access to secrets before a coding agent's tool call runs.

Checked 2026-10-31

CC Safety Net, by kenryu42, blocks destructive commands and access to secrets before a coding agent's tool call runs. It parses what a command does, so wrapping it in bash -c or python -c, or reordering flags, does not slip past. The README lists blocks for git reset --hard, git push --force, rm -rf on dangerous targets and curl piped to bash, and for reading SSH keys, .env files, ~/.aws and CLI credentials. A GUI started with npx cc-safety-net gui picks the Standard, Strict or Paranoid preset, and rulebooks add packs for Terraform, AWS, gcloud and Azure. It supports several coding CLIs on Windows, macOS and Linux. Install with npx -y cc-safety-net@latest install. The licence is MIT and the repository was last pushed on 30 October 2026. It suits anyone running agents with broad shell access. A limit is that rules block, not sandbox, so it complements isolation. We have not run it ourselves for this note.

Mentioned here

Works with

Tried it with one of these? Vote below: works for me, or not.

Questions

How do I install Claude Code Safety Net?

Run this command: npx -y cc-safety-net@latest install. The install box on this page has the command for each agent it works with.

Is Claude Code Safety Net free?

It is published under the MIT licence.

Who maintains Claude Code Safety Net?

It is maintained by kenryu42. The code is at github.com/kenryu42/cc-safety-net.

Reviews

Loading reviews…

Write a review

Your rating

Up to 1000 characters. Stars alone are enough.

Prompts that use it

All prompts

Similar

  • Plannotator

    Plannotator lets you annotate and review an agent's plans and code diffs in a visual page, share them with a team, and send the feedback back to the agent in one click.

    • Hook

    backnotprop, 9,786 stars

  • TDD Guard

    TDD Guard enforces test-driven development in Claude Code.

    • Hook

    Nizar Selander, 2,373 stars

  • claude-status-bar

    Claude Status Bar is a small macOS menu bar app that shows Claude Code's live status.

    • Hook

    mick, 722 stars