{"repo":"vaporif/parry-guard","free":true,"listed":false,"github":"https://github.com/vaporif/parry-guard","clone":"git clone https://github.com/vaporif/parry-guard.git","description":"Prompt injection scanner for AI coding tools (Claude Code / Codex / etc). Runs DeBERTa/Llama transformers via Candle or ONNX in Rust","language":"Rust","stars":43,"topics":["claude-code","nix","prompt-injection","prompt-injection-llm-security","rust"],"license":"MIT","category":"mcp-servers","readme_excerpt":"Parry-guard Prompt injection scanner for AI coding tool hooks. Catches injection attacks, leaked secrets, and data exfiltration in tool inputs and outputs. It is built for Claude Code hooks and can also be used with Codex or similar tools that run command hooks with compatible JSON input/output. Early development - bugs and false positives happen. Tested on Linux and macOS. Prerequisites The ML models are gated on HuggingFace, so you need to accept licenses before installing: 1. Create an account at huggingface.co 2. Accept the DeBERTa v3 license (required for all modes) 3. For full mode: also accept the Llama Prompt Guard 2 license (Meta approval required) 4. Create an access token at huggingface.co/settings/tokens Usage Claude Code Add to /.claude/settings.json : With uvx: With rvx: With parry-guard on PATH (via Nix, cargo install, or release binary): Codex Add to /.codex/config.toml : Other hook runners parry-guard hook reads one JSON hook payload from stdin and writes a JSON decision to stdout. Any tool with command hooks can integrate it if it sends Claude/Codex-style fields such as hook event name , tool name , tool input , tool response , and prompt , then honors block/deny responses. Note: Claude Code supports interactive PreToolUse ask decisions. Codex does not currently support that decision, so parry-guard maps review/ask results from Codex-shaped PreToolUse payloads to a blocking exit code with the reason on stderr. Other installation methods From source: Nix (hom","default_branch":null,"files":null,"tree":[],"storefront":"/r/vaporif","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vaporif/parry-guard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}