What Is Human in the Loop (HITL)? Definition and Examples
Human in the loop (HITL) means an AI system hands a decision or an action to a person before it goes ahead. The agent does the work up to a checkpoint, a person approves, edits or rejects it, and then the agent carries on. The term is also used in machine learning for people who label data or correct a model’s outputs so it learns from them.
Why it matters
Agents now send emails, change records, merge code and spend money. Most of those actions are easy to get right and some are expensive to get wrong. Human checkpoints let you hand over the routine work while keeping a person responsible for the calls that matter.
It’s also often a requirement. Rules for high-risk uses of AI, such as the EU AI Act’s article on human oversight, expect people to be able to understand, override and stop the system, and many companies’ own policies ask for a named person to sign off on what an agent sends or changes.
Human in the loop, on the loop and out of the loop
| Human in the loop | Human on the loop | Human out of the loop | |
|---|---|---|---|
| What the person does | Approves, edits or rejects before the action happens | Watches and can step in or stop the agent | Nothing during the run; reviews results later, if at all |
| When the agent waits | At each checkpoint | Never; it keeps going unless stopped | Never |
| Good for | Actions that are costly or hard to undo | High-volume work where mistakes are cheap to fix | Low-risk, well-tested, reversible work |
| Example | An agent drafts a refund; a person approves it | An agent triages tickets while a lead watches a dashboard | An agent tags incoming documents overnight |
Most real systems mix all three: no checkpoint for reading and drafting, monitoring for routine changes, and approval for the few actions that matter.
How it works in an AI agent
- The agent works until it reaches a checkpoint. The checkpoint is set by a rule (“ask before sending email”) or by the agent judging that it needs a decision.
- It pauses and asks the right person. The request shows what it wants to do, the options, and the context behind them.
- The person decides. Approve, edit, reject, or answer a question.
- The agent carries on with the decision, and the decision is logged.
In coding tools, the same idea shows up as permissions inside the agent harness: safe commands such as running tests go ahead on their own, while pushing code or deleting files asks first. Plan modes are a checkpoint too: the agent shows its plan before it changes anything.
Examples
- Customer support: the agent drafts a reply or a refund; a support lead approves before it goes out.
- Finance: the agent matches invoices and flags exceptions; a person approves payments above a threshold.
- Software: the agent writes the change and runs the tests; a developer reviews the pull request before it merges.
- Sales and marketing: the agent drafts outreach or a campaign; a person approves what reaches customers.
- Machine learning: people label training data or rate a model’s answers, and the model is trained on their judgments.
Where to put the checkpoints
The useful question is what it costs if the agent gets this wrong. Reading data, drafting and summarizing rarely need approval. Writing to a system of record, contacting a customer, moving money or shipping code usually do. A checkpoint on every step teaches people to click “approve” without reading, which is worse than none.
A few rules of thumb:
- Gate the irreversible. Anything that can’t be undone, or reaches outside the company, gets a checkpoint.
- Batch the routine. Let people approve a group of similar low-risk actions at once, or review them after the fact.
- Route to the right person. The question should go to whoever owns the decision, not to whoever started the agent.
- Loosen over time. When a type of action has been approved unchanged many times, consider moving it from in the loop to on the loop.
Designing a good checkpoint
A good checkpoint shows the person exactly what they’re deciding: the options, what each one leads to, and the context behind it. If they have to read the whole transcript to decide, the agent hasn’t done its job. It should also be easy to say “not this, do that instead”, so the person can steer the work rather than only approving or blocking it.
How elvex relates
In elvex, agents ask the right person when they reach a decision, and the question arrives with the options and context attached. Anything that writes to your branch comes to you first. On a team, each person’s agent brings that person only their own decisions, so people spend their time deciding instead of reading transcripts. See Claude Code multiplayer.
Related
-
What does human in the loop mean in AI?
An AI system hands a decision or action to a person before it goes ahead: the person approves, edits or rejects it, and the system carries on. -
What is the difference between human in the loop and human on the loop?
In the loop, the agent waits for a person’s approval before acting. On the loop, the agent keeps going while a person watches and can step in or stop it. -
What is an example of human in the loop?
An AI agent drafts a customer refund and a support lead approves it before it’s sent, or a coding agent writes a change and a developer reviews the pull request before it merges. -
When should an AI agent ask a human?
Before actions that are costly or hard to undo, or that reach outside the company: sending to customers, moving money, changing a system of record or shipping code. -
Does human in the loop slow AI down?
It can, if every step needs approval. Put checkpoints only where a mistake is expensive, batch routine approvals, and send each question to the person who owns the decision.