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 evidence
On this page
  1. Design it like this
  2. What it looks like
  3. In the wild
  4. How to check it
  5. Trade-offs
  6. What they found
  7. Related studies
  8. Open questions
  9. FAQ
  10. Sources

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

DoAn agent drafts the email and shows “Send to 3 new recipients? Approve / Edit”, but files newsletters on its own with Undo.
Don'tThe agent sends, pays or deletes with no approval step and no undo.

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
    Terminal-style approval prompt before a shell command runs › run tests and fix failures Run this command? npm test › 1. Yes 2. Yes, and don't ask again 3. No, tell it what to do
    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
    Agent pauses and asks the user to confirm before submitting a form Ready to submit the form? Review the details before I continue. Confirm Take over
    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.

Sources

  1. Related study, not countedPrinciples of mixed-initiative user interfacesEric Horvitz (1999). CHI 1999.Evidence type: principles · Quote: Principle 5
  2. Related study, not countedGuidelines for Human-AI InteractionSaleema Amershi, Dan Weld, Mihaela Vorvoreanu, et al. (2019). CHI 2019.Evidence type: guidelines · Quote: Guidelines G8 and G9Also cited in: How do you set user expectations for an AI that makes mistakes?
  3. 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).Evidence type: system evaluation · Quote: Figure 8 captionAlso cited in: How should users and AI agents share control of a task?