Learn Agentic Patterns
CoursesInterviewSchoolVideosAI agent videosAI now
Learn Agentic Patterns

Learn agentic AI, then get interviewed on it. A free course, four job paths, a daily broken agent, and the interview.

learnagenticpatterns.com

Navigation

HomeThe courseThe interviewPatterns (developer track)PM trackBlogCareer GuideAboutSign Up

Connect

Cheat sheet (free PDF)Reskilling guideLinkedIn (Mousa Jawaheri)

© 2026 learnagenticpatterns.com

Privacy PolicyTerms of Service

Based on “Agentic Design Patterns” by Antonio Gullí

> All Patterns

[01]Prompt Chaining[02]Routing[03]Parallelization[04]Reflection[05]Tool Use[06]Planning[07]Multi-Agent Collaboration[08]Memory Management[09]Learning & Adaptation[10]State Management (MCP)[11]Goal Setting & Monitoring[12]Exception Handling & Recovery[13]Human-in-the-Loop[14]Knowledge Retrieval (RAG)[15]Inter-Agent Communication (A2A)[16]Resource-Aware Optimization[17]Reasoning Techniques[18]Guardrails & Safety[19]Evaluation & Monitoring[20]Prioritization[21]Exploration & Discovery[22]Boundary Translation
HomeCurriculumHuman-in-the-Loop
Pattern [13]

Human-in-the-Loop

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

[13]

TL;DR

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."

SWE: Manual Approval Gates
Architecture Flow
agentgate
Request AnalyzeragentRisk AssessorgateHuman Approval Ga…gateAction Executoragent

> 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."

Before: CI/CD Approval Gate

CI/CD Approval Gate
1# Static Approval Step (YAML pipeline)
2# steps:
3# - name: Wait for approval
4# uses: manual-approval-action
5# # Blocks until button click

After: Agentic Human-in-the-Loop

Agentic Human-in-the-Loop
1# The Agent proactively asks
2if action.risk_level > threshold:
3 # 'human_tool' pauses execution and sends a msg to Slack/UI
4 user_decision = human_tool.ask(
5 "I am about to delete a production database. Proceed?"
6 )
7 if user_decision == "Y":
8 execute()
9 else:
10 agent.think("User rejected. Aborting task.")

Traditional SWE

Manual Approval Gates

≈maps to

Agentic Pattern

Human-in-the-Loop

≈How They're Similar

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.

> Production Considerations

01

The ultimate guardrail for high-stakes actions (writes, payments, public posts).

02

Introduces massive latency (human speed vs. machine speed). Use asynchronous notifications (webhooks/Slack) rather than blocking the thread.

💡

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.

BuildBuild an Approval Workflow. Create a system where an agent processes a refund request, but high-value actions require human approval before execution.

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.

Next Pattern

[14] · Knowledge Retrieval (RAG)