Lab

Human in the loop

Human in the loop: A point in an agent loop where the harness pauses and a person must approve, change or refuse an action before it runs.

Some actions are easy to undo, like reading a file. Others are not, like sending an email, deleting a folder or paying a bill. A human in the loop is a rule in the harness: before certain tool calls run, the loop pauses and a person sees exactly what is about to happen. They can approve it, change it or refuse it.

The pause works because of where it sits. The model outputs a tool call, but the harness is the one that runs it, so the harness can hold the call until someone says yes. A refusal is fed back into the context like any other result, and the loop carries on or stops.

Standards and security guidance ask for this. The Model Context Protocol specification says hosts “must obtain explicit user consent before invoking any tool”. OWASP’s guidance on prompt injection recommends human-in-the-loop controls for privileged operations, because no wording can be trusted to stop a planted instruction.

Asking has a cost. Every pause takes a person’s time, and a person asked too often starts approving without reading. A good harness asks rarely and clearly: only for actions that reach outside, cost money or cannot be undone, with the full details on screen. Everything else is handled by narrower tools and tighter permissions, so there is less to ask about.

The explainer adds an approval point to a scripted run, and counts how often a person would be asked.

See it working

Explore it in How an AI agent works

Step through a model calling tools in a loop, and see how the harness around it decides what it sees, what it may touch and when it stops.

Open the explainer