What Cc Safety Net does
It blocks destructive git and filesystem commands and secret file reads before they run.
It supports 16 coding agent CLIs on macOS, Linux, and Windows, and is free and MIT licensed.
Who it is for
Pricing model: Open source. Is Cc Safety Net free? Check current plans ↗
Signals
Health Score
Health Score 76 · based on 55 of 100 methodology points (55% coverage). Missing signals are omitted, not scored as zero.
Cc Safety Net's score uses only signals already on file. Missing Lighthouse, reviews or a 7-day availability window are omitted, not scored as zero. This is not a stored badge fact.
How the Health Score is calculated →- Availability10/10
1 of 1 daily checks succeeded (100.0%). Tracking since 2026-11-28; the full 25-point window opens after 7 days.
Recorded - Lighthouse performanceomitted
No Lighthouse performance score has been recorded.
Not recorded - Lighthouse qualityomitted
No Lighthouse SEO, accessibility or best-practices scores have been recorded.
Not recorded - HTTP Observatory7/20
Mozilla HTTP Observatory grade C-.
Needs attention - HTTPS5/5
The official listing URL uses HTTPS.
Recorded - Community5/5
No published reviews (omitted) · 3118 community awards.
Recorded - Listing completeness10/10
Description, tagline, logo, category and official URL are all on file.
Recorded - Check freshness5/5
Last recorded HTTP check was today.
Recorded
Key features
Facts
Company
- Founded2025
Pros and cons
Pros
- Open-source pricing modelOfficial website, recorded at listing time
- Open source (MIT)https://github.com/kenryu42/cc-safety-net
- adjustable safety levelshttps://ccsafetynet.com/
Cons
- may block needed commandshttps://ccsafetynet.com/
Platforms & integrations
How Cc Safety Net compares
| Pricing | Open source | Open source | — | — | Free plan | — |
|---|---|---|---|---|---|---|
| Awards | 3118 | 1145 | 1369 | 2239 | 334 | 1582 |
| Origin | — | Spain | United States | — | — | — |
| Founded | 2025 | — | — | — | — | 2013 |
| Security | C- | B- | C | B | F | F |
Cc Safety Net vs LatxaCc Safety Net vs ID@XboxCc Safety Net vs Cursor
Ratings & reviews
Used this tool? Share a specific experience to help the next person.
Security & trust
Open source
License: MIT · 10 open issues and pull requests
Last commit today
Popularity over time
npm weekly downloads
46,959
2026-11-28 – 2026-11-28 · https://www.npmjs.com/package/cc-safety-net
GitHub stars
2,113
2026-11-28 – 2026-11-28 · https://github.com/kenryu42/cc-safety-net
Availability
100.0% of 1 observed checks responded · daily snapshots
Common questions
What is CC Safety Net?
CC Safety Net is a pre-execution hook for AI coding agents like Claude Code, Codex, and Cursor. It reads each shell command and file tool call before it runs, and blocks the ones that destroy work or expose secrets: git reset --hard, git push --force, rm -rf on your home directory, and reads of .env files, SSH keys, and cloud credentials. It supports 16 coding agent CLIs on macOS, Linux, and Windows, and is free and MIT licensed. It is not a sandbox.
How do I stop Claude Code, Codex, or Cursor from running git reset --hard or rm -rf?
Install CC Safety Net with npx -y cc-safety-net@latest install, then run npx -y cc-safety-net@latest doctor to confirm the hook is active. It needs Node.js 22 or later. From then on, git reset --hard, git checkout -- ., git clean -f, git stash clear, and git push --force are denied, and the agent is told why and what safer command to use. rm -rf is blocked on your home directory, the filesystem root, and paths outside the project. Deleting inside the project is allowed unless you turn on the paranoid level.
Don't Claude Code's permission deny rules already do this?
It depends. Deny rules are deterministic and still apply in bypassPermissions mode, so if you only need to block a few exact commands in one CLI, they may be enough. Their limit is that they match the command string against a wildcard pattern. Reordered flags (rm -r -f), a shell wrapper (sh -c "..."), or an interpreter can slip past. CC Safety Net parses what the command does, so those variants are still caught. It also gives you one policy and one audit log across 16 CLIs instead of a separate format per tool. Many setups use both.
Doesn't Claude Code's auto mode already block git reset --hard?
Partly. As of October 2026, Claude Code's auto mode uses a classifier model that blocks git reset --hard, git clean -fd, git stash clear, and similar commands by default. That's a judgment call, and Anthropic publishes a 17% false-negative rate for the classifier on real overeager actions. bypassPermissions mode asks about nothing. A CC Safety Net denial is a deterministic check: tested against Claude Code 2.1.251, it fires in default, auto, and bypassPermissions modes. If you review every command yourself in default mode, you may not need it.
Do I still need CC Safety Net if I run my agent in a sandbox or container?
If you care about uncommitted work, probably yes. A sandbox like Claude Code's or Codex's limits writes to the project directory and restricts network access. But git reset --hard and rm -rf . write inside that directory, and git push --force goes to a remote you allowed, so the sandbox permits all three. CC Safety Net blocks them. It does not contain processes or control the network. If your main worry is prompt injection, malicious dependencies, untrusted code, or data leaving over the network, a sandbox is the better choice. Use both.
Can I undo a destructive command with Claude Code checkpoints?
Not reliably. As of October 2026, Claude Code's checkpointing docs say checkpoints don't track files changed by bash commands. Only edits made through Claude's file editing tools can be rewound. git reset --hard, git clean, and rm all run as bash commands, so the work they discard is outside what a rewind restores. Containers have the same gap: a mounted working tree holds your real uncommitted work, and a push still reaches your real remote. Blocking the command before it runs is the safer layer, with Git commits for long-term history.
Does Claude Code block reading .env or ~/.aws/credentials by default?
No. As of October 2026, Claude Code's sandboxing docs say there is no built-in credential deny list, and its default read access still allows files such as ~/.aws/credentials and ~/.ssh/. Other CLIs offer opt-in deny settings that you write per tool. CC Safety Net blocks reads of .env files, SSH private keys, cloud credential stores, and coding agent auth tokens as soon as it is installed. That covers shell commands like cat .env and the agent's own read, edit, write, and search tools. You can add your own deny paths.
Does CC Safety Net send my commands anywhere? Is it free?
It is free and open source under the MIT license. The hook makes no network requests when it checks a tool call. Decisions are logged on your machine under ~/.cc-safety-net/logs. Only a few commands you run yourself go online. doctor checks the npm registry for a newer version. The GUI fetches the GitHub star count. Rulebook sync downloads rulebooks from GitHub. None of these sends your commands or file contents.
Will CC Safety Net block commands I actually need, and how do I tune it?
It can, so the levels are adjustable. The default standard level blocks recognized destructive patterns and lets ordinary commands and deletions inside the project run as usual. strict also blocks commands it cannot fully analyze. paranoid adds blocking rm -rf inside the project and python -c or node -e one-liners. Choose a level and turn individual rules on or off in npx cc-safety-net gui or in policy.json. Worktree mode allows local discards like git reset --hard inside a verified linked Git worktree. npx cc-safety-net explain shows why a command was blocked.
What is the Maker Crown Health Score for Cc Safety Net?
Health Score 76 · based on 55 of 100 methodology points (55% coverage). Missing signals are omitted, not scored as zero.
How is Cc Safety Net priced?
Open source. Check the official pricing page for current plans and terms.
Is there a free plan for Cc Safety Net?
The product is listed as open source.
Is Cc Safety Net free?
It is listed as open source. The directory lists Cc Safety Net as open source. That does not always mean hosted use is free. We do not have a detailed official plan snapshot on file. Check the official site for current terms; recorded pricing can change and is not a quote.
Who is Cc Safety Net for?
Best for: AI coding agent users, Developers.
What is Cc Safety Net best for?
The listing records Cc Safety Net as best for AI coding agent users, Developers. That line comes from the catalog record, not from a Maker Crown test.
What can Cc Safety Net do?
Recorded features: Blocks destructive Git commands, Blocks file system commands, Blocks secret file reads, pre-execution hook. Empty fields mean we have not recorded that fact.
What are the best Cc Safety Net alternatives?
Other tools in the same category in this catalog include Latxa, ID@Xbox, Cursor, GitBook. They are ranked by community awards, then recorded popularity, and the list is not a paid placement.
What category is Cc Safety Net listed in?
Cc Safety Net is filed under Developer Tools in the Maker Crown catalog. You can browse every live Developer Tools tool from the category page, and free options have their own list.
Where can I find more Developer Tools tools?
The Developer Tools category page lists every live Developer Tools tool in the catalog. The free and open-source lists narrow that to recorded pricing, and alternatives pages show what sits next to Cc Safety Net.
When was Cc Safety Net last checked?
The listing was last checked just now (28 November 2026). Every fact on the page carries the date it was recorded, and the method is documented at /how-we-test.
How does Maker Crown rank tools?
By community awards first, then recorded popularity (a Tranco rank when we have one), then discovery signal. It is not a paid ranking, and empty fields mean we have not recorded that fact.
Add a Maker Crown badge to your website. Every badge is a dofollow link back to this tool's page.
Claim this listing and add a badge or a makercrown-verify meta tag on your domain to earn Verified on Maker Crown. Verify ownership →
On this listing
Listed on Maker Crown
Every live listing can show this badge.
Featured in a category
Listed tools with a known category get a category badge and icon.
Upvote counter
A live count of community awards (upvotes) on Maker Crown.
Earned
Open Source Hero
The listing is marked open source, or we have a recorded GitHub stars fact for it.