Guardrail

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

ToolFormLicenseLatest release in its sources
DefenseClaw1CLI, per-user or managed gateway, agent hooks and pluginsApache-2.0See Releases
LlamaFirewall2Python library (PromptGuard 2, AlignmentCheck, CodeShield)MIT1.0.3, May 2025
LLM Guard3Python library and a self-hosted APIMIT0.3.16, May 2025; repository archived in July 2026
NeMo Guardrails4Python library or server, a hooks server, an experimental proxyApache-2.00.25.0, November 2026
Guardrails AI5Python framework and a serverApache-2.00.11.0, August 2026
Invariant Guardrails6Python library and a proxy for LLM and MCP traffic (Invariant Gateway)Apache-2.00.3.5, July 2025
CodeShield7Python library, static analysis of generated codeMIT1.0.1, April 2024
Llama Guard 4 12B8Model weightsLlama 4 Community LicenseApril 2025 (model repository)
Qwen3Guard-Gen 8B9Model weightsApache-2.0September 2025
Granite Guardian 3.3 8B10Model weightsApache-2.0August 2025; a 4.1 model is listed since

What each tool covers

ToolAgent tool callsHooks into coding agentsScans MCP servers and skillsNeeds a modelDecision it returns
DefenseClawYes: tool calls, prompts and tool resultsYes: Claude Code, Codex, GitHub Copilot CLI, Cursor, Devin, Antigravity, Kiro, OpenCode, Amp and HermesYes: skills, MCP servers and pluginsNo for the rules; an optional decision model and LLM judgeAllow, alert, ask or block; blocks before the call runs in action mode
LlamaFirewallYes: agent actions in a trace (AlignmentCheck)Not statedNot statedPartly: PromptGuard 2 is a local classifier, AlignmentCheck calls an LLMAllow, human review or block
LLM GuardNot stated: prompts and model outputsNot statedNot statedPartly: some scanners run modelsSanitized text, a valid flag and a risk score; the caller decides
NeMo GuardrailsYes: tool name, arguments and resultsYes: Claude Code and Codex hooksNot stated: MCP tool calls are checked at run timeOptionalAllow or deny
Guardrails AINot stated: LLM inputs and outputsNot statedNot statedDepends on the validatorAn on-fail action such as raise, refrain, filter, fix or re-ask
Invariant GuardrailsYes: tool calls, tool outputs and flows across a traceNot statedIn Snyk Agent Scan, formerly MCP-scanNo for the rules; optional detectorsThe request fails, or the MCP proxy blocks, logs or pauses
CodeShieldNo: generated code onlyNot statedNot statedNoBlock, warn or ignore
Llama Guard 4 12BPartly: a category for code interpreter abuseNot statedNot statedYesSafe or unsafe, with categories
Qwen3Guard-Gen 8BNot stated: prompts and responsesNot statedNot statedYesSafe, controversial or unsafe, with a category
Granite Guardian 3.3 8BYes: function calls with syntax or semantic errorsNot statedNot statedYesYes 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

  1. Connectors, scanning, how the guardrail works, license. ↩

  2. LlamaFirewall in PurpleLlama, license, data types and decisions, paper, PyPI. ↩

  3. Repository, API, prompt-injection scanner, PyPI. ↩

  4. Repository, tool-call rails, hooks server, Claude Code hooks, PyPI. ↩

  5. Repository, on-fail actions, PyPI. ↩

  6. Invariant Guardrails, Invariant Gateway, rule reference, MCP-scan guardrails, Snyk Agent Scan. ↩

  7. Repository, decisions, PyPI. ↩

  8. Model card. ↩

  9. Model card, repository, announcement. ↩

  10. Model card, repository. ↩