Skip to content

Human in the loop ​

A design in which a person can see, approve, change or stop an AI system's action before it takes effect, instead of the system acting alone.

Agents are useful because they choose their own steps, and risky for the same reason. A person in the loop is the backstop for the steps that cannot be undone: sending money, deleting records, emailing customers, pushing code. The MCP Tools specification says that "there SHOULD always be a human in the loop with the ability to deny tool invocations", and that clients should ask for confirmation on sensitive operations and show tool inputs before calling the server. OWASP lists human approval for high-risk actions among the mitigations for prompt injection and excessive agencyExcessive agency: OWASP's name for an LLM application that can take damaging actions because it has more functions, permissions or autonomy than its task needs..

Example ​

A support agent drafts a refund of $480. Instead of calling issue_refund at once, the run pauses. A team lead sees the customer, the amount and the agent's reasoning, lowers the amount to $240, and approves. The run resumes and makes the call once, with the edited amount.

What makes it work ​

  • Pick the right steps. Asking for every call trains people to click "approve" without reading. Gate the actions that change things outside the system.
  • Show the real arguments. The person must see what will actually run, not a summary the model wrote.
  • Decide what a timeout means. An unanswered request should fail safe.

Common confusion ​

Human in the loop is not human review of logs afterwards. Review after the fact helps you learn; only a decision before the action prevents harm.

In L2M ​

All optional: an Approval Gate node pauses a run until a person decides, with timeouts and editable fields; Ask before write tools pauses before any MCP write tool an agent calls; and a tool policy rule can require approval for specific tools or arguments. See Approvals and the guide Human approval for agent tool calls.

Further reading ​

This website (not the L2M product) uses Google Analytics, only after you accept cookies. Cookie settings