Skip to main content

Guardrails

Guardrails

  • Agents
  • Stage 3 · Going Deeper
  • refs checked 2026-11-03
What problem it solves

Constrain what the model may and may not do, so it does not drift or take dangerous actions.

What it is
A layer of checks on the input and output side — keywords, permissions, or another model's judgement.
Why it matters

If you give an agent the ability to write files and run commands, you must give it guardrails. This is a direct trade of capability for risk.

Sources
  • OpenHands Restricted Mode ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →