Safety & Cost
Block prompt injection, filter harmful input and output, decide tool calls by rules and modes, and keep spending under a budget.
+++ 5 recipes +++
Prompt Injection Detectioneasy5 minUser input reaches your agent unfiltered. You want obvious injection attempts blocked before the model sees them.Constitutional Guardrailsmedium10 minHarmful requests and answers should be stopped, and destructive tool calls like
rm -rf / denied.Guard Every Model and Tool Calleasy5 minChecks and rewrites that belong to every call (refusing some requests, cleaning tool arguments, scrubbing answers) end up copied into every tool and agent.Permission Rules, Modes and Session Budgetsmedium10 minA coding agent should run your tests without asking, never read .env or push, plan before it edits, and stop when a session has spent enough.Cost-Aware Routing & Budgetsmedium10 minSimple questions should not go to the most expensive model, and nobody should blow the daily budget.