Action approval gate

The agent pauses before a consequential step and presents a decision-ready packet to a human.

Ticket #4821Duplicate charge · Dana Ortiz Paused for approval
MMilky agent run
  1. Read ticket #4821
    Customer reports being charged twice
  2. Matched invoices #8821 and #8822
    Same amount, 2 minutes apart
  3. Refund $1,240 to Dana Ortiz
    Waiting for your approval
  4. Reply to the customer
  5. Close the ticket
Needs your approval Denied by default in 57:00
Send a $1,240 refund to Dana Ortiz?
Why
Charged twice on 14 Aug: invoices #8821 and #8822.
Evidence
Same card, same amount, 2 minutes apart.
If wrong
Reversible for 24 hours, then final.

Nothing has been sent. The run waits here until someone decides.

Try it: Approve, edit or reject the refund, and watch the run continue from the paused step.

In the wild

How one product ships this pattern. Click a screenshot to enlarge it.

VS Code chat card asking 'Fetch web page?' for an IETF URL, with a prompt-injection warning, an Allow and Review button whose dropdown offers to allow requests to this URL or the whole domain, and a Skip button.
GitHub Copilot
Before fetching a URL, Copilot's agent pauses for approval and offers to allow it once, for this page, or for the whole domain.
Source: VS Code release notes ↗

When to use

Any irreversible or externally visible action: send, publish, delete, charge, deploy, grant access.

Seen in

OpenAI Agents SDK approval flow, Zapier agent approvals, StackAI HITL steps, Copilot PR gates.

For engineers

Approval must happen before side effects, and the run must resume from the same state, not restart.

Build prompt

A neutral, component-only prompt for a coding agent. Edit the stack block or anything else to fit your project, then copy it.

Download this prompt as Markdown, or every prompt as JSON for an agent.

Critique checklist for governors

0 of 4 checked

These questions apply to every pattern in this family. Ticks are saved in this browser.