by kenryu42
A pre-execution guard for AI coding agents. It blocks destructive Git and file system commands, plus common attempts to access sensitive files, before a tool call runs. Supports Amp Code, Antigravity CLI, Claude Code, Codex, Cursor, DeepSeek Harness, Devin CLI, GitHub Copilot CLI, Grok Build, Hermes Agent, Kimi Code, OpenClaw, OpenCode, and Pi.
# Add to your Claude Code skills
git clone https://github.com/kenryu42/cc-safety-netGuides for using ai agents skills like cc-safety-net.
Last scanned: 11/28/2026
{
"issues": [
{
"file": "README.md",
"line": 110,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl ... | bash\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-11-28T22:13:47.870Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}cc-safety-net is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kenryu42. A pre-execution guard for AI coding agents. It blocks destructive Git and file system commands, plus common attempts to access sensitive files, before a tool call runs. Supports Amp Code, Antigravity CLI, Claude Code, Codex, Cursor, DeepSeek Harness, Devin CLI, GitHub Copilot CLI, Grok Build, Hermes Agent, Kimi Code, OpenClaw, OpenCode, and Pi. It has 2,119 GitHub stars.
Yes. cc-safety-net passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/kenryu42/cc-safety-net" and add it to your Claude Code skills directory (see the Installation section above).
cc-safety-net is primarily written in TypeScript. It is open-source under kenryu42 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cc-safety-net against similar tools.
No comments yet. Be the first to share your thoughts!
https://github.com/user-attachments/assets/353c1441-9156-483c-b8e5-32fce7905a83
CC Safety Net (Coding CLI Safety Net) blocks destructive commands and access to secrets such as SSH keys and .env files before the tool call runs. It parses what the command does. Wrapping the command or reordering flags does not hide it. A broken config file falls back to safe defaults instead of stopping your agent. It is not a sandbox: it does not contain processes, set filesystem permissions, or watch network egress.
[!NOTE] Full documentation → covers installation, configuration, reference material, guides, and the security model. This README is the short version.
CC Safety Net supports these coding agent CLIs on Windows, macOS, and Linux.
git reset --hard, git push --force, and rm -rf on dangerous targets, and install scripts piped from the internet (curl … | bash), even inside bash -c or python -c. See Blocked commands..env files, ~/.aws, and coding-CLI credentials, from the shell and from the agent's file tools. See Secret protection.npx cc-safety-net gui to pick the Standard, Strict, or Paranoid preset and turn rules on or off. See Dashboard..cc-safety-net/ so clones and cloud sessions get the same rules. See Team setup.checkCommand from Node.js without installing the hoo