AI agent governanceAI agent guardrails

AI agent guardrails: rules your agents follow, whatever they are asked

AI agent guardrails are company rules that hold whatever an agent is asked: what it may never do, what always needs a person, and what it must warn about. They are what make it safe to let an agent work on its own.

Most companies already have these rules, in an AI policy few people read. A guardrail is the same rule, written so that every agent in every AI tool follows it, every time.

Two kinds

Strict and advisory guardrails

Strict

Refused, whatever the request

The action is stopped and the person is told why. Use strict guardrails for things that must never happen, such as deleting records in bulk or sending to a customer without a person approving it.
Advisory

Flagged, then the person decides

The agent warns and continues if the person confirms. Use advisory guardrails for judgement calls, such as a possible GDPR issue or language that does not fit a work setting.
Examples

Guardrails companies actually use

Never delete in bulk
The agent may archive or close one record a person named, but never delete or overwrite many at once. Bulk clean-ups stay in the system itself.
A person sends
The agent drafts emails, offers and replies. Nothing leaves the company until a person has read it and pressed send.
No national ID numbers
Personal identity numbers are never repeated, stored or used. If one appears, the agent asks for initials or a customer number instead.
Customers stay apart
One customer’s data, prices or terms are never mentioned in work for another customer.
Tests are never skipped
For coding agents: a failing test is fixed, never disabled or skipped to get a green build, and nothing reaches release without a person’s review.
Flag GDPR risk
When a request involves personal data in a way that may break GDPR, the agent says so before it continues.
Where they live

Four places to put a guardrail, and what each catches

In the prompt

Easy, and easily lost

A line in one person’s instructions. It works until someone starts a new chat, uses another tool or forgets to paste it.
In the AI tool

Holds in one tool only

Admin settings in Claude, ChatGPT or Copilot, such as which connectors are switched on. Useful, but each tool has its own settings, and an agent in another tool ignores them.
In the connection layer

Holds whichever AI tool is used

Between the AI tools and your systems. Every request passes the same rules, so a guardrail written once applies to Claude, ChatGPT and Copilot alike.
In code hooks

For coding agents

Scripts that run every time a coding agent is about to act, for example before it runs a command. They can block the step outright. Read more in our guide to Claude Code hooks.
Writing them

How to write a guardrail that works

One rule, one sentence
A guardrail that needs a paragraph to explain will be applied unevenly. Write what may never happen, in plain words.
Say what to do instead
“Never delete in bulk; archive the one record the person named” works better than “never delete”, because the agent knows the way forward.
Choose strict or advisory
Make a guardrail strict only where a mistake cannot be undone. Too many strict rules and people go around them.
Review what fires
Look at which guardrails block things each month. A rule that fires often shows a real need, or a rule written too wide.
With Deployed OS

How Deployed OS handles it

In Deployed OS an admin writes the company’s guardrails once and marks each one strict or advisory. They come with every skill and apply in Claude, ChatGPT and Copilot alike. The platform refuses a change that breaks a strict guardrail, and the AI tells the person when a request breaks an advisory one. That is what lets us run our own coding agent on its own.

This is one of five controls every company needs for its agents. See all five in our guide to AI agent governance.

More on agent governanceThe full guide
FAQ

Questions about AI agent guardrails

Company rules that hold whatever an AI agent is asked: actions it may never take, steps that always need a person, and risks it must warn about. They apply to every agent, not one prompt at a time.

Rules and checks around an AI system that keep it within set limits. For a company using AI agents, the most useful guardrails are business rules, such as never deleting in bulk or never sending without approval, applied in every AI tool.

A strict guardrail stops the action, whatever the request. An advisory guardrail warns the person and lets them continue if they confirm. Strict suits mistakes that cannot be undone; advisory suits judgement calls.

Where every agent has to pass them. Rules in a prompt or in one AI tool’s settings are easy to miss. Rules in the layer between your AI tools and your systems hold whichever tool the agent runs in.

Good ones speed them up. With clear rules on what may never happen, a company can let agents do more on their own, because the worst mistakes are already ruled out.