Human-in-the-Loop (HITL)
A governance pattern that pauses an AI agent before high-impact actions—such as payments, database mutations, or external sends—for human review, edits, or approval before resuming
Table of Contents
Structure Diagram
What is Human-in-the-Loop (HITL)?
A governance pattern that pauses an AI agent before high-impact actions—such as payments, database mutations, or external sends—for human review, edits, or approval before resuming. It is a core concept in Agents & Protocols within AI / ML.
Core Principles
Because LLMs remain probabilistic and vulnerable to edge cases or prompt injection, Human-in-the-Loop (HITL) inserts explicit approval checkpoints before irreversible or high-impact tool calls. The agent persists its execution state, surfaces the proposed action for human review (Approve, Edit, or Reject), and resumes only after confirmation.
Practical Takeaways
- Tier approvals by blast radius: Asking for approval on every read-only step causes approval fatigue. Auto-allow safe reads and reserve mandatory HITL gates for writes, deletions, payments, and external communications.
- Show actionable diffs, not raw JSON: Present clear before/after diffs, affected counts, and concise rationale so reviewers can make informed decisions quickly.
- Back HITL with durable state persistence: Serialize agent checkpoints to a database so approvals arriving hours later resume seamlessly.
Notable Examples
- AI Coding Agents: Auto-run read-only searches while gating shell commands, production deploys, or
git pushbehind explicit user approval. - Finance & Refund Bots: Auto-approve small refunds under policy limits and route high-value refunds to a Slack approval card.
- Sales Outreach Copilots: Draft personalized emails autonomously but require human sign-off before sending.