Pattern [13]

Human-in-the-Loop

Manual Approval Gates (CI/CD) / Maker-Checker Pattern / Two-Factor Authentication

> Agentic Definition

Integrating human oversight at critical decision points to validate agent actions, provide feedback, or disambiguate requests. The agent pauses execution and requests input from a human "Tool."

> Description

Integrating human oversight at critical decision points to validate agent actions, provide feedback, or disambiguate requests. The agent pauses execution and requests input from a human "Tool."

≈ How It Maps to Manual Approval Gates

Pausing a workflow for authorization or verification.

≠ Key Divergence

In Agentic systems, the human is treated as a "Tool" or an Oracle. The agent generates a prompt for the human ("I plan to send this email. Is it okay?"), and the human's response is injected back into the agent's context as a tool output. The interaction is conversational.

> Key Takeaway

Adapt: Design interfaces for the AI to "talk" to the human, not just the human to talk to the AI. The human is a component in the system loop.

Frequently Asked Questions

When should I use the Human-in-the-Loop pattern?

Integrating human oversight at critical decision points to validate agent actions, provide feedback, or disambiguate requests. The agent pauses execution and requests input from a human "Tool."

How does Human-in-the-Loop relate to Manual Approval Gates (CI/CD) / Maker-Checker Pattern / Two-Factor Authentication?

Pausing a workflow for authorization or verification. However, there is a key divergence: In Agentic systems, the human is treated as a "Tool" or an Oracle. The agent generates a prompt for the human ("I plan to send this email. Is it okay?"), and the human's response is injected back into the agent's context as a tool output. The interaction is conversational.

What are the production trade-offs of Human-in-the-Loop?

The ultimate guardrail for high-stakes actions (writes, payments, public posts). Introduces massive latency (human speed vs. machine speed). Use asynchronous notifications (webhooks/Slack) rather than blocking the thread.

Sign up to unlock code examples & production notes

Get full access to all 21 patterns with code comparisons, production considerations, and architecture diagrams.

No credit card required.