Directory · Coding agents
CC Safety Net
Pre-execution hook that blocks destructive Git/filesystem commands and secret file access by AI coding agents like Claude Code and Codex.
★ 1,930 stars · last updated 2026-11-06 · Free, open source · View on GitHub
Best for
- Preventing agents from running commands like git reset --hard, git push --force, or rm -rf on dangerous targets
- Blocking agent access to SSH keys, .env files, ~/.aws, and CLI credentials
- Teams that want a shared, git-committed safety policy across many coding CLIs
- Embedding command checks in Node.js tools via the checkCommand library API
Install
npx -y cc-safety-net@latest install
npx -y cc-safety-net@latest doctor
Our take
Parses what a command actually does, so wrapping in bash -c or python -c or reordering flags does not bypass it, and a broken config never blocks anything. The README states it is not a sandbox: it does not contain processes, set filesystem permissions, or monitor network egress. Supports many CLIs on Windows, macOS, and Linux, requires Node.js 18+, and offers presets, a GUI, and rulebooks for Terraform and cloud CLIs.
Similar coding agents
- Open Interpreter: Terminal coding agent forked from OpenAI Codex, tuned to emulate provider harnesses for low-cost open models like Kimi K3 and GLM.
- AI Agents in Depth (深入理解 AI Agent): Open-source book by Bojie Li on AI agent design and engineering, with 10 chapters and 109 companion experiments in Python.
- Codewhale: Open-source Rust terminal coding agent that works with 40+ model providers or local models, with approvals, receipts and undo.
- Reasonix: Open-source coding agent for terminal, desktop, browser and editor that reads code, edits files and runs commands with any OpenAI-compatible model.
- DSH Go: Unofficial Android client for DeepSeek Harness that runs the agent on-device or remotely controls DSH on your computer.
- Qwen Code: Open-source terminal coding agent with IDE, desktop, web, and chat interfaces, supporting Qwen, OpenAI, Anthropic, Gemini, and local models.