hanzoai/guard

Guard

It reads what goes into a model, and what comes back

People paste their social security number into a chat box. Guard catches it on the way out and replaces it before the model ever sees it, then reads the reply on the way back. It runs three ways: as a proxy in front of an LLM API, as a wrapper around a command-line tool, or as a filter in front of an MCP server. A Rust library and a Unix pipe if you would rather not run a process at all.

What it looks for

Overriding the instructions, role-play, asking for the system prompt, bypassing a rule, hiding the ask in an encoding, and reframing the context. A match returns a confidence rather than a verdict, and you decide what confidence is worth blocking.

Paste and ship

Paste this into any agent. It reads the skill manifest and calls Guard from there.

Agent prompt
Read https://hanzo.ai/skill.md and use Hanzo Guard in my project.

Get started with Guard

Get Guard

AI guardrails

License: Apache-2.0hanzoai

Build what’s next.