Glossary / Security & Safety

Guardrails

Rules, checks, and limits that keep an agent or system from doing the wrong thing.

Updated July 2, 2026

Guardrails are the rules, checks, and limits that keep an agent from doing the wrong thing. An agent can read files, edit code, call tools, and send messages, which is why you need boundaries: what can it read, what can it change, what requires approval? Some guardrails are permissions (read but not write, draft but not send), some are process checks like a human in the loop before a client message goes out, and some are a sandbox that contains risky work.

Picture a mountain road. The rail isn’t there because every driver is bad; the cost of one wrong turn is too high, and a good driver still wants the rail. Guardrails don’t make the road disappear; they keep the car from going off the edge.

Why you care

The goal is to make speed survivable: the agent moves fast inside a lane that makes sense. Guardrails also answer prompt injection, when content the agent reads tries to hijack its behavior. Even if a document says to ignore the rules, the agent follows the real ones. You can trust the work because you’ve already decided where the edge is.