Guard sits between your agents and their tools
A small library, or a sidecar next to your agent. Every tool call passes through it and gets one of three answers before anything runs.
Your agentwants to call a tool
Allowedthe call runs as asked
Stoppedthe call never reaches the tool, the agent is told why
Sent to a personit waits in your team chat or email for one approval
Guardpolicy, model and your limits, on a CPU
Wrap a tool, set a limit
Guard reads the policy Bridle wrote for this agent after its review. Your limits sit next to it in plain text, under version control.
from bridle import Guard guard = Guard(policy="support-agent") @guard.tool(name="refund") def refund(order_id: str, amount: float): return payments.refund(order_id, amount) decision = guard.check("refund", amount=4800, source=ticket) decision.verdict # "ask" decision.reason # "over the 500 limit, set 2 Dec" decision.ms # 1.4
import { Guard } from "@bridle/guard"; const guard = new Guard({ policy: "support-agent" }); export const refund = guard.tool("refund", async (orderId: string, amount: number) => payments.refund(orderId, amount)); const d = await guard.check("refund", { amount: 4800, source: ticket }); if (d.verdict === "ask") await d.requestApproval({ to: "#support-leads" });
agent: support-agent tools: refund: max_amount: 500 # above this, ask a person ask: "#support-leads" drive.read: folders: [support/*] attachments: data_only # never followed as instructions checks: [injection, jailbreak, confidential, personal_data]
The last ten decisions
| Time | Agent | Action | Verdict | Why | Check |
|---|
- 0.9ms
- Median check, on one CPU core
- 1.8ms
- Slowest 1 in 100
- 0
- Prompts or data sent outside your network
Runs where your agents already run
In your code
A Python or TypeScript library. Wrap the tools you care about; the rest pass untouched.
Beside your agent
A sidecar container for agents you did not write. Tool calls go through it on their way out.
Inside your network
No GPU, no call home. Policies update when you merge them, like any other config.