DefenseClaw compared with other guardrails
Compare DefenseClaw with LlamaFirewall, LLM Guard, NeMo Guardrails, Guardrails AI, Invariant, CodeShield and guard models, with links to benchmark results.
Who wrote this page
Cisco publishes this page about its own product. The feature tables list only what each project's own documentation, repository or model card states, as published in December 2026; "Not stated" means those sources do not say. The benchmark results are on the guardrail benchmarks page; the DefenseClaw project ran them with the same labels for every tool.
These tools do different jobs. DefenseClaw sits in the hooks of AI coding agents on a developer machine or a managed fleet. The libraries run inside an application you build. The guard models classify text and are often used inside one of the other two. Pick by where your risk is, not only by score.
What each tool is
| Tool | Form | License | Latest release in its sources |
|---|---|---|---|
| DefenseClaw1 | CLI, per-user or managed gateway, agent hooks and plugins | Apache-2.0 | See Releases |
| LlamaFirewall2 | Python library (PromptGuard 2, AlignmentCheck, CodeShield) | MIT | 1.0.3, May 2025 |
| LLM Guard3 | Python library and a self-hosted API | MIT | 0.3.16, May 2025; repository archived in July 2026 |
| NeMo Guardrails4 | Python library or server, a hooks server, an experimental proxy | Apache-2.0 | 0.25.0, November 2026 |
| Guardrails AI5 | Python framework and a server | Apache-2.0 | 0.11.0, August 2026 |
| Invariant Guardrails6 | Python library and a proxy for LLM and MCP traffic (Invariant Gateway) | Apache-2.0 | 0.3.5, July 2025 |
| CodeShield7 | Python library, static analysis of generated code | MIT | 1.0.1, April 2024 |
| Llama Guard 4 12B8 | Model weights | Llama 4 Community License | April 2025 (model repository) |
| Qwen3Guard-Gen 8B9 | Model weights | Apache-2.0 | September 2025 |
| Granite Guardian 3.3 8B10 | Model weights | Apache-2.0 | August 2025; a 4.1 model is listed since |
What each tool covers
| Tool | Agent tool calls | Hooks into coding agents | Scans MCP servers and skills | Needs a model | Decision it returns |
|---|---|---|---|---|---|
| DefenseClaw | Yes: tool calls, prompts and tool results | Yes: Claude Code, Codex, GitHub Copilot CLI, Cursor, Devin, Antigravity, Kiro, OpenCode, Amp and Hermes | Yes: skills, MCP servers and plugins | No for the rules; an optional decision model and LLM judge | Allow, alert, ask or block; blocks before the call runs in action mode |
| LlamaFirewall | Yes: agent actions in a trace (AlignmentCheck) | Not stated | Not stated | Partly: PromptGuard 2 is a local classifier, AlignmentCheck calls an LLM | Allow, human review or block |
| LLM Guard | Not stated: prompts and model outputs | Not stated | Not stated | Partly: some scanners run models | Sanitized text, a valid flag and a risk score; the caller decides |
| NeMo Guardrails | Yes: tool name, arguments and results | Yes: Claude Code and Codex hooks | Not stated: MCP tool calls are checked at run time | Optional | Allow or deny |
| Guardrails AI | Not stated: LLM inputs and outputs | Not stated | Not stated | Depends on the validator | An on-fail action such as raise, refrain, filter, fix or re-ask |
| Invariant Guardrails | Yes: tool calls, tool outputs and flows across a trace | Not stated | In Snyk Agent Scan, formerly MCP-scan | No for the rules; optional detectors | The request fails, or the MCP proxy blocks, logs or pauses |
| CodeShield | No: generated code only | Not stated | Not stated | No | Block, warn or ignore |
| Llama Guard 4 12B | Partly: a category for code interpreter abuse | Not stated | Not stated | Yes | Safe or unsafe, with categories |
| Qwen3Guard-Gen 8B | Not stated: prompts and responses | Not stated | Not stated | Yes | Safe, controversial or unsafe, with a category |
| Granite Guardian 3.3 8B | Yes: function calls with syntax or semantic errors | Not stated | Not stated | Yes | Yes or no |
A guard model that returns a label does not stop anything by itself: the application or the guardrail that calls it acts on the label. DefenseClaw can block only through a connector with a synchronous pre-tool hook; event-stream connectors get the same verdict as an observation (how the guardrail works).
Benchmark results on the same sets
Each tool was scored at its best setting, with the same labels, on the sets it covers, next to DefenseClaw's full cascade (rules, decision model and LLM judge) on the same sets. The results live on the benchmarks page:
- Next to other tools: F1 and benign calls alerted for each tool, on the sets it covers.
- Pooled result: score against benign calls alerted over every set, for the tools that ran them all, and for the rules alone, which a new install runs with no model.
- Time and cost: hook time and model cost, with LlamaFirewall's.
- Reproduce it: rerun the harness on your own traffic. The sets are third-party tool-call, prompt and tool-result sets, not your workload.
When another tool may fit better
- You build your own LLM application and want checks in its code: a library such as NeMo Guardrails, Guardrails AI or LlamaFirewall runs inside it.
- You need a text classifier to call from your own stack: Llama Guard 4, Qwen3Guard or Granite Guardian are models you host.
- You want to scan the MCP servers and skills on a machine through a hosted analysis service: Snyk Agent Scan does that.
DefenseClaw fits when the agents are third-party coding agents (Claude Code, Codex, Cursor and the rest) and you want one policy, one audit log and the option to block before a call runs, per user or across a managed fleet.
Footnotes
Guardrail benchmarks
See what DefenseClaw measured for its guardrail: rule detection, the LLM judge, the alignment check, the decision model, model routing and hook speed.
Packs and rules
Choose a guardrail rule pack, add your own pinned by digest, validate it, and change single rules, suppressions and sensitive tools with guardrail.rules.