#300 · Primary category: AI Coding Assistants

cc-safety-net

ai-agents ai-safety antigravity claude claude-code claude-code-plugin cli codex codex-cli coding-agent cursor developer-tools gemini-cli guardrails hermes-agent hooks openclaw opencode pi-extension security

An AI coding agent guardrail — a CLI hook that blocks destructive git and filesystem commands and secret file access before they execute. Supports Amp Code, Antigravity CLI, Claude Code, Codex, Copilot CLI, Cursor, Gemini CLI, Hermes Agent, Kimi Code, OpenClaw, OpenCode, and Pi.

Project last updated:08/29/26

GitHub Stars

1.5K

Forks

75

Contributors

6

License

MIT

Why we included this project

A coding agent will happily run any shell command in your repository, and one misread instruction can end in rm -rf on your home directory or a destructive git checkout. CC Safety Net intercepts those commands as a PreToolUse hook, parsing what the command actually means rather than matching keywords, so reordered flags, shell wrappers, and interpreter one-liners don't get past it. It blocks destructive git and filesystem operations plus access to secret files, and it supports a long list of agents including Claude Code, Codex, Gemini CLI, Copilot CLI, Cursor, and others. If you run agents with any degree of autonomy, this gives you a hard technical backstop that the soft rules in CLAUDE.md can't provide, and it stops the command before anything executes.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category