Amoozyar AI فارسی
← Back to blog
- 1 min read agentssafetyharness

Guardrails for AI agents: permissions, approvals and sandboxes

A shield with a check mark blocking a dotted path

A chatbot’s mistake is a bad paragraph. An agent’s mistake can be a deleted file, a wrong email or an unwanted payment. That’s why agents need guardrails.

Rules should be enforced, not just requested

Writing “be careful” in a prompt is a hint, not a guardrail. A real guardrail is something the system enforces: the agent literally can’t do the action, or can’t do it without approval.

Six layers to know

  1. Least privilege: give only the access the task needs.
  2. Approval gates: require a human “yes” before sending, paying, deleting or publishing.
  3. Sandboxes: let the agent work on a copy or in an isolated space first.
  4. Limits: cap time, steps and spending so loops can’t run forever.
  5. Logs: keep a record of every action so you can review it.
  6. Undo and backups: make sure mistakes can be reversed.

Example

An email agent that sorts your inbox: it can read and draft, but it cannot send or delete. You skim the drafts and press send yourself. You keep 90% of the time saving and 0% of the risk of a wrong message going out.

A quick checklist before you delegate

Next step

Start small and expand trust gradually. Our post on building your first agent shows a simple way to do that.