LibreAI / AI Agents / cc-safety-net
// agents ยท kenryu42/cc-safety-net

cc-safety-net

Pre-execution guard that stops AI agents' destructive commands cold.

๐Ÿ’Ž Hidden gemโ˜… 1.6k starsโ‘‚ 85 forksMITupdated 2026-10
โ–ฆ visual โ€” this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

cc-safety-net is an open-source ai agents project by kenryu42 (kenryu42/cc-safety-net on GitHub). It has 1,576 GitHub stars and 85 forks, is released under the MIT license, and was last updated on GitHub on 4 October 2026.

GitHub stars
1,576
Forks
85
License
MIT
Last updated on GitHub
4 October 2026
Category
AI Agents
Listing
Hidden gem โ€” a shorter page for a lesser-known project
Official site
Official site
// how it works

How it works

  1. Clone the repository

    Download the guard source.

  2. Install the package

    Pull the Node dependencies.

  3. Configure policies

    Define which commands and paths are blocked.

  4. Hook it to your agent

    Register it as a pre-execution hook.

// features

Why people love it

Pre-execution blocking

Stops dangerous calls before they run.

Destructive-command filter

Blocks risky Git and filesystem operations.

Sensitive-file guard

Keeps agents away from secrets and keys.

Multi-agent support

Claude Code, Codex CLI, and plugins.

Policy config

Tune the rules to your workflow.

1,576 stars

Trusted by the agent community.

Advertisement
// run it

Run it yourself

  1. Step 1 โ€” Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/kenryu42/cc-safety-net.git
    cd cc-safety-net
  2. Step 2 โ€” Install dependencies

    Pull the Node packages it needs.

    npm install
  3. Step 3 โ€” Install the hook

    Register it with your agent per the README.

    # see README for the Claude Code / Codex hook setup
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains cc-safety-net?

It is an open-source project at kenryu42/cc-safety-net with 85 forks.

Is it free for commercial use?

Yes. It is MIT licensed.

Which agents does it protect?

Claude Code, Codex CLIs, and plugin-based agents.

What does it block?

Destructive Git and filesystem commands, plus sensitive-file access attempts.

Can I customize the rules?

Yes. Policies are configurable to your workflow.

// keep exploring

Similar tools

Dev Tools

claude-code-security-review

An AI-powered security review GitHub Action using Claude to analyze code changes for security vulnerabilities.

โ˜… 6.3k starsMIT
View guide โ†’
AI Agents

agent-beacon

Self-improving memory layer that works across AI agent harnesses.

โ˜… 1.8k starsMIT
View guide โ†’
AI Agents

LongHorizon-Harness

Run AI agents on desktop apps and CLI for hours without losing state.

โ˜… 1.7k starsMIT
View guide โ†’
Agents

stop-that-shit

Hook and skill guard that stops coding agents from doing unrequested busywork.

โ˜… 2.5k starsMIT
View guide โ†’
AI Agents

RAMPART

Safety testing for agents, right in pytest.

โ˜… 419 starsMIT
View guide โ†’
Agents

openlit

Open-source observability for AI agents: trace, evaluate, guard, and improve.

โ˜… 2.8k starsApache-2.0
View guide โ†’
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue โ€” the realistic shortlist if cc-safety-net is not the right fit.

Get cc-safety-net

Free and open โ€” grab the source, star the repo, and start creating.