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.
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
Related terms
Least privilege for agents, MCP host, Prompt injection, Tool allow-list
Sources
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 - Page: https://agentsfordevs.com/glossary/human-in-the-loop
- Markdown version: https://agentsfordevs.com/glossary/human-in-the-loop.md
- Reuse: quote or summarize with a link to this page. Reuse terms