⚡ PromptLoot

Home › AI Agents

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

  1. Click Copy template.
  2. Paste into ChatGPT, Claude, Grok, Cursor, or your agent framework.
  3. Replace the [BRACKETED] parts with your details.
Sponsor this page · Reach builders who use AI daily. Get 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

A solid base system prompt for any tool-using AI agent.

AI Agent Run Postmortem Prompt (Find the Real Fix)

When an AI agent does something wrong, reconstruct what happened from logs and decide the right fix: a prompt edit, a rules-file change, a test, or a hard permission limit.

Customer Support Agent Prompt

A friendly, safe support bot that knows when to hand off to a human.

Agent Autonomy Rules: Stop Asking Permission for Reversible Work

A rules-file block telling Claude Code, Codex, or Cursor when to just act and when to ask, so it stops pausing for permission on safe, reversible steps.

Headless Agent Run Prompt: Guardrails for CI, Cron & claude -p

Task prompt and checklist for unattended Claude Code, Codex, or Gemini CLI runs in CI or cron: turn and spend caps, restated guardrails, a JSON report.

Browse all AI Agents templates

New on PromptLoot

Check Current Docs First: Stop Agents Using Outdated APIs

Rules that make Claude Code, Cursor, and Codex check your installed versions and current docs before calling any API, cite the version, and flag deprecations.

Minimal Diff Rules: Stop AI Agents Rewriting Unrelated Code

Rules for Claude Code, Cursor, and Codex: change only what you asked, no drive-by renames, refactors, or reformatting, and list every changed file.
PromptLoot Pro Pack · 200+ advanced templates, agent workflows, and Cursor rules bundles. Coming soon