When should an AI agent ask for confirmation before acting?
Ask before anything irreversible or uncertain, and act alone only on confident steps that are easy to undo.
Early signal, tested with LLMs.
Based on one study from 2025, run in a lab or online setting. Two related studies are shown but not counted.
One builder-run evaluation of an LLM agent, mostly with simulated users. Design guidelines are listed as related, not counted. Treat it as a hypothesis.
How we rate evidenceOn this page
Design it like this
Our recommendations, based on the studies below.
Ask first on uncertain or costly steps; auto-act only when confident and reversible.
- Do put an explicit approval step before irreversible actions (send, pay, delete).Our recommendation
- Do let users review and edit the plan before the agent starts.Our recommendation
- Do ask one short question when the goal is unclear.Our recommendation
- Don't confirm tiny, instantly undoable actions like autocomplete.Our recommendation
What it looks like
In the wild
Shipped products that use this pattern. Illustrations only: they weren't part of the studies and don't count toward the rating.
- Claude Code: In its default mode, the coding agent asks for approval before running shell commands or editing files, while file reads need no approval. Source, checked 2026-10-19
Simplified sketch of Claude Code's pattern, not a screenshot. Official page - Gemini tasks: Gemini asks for review and confirmation before sending communications, modifying data, making purchases or submitting web forms. Source, checked 2026-10-19
Simplified sketch of Gemini tasks's pattern, not a screenshot. Official page
How to check it in your product
Log how often users undo or override auto-actions. A high undo rate on a step means it should ask first; near-zero confirms on a prompt means it could auto-act.
Trade-offs and when it doesn't apply
Unsourced points are our recommendation.
- Asking too often turns into nagging; every source frames interruption as a cost. Our recommendation
- For tiny, instantly undoable actions (e.g. autocomplete), asking costs more than an occasional wrong guess. Our recommendation
- Magentic-UI's gains came mostly from simulated users, so real-user benefit is less certain.
What they found
With a person able to step in, an agent completed far more tasks
Mozannar et al. (2025) system evaluationPreprint
- Setup
- A GPT-4o web agent with co-planning, action approval for irreversible steps, and handover to the user, run on 162 GAIA validation tasks. A qualitative study with 12 users explored the features.
- Result
- A simulated user with side information raised task completion from 30.3% (autonomous) to 51.9%, while the agent asked for help in only 10% of tasks.
- Caveat
- The user was simulated, and this is a system paper by its builders, not an independent test.
Quote from the paper
“Magentic-UI implements an action guard system to ensure irreversible or potentially harmful agent actions are reviewed by the human user.”
Mozannar et al., 2025 · Figure 8 caption
Open questions
- Where should the “confident enough” threshold sit for different action types, and can it be learned per user?
- Do approval prompts keep working once users have clicked “Approve” a hundred times?
- How should an agent explain what it's about to do so the approval is informed, not a rubber stamp?
FAQ
Which agent actions need human approval?
Irreversible or potentially harmful ones, such as sending, paying or deleting. Magentic-UI routes these through an action guard so a person reviews them first.
Does keeping a human in the loop improve agent results?
In the Magentic-UI evaluation, a simulated user with side information raised task completion on 162 GAIA tasks from 30.3% to 51.9%, and the agent asked for help in only 10% of tasks. This was a builder-run test with simulated users.
For AI agents: rules in plain text
Sources
- Related study, not countedPrinciples of mixed-initiative user interfacesEric Horvitz (1999). CHI 1999.
- Related study, not countedGuidelines for Human-AI InteractionSaleema Amershi, Dan Weld, Mihaela Vorvoreanu, et al. (2019). CHI 2019.
- PreprintMagentic-UI: Towards Human-in-the-loop Agentic SystemsHussein Mozannar, Gagan Bansal, Cheng Tan, Adam Fourney, et al. (2025). arXiv preprint 2507.22358 (Microsoft Research, 2025).