AI Agent Guardrails Checklist: Prompt Rules vs. Tool Permissions
Reviews your AI agent's rules and moves every limit that matters (money, data, deletes, messages) out of the system prompt and into permissions and code.
Added · Updated
You are a safety reviewer for AI agents. A rule in a system prompt is a request the model can ignore, misread, or be talked out of. A limit in a tool, permission, or approval step is enforced. Help me put each guardrail in the right place. ## My agent - What it does: [e.g. support agent that can look up orders and issue refunds] - Model/framework: [e.g. Claude via API, OpenAI Agents SDK, LangGraph, Claude Code] - Tools and permissions it has: [LIST EVERY TOOL AND WHAT IT CAN TOUCH, e.g. refunds: any amount; email: any address; shell: full] - Who talks to it: [internal team / logged-in customers / anyone on the internet] ## Current system prompt and rules [PASTE] ## Step 1: List every limit Pull every rule that restricts behavior (amounts, recipients, files, data, actions, tone) into a table: rule, what goes wrong if it's ignored, severity (money / data loss / privacy / reputation / minor). ## Step 2: Decide where each one lives For each rule, pick one: - CODE OR TOOL LIMIT: enforced in the tool itself (max refund amount, allowlisted recipients, read-only DB user, path restrictions). - APPROVAL: the agent can propose it, a human confirms before it runs. - SANDBOX OR PERMISSION: the agent simply doesn't have the access (separate API key, no prod credentials, no network). - PROMPT ONLY: fine as a prompt rule because the worst case is minor (tone, formatting, style). Anything rated money, data loss, or privacy must NOT be PROMPT ONLY. ## Step 3: Output - The table with a "lives in" column and a one-line implementation note for each non-prompt rule (e.g. "refund tool rejects amount > 50 and returns NEEDS_APPROVAL"). - A trimmed system prompt that keeps only PROMPT ONLY rules and tells the agent what to do when a tool refuses (explain to the user, don't retry around it). - 5 adversarial test messages (prompt injection, social engineering, "my boss said it's fine") with the expected enforced outcome for each. - Gaps: any tool with more access than the job needs. Rules: be specific to my tools, assume the agent will eventually be tricked, and don't recommend anything that depends on the model remembering to behave.
How to use it
- Click Copy template.
- Paste into ChatGPT, Claude, Grok, Cursor, or your agent framework.
- Replace the [BRACKETED] parts with your details.
FAQ
Are system prompt guardrails enough for an AI agent?
No. A system prompt rule is a request, not a lock. Anything that can cost money, delete data, or leak private information should be limited in the tool, by permissions, or with a human approval step.
What should stay in the system prompt?
Tone, format, scope of conversation, and how to explain a refusal. Low-risk preferences are fine as prompt rules.
How do I enforce a refund or spending limit for an agent?
Put the limit in the refund or payment tool itself, so a request over the limit fails or returns a needs-approval status, no matter what the model asks for.
How do I test my agent's guardrails?
Send adversarial messages such as prompt injections and fake authority claims, and check that the tool or approval step blocks the action even when the model tries it. Keep them as regression tests.
Can I let an agent run unattended in CI or cron?
Yes, if the limits live outside the prompt: a read-only token by default, turn and spend caps, a job timeout, and a separate approved step for any write. The Headless Agent Run Prompt has a task prompt and run checklist for exactly this.
Get 3 new templates every week
Free. Unsubscribe anytime.Related templates
General AI Agent System Prompt
AI Agent Run Postmortem Prompt (Find the Real Fix)
Customer Support Agent Prompt
Agent Autonomy Rules: Stop Asking Permission for Reversible Work
Headless Agent Run Prompt: Guardrails for CI, Cron & claude -p
Browse all AI Agents templates