---
title: What is human-in-the-loop for AI agents?
type: glossary
url: https://agentsfordevs.com/glossary/human-in-the-loop
markdown: https://agentsfordevs.com/glossary/human-in-the-loop.md
publisher: Agents for Devs
author: Agents for Devs desk
reviewed_by: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: Agents for Devs. "What is human-in-the-loop for AI agents?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/human-in-the-loop
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/glossary/human-in-the-loop
term: Human-in-the-loop (HITL)
aliases:
  - HITL
  - tool call approval
  - human approval
---

# What is human-in-the-loop for AI agents?

Human-in-the-loop (HITL) is a control in which a person reviews an agent's proposed action, such as an MCP tool call and its arguments, and can deny it before it takes effect.

**Definition:** Human-in-the-loop (HITL) is a control in which a person reviews an agent's proposed action, such as an MCP tool call and its arguments, and can deny it before it takes effect.

```json
{
  "permissions": {
    "allow": ["mcp__github__get_*"],
    "ask": ["mcp__github__merge_pull_request"]
  }
}
```

In Claude Code's settings, that config lets the GitHub server's `get_` tools run without a prompt while a merge always stops for a person. Rule syntax follows Anthropic's permissions docs, where deny rules are checked first, ask rules second and allow rules last. Other hosts express the same idea through approval modes.

MCP's tools spec (version 2026-07-28) asks for this directly: "there SHOULD always be a human in the loop with the ability to deny tool invocations." It tells clients to prompt for confirmation on sensitive operations and to show tool inputs before calling the server, to prevent data exfiltration. An approval prompt that hides the arguments checks very little.

Approving every call wears people down, so most setups gate by risk: reads run, while writes and external sends wait. OWASP's LLM06:2025 entry recommends human approval for high-impact actions. For agents that write code to call tools, MCP's client guidance adds that approving a script is not blanket approval for every call it makes.

**See also:** [Least privilege for agents](/glossary/least-privilege-agents) · [Prompt injection](/glossary/prompt-injection) · [How coding agents ask permission](/guides/coding-agent-permissions) · [Claude Code MCP config](/guides/claude-code-mcp)

## Sources

1. [Tools (MCP specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/server/tools)
2. [Client Best Practices (version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/docs/2026-07-28/develop/clients/client-best-practices)
3. [Configure permissions, Anthropic (Claude Code docs)](https://code.claude.com/docs/en/permissions)
4. [LLM06:2025 Excessive Agency, OWASP Gen AI Security Project](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/)

## Changelog

- 2026-12-06: First published.

## Cite this page

Agents for Devs. "What is human-in-the-loop for AI agents?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/human-in-the-loop

- Page: https://agentsfordevs.com/glossary/human-in-the-loop
- Markdown: https://agentsfordevs.com/glossary/human-in-the-loop.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
