matanryngler/deployshield
3 stars · Last commit 2026-03-30
🛡️ Production safety guardrails for Claude Code and Gemini CLI. Intercepts and blocks dangerous commands.
README preview
# 🛡️ DeployShield [](https://github.com/matanryngler/deployshield/actions/workflows/test.yml) [](https://github.com/matanryngler/deployshield/releases) [](https://opensource.org/licenses/MIT) [](https://www.python.org/downloads/) **DeployShield** is a cross-platform production safety guardrail for **Claude Code** and **Gemini CLI**. It intercepts terminal commands before execution and blocks dangerous operations (writes, deletes, etc.) while allowing read-only commands to pass through. ## 🚀 Why DeployShield? Large Language Models (LLMs) are incredibly capable but can accidentally execute destructive commands in production environments. DeployShield provides a **deterministic safety layer** that doesn't rely on probabilistic model instructions. - **Deterministic Protection**: Uses a curated safe-list of read-only subcommands. - **Recursive Safety**: Deeply scans subshells, backticks, `sudo`, and `bash -c`. - **Context-Aware**: Granular control—block writes in `production` while allowing them in `dev`. - **Zero-Dependency**: Fast, lightweight, and runs on any system with Python 3.8+. ---