When should a production agent pause for human approval?
HITL inserts a human approval, review, or correction step into the agent's flow, used wherever the cost of a wrong autonomous action exceeds the cost of human latency.
Imagine a new assistant who is brilliant but sometimes confidently wrong. For drafting an email, you let them go ahead because if a draft is bad you just rewrite it. For sending a wire transfer, you make them show you the form and wait for your signature, because once the money leaves you cannot pull it back. Human-in-the-loop is exactly that rule applied to an agent. For low-risk steps the agent acts on its own. For irreversible or high-stakes steps it pauses, shows you what it is about to do, and waits for a click. Sometimes you let it run by itself most of the time and only get pulled in when the agent itself says it is unsure.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define HITL as a human approval, review, or correction step in the agent flow. Name the three canonical patterns and what each fits. State the placement rule: cost of wrong action versus cost of latency. Close on implementation (Slack bots, durable workflows) and the rubber-stamping failure mode.
Real products, models, and research that use this idea.
- Cursor and other code agents pause for a human to review and accept each diff before it is written to disk, the canonical review-and-correct pattern for code.
- Klarna's customer service agent escalates ambiguous or high-value cases to a human agent rather than answering autonomously, an exception-only pattern.
- Slack approval bots are the default surface for approve-before-action: the agent posts a message with approve and reject buttons and the workflow blocks on the click.
- Inngest and Temporal provide durable workflow primitives that let an agent's state suspend on a human-input step for hours or days without holding worker capacity.
- Anthropic's computer-use demos pause for a human to confirm before performing high-risk actions like sending a message or submitting a form on a real website.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you stop an approval gate from becoming a rubber stamp?
QWhy does the implementation of HITL push you toward durable workflow runtimes rather than synchronous web requests?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Putting a human in the loop on every step. That collapses the value of agents back to the throughput of a human worker. The art is choosing the few steps where approval pays for itself.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.