Glossary security/

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.

Published
Read
1 min
Source
Markdown

Also called: HITL, tool call approval, human approval

{
  "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 · Prompt injection · How coding agents ask permission · Claude Code MCP config

Least privilege for agents, MCP host, Prompt injection, Tool allow-list

Sources

  1. Tools (MCP specification version 2026-07-28)Model Context Protocol modelcontextprotocol.io
  2. Client Best Practices (version 2026-07-28)Model Context Protocol modelcontextprotocol.io
  3. Configure permissionsAnthropic (Claude Code docs) code.claude.com
  4. LLM06:2025 Excessive AgencyOWASP Gen AI Security Project genai.owasp.org

Changelog

  • 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
Cite one section