Pushary
Blog
Guides

Human in the loop for AI agents, explained

Human in the loop means an AI agent runs on its own but pauses for a person to approve, correct, or stop the decisions that matter.

AG
Aadil Ghani
Founder, Pushary
May 20, 20265 min read
Share

Human in the loop means an AI agent runs on its own but pauses for a person to approve, correct, or stop the few decisions that actually matter. The agent does the work. A human stays the final say on the steps that are expensive, irreversible, or reach the outside world.

You are not babysitting every keystroke, and you are not handing the agent full autonomy and hoping. The agent auto-runs the safe, frequent stuff. It surfaces the rest to someone who can answer in seconds, then keeps a record of what got decided.

Key takeaways

  • Human in the loop = autonomous agent + a person who approves, corrects, or stops the small set of decisions that carry real consequences.
  • The three checkpoints are notify (tell me what happened), approve (pause and wait for yes or no), and record (keep an auditable trail of every decision).
  • The point is selective attention. Auto-approve reads, gate writes and pushes and spends, and never make a gate so noisy you rubber-stamp it.

What the loop actually is

An agent left fully on its own will eventually do something you would not have done: push to the wrong branch, delete a directory it misread, send an email, run up a bill. An agent that asks about everything is just a slow you. Human in the loop sits between those two failure modes.

The loop is the path a decision takes. The agent reaches a step. If the step is safe, it runs. If the step matters, the agent stops, a human gets the question, the human answers, and the agent continues or backs off based on that answer. The skill is in drawing the line: which steps run silently and which ones wait for a person.

The Human-in-the-loop manifesto (CC BY 4.0) lays out the principles this rests on. The short version is that oversight should be cheap, legible, and reserved for the decisions that warrant it.

The three checkpoints

A working loop has three jobs, and they are not the same job.

Notify. Tell the person what the agent did or is about to do. A push notification on a phone, a Slack message, a line in a feed. This is awareness, not a gate. It does not stop anything, it just keeps you from being surprised.

Approve. Pause the agent and wait for a yes or no before a risky step runs. This is the real gate. The agent blocks until a human answers, and the answer is binding: approve and it proceeds, deny and it stops. A good approve step also lets you deny with a reason so the agent can adjust instead of just halting.

Record. Keep an auditable trail of what happened and what was decided. Every gated action, who approved it, from which surface, and what changed. Notify and approve handle the moment. Record is what lets you answer "what did this agent do last week" without trusting memory.

Pings alone are the easy part. The harder and more valuable pieces are the permission policy that decides what gets gated and the audit trail that records every decision.

Where the line gets drawn

The line lives inside the tool, not just at the tool name. cat README.md and rm -rf build are the same shell tool with opposite consequences, so a policy that only sees "Bash" has to either ask about everything or trust everything.

So the safe default is: auto-approve proven read-only actions, pause on anything that writes, pushes, or spends, and hard-deny a short list of catastrophic commands. Pushary auto-approves a read-only floor by default, and that floor was not guessed at. It was decided from 1,721 real production questions, the actual stream of things agents stopped to ask about, with the commands that were read-only every single time pulled out. The result is that git status runs silently and git push waits for you.

A gate you always tap approve on is not a gate. The reason reads get auto-approved is to keep your attention sharp for the prompts that matter. If the agent stops on every ls, you learn to approve on reflex, and then you approve the one force-push the same way.

Honest limits

Human in the loop is only as strong as where the checkpoint runs. On the CLI agents (Claude Code, Codex, Gemini CLI, Cursor, Hermes) a hook enforces the gate before the tool runs, so a denied action genuinely does not execute. The Claude Desktop connector can notify and ask but cannot block a tool, because Desktop exposes no hook to gate at. That is enforced gating versus voluntary asking, and it is worth knowing which one you have.

A second limit: on iOS, tapping the notification deep link does not reliably open the answer screen, so the mobile experience uses a pending-questions inbox you open instead of a one-tap deep link. And on compliance, Pushary is GDPR-aligned but self-assessed, with no SOC2 or ISO certification to point at.

Common questions

What does human in the loop mean for an AI agent?

It means the agent runs autonomously but pauses for a human to approve, correct, or stop the decisions that are risky or irreversible. The agent handles the work; a person stays the final approver on steps that write, push, spend, or reach outside.

Is human in the loop the same as approving every action?

No. Approving everything trains you to stop reading the prompts. A good loop auto-approves safe read-only actions, gates the consequential ones, and denies a small catastrophic set, so your attention goes only where it is needed.

How is human in the loop different from a simple notification?

A notification tells you what happened but does not stop anything. Human in the loop adds a blocking approval step where the agent waits for your yes or no, plus a recorded trail of the decision. Notify is awareness; the loop is control.

Where do the checkpoints run?

For CLI agents a hook enforces the gate before the tool executes, so denials actually block. For the Claude Desktop connector the checkpoints are notify-and-ask only, since Desktop has no hook to enforce a block.

If you want the loop on your own agents, the docs on human in the loop walk through setup, and the overview of what Pushary does for AI agents shows the full control panel. When you are ready to put it on real work, see pricing.

AG
Aadil Ghani
Founder, Pushary

Building Pushary so an AI agent can reach you on your phone and wait for a yes before it does something you would not want.

Read next

Guides

What an AI agent audit log should capture for teams and compliance

The fields a coding-agent audit record needs to be worth keeping, and the honest line on what GDPR-aligned and self-assessed actually means.

Jun 27, 20265 min readAadil Ghani
Guides

Who is accountable when an AI agent makes a mistake?

An agent has no accountability of its own. The human who ran it owns the outcome, which is why a record of who approved what matters.

Jun 25, 20264 min readAadil Ghani
Guides

How to run multiple AI agents at once without losing track

The workflow and the board for running concurrent agent sessions without losing track of which one needs you.

Jun 22, 20264 min readAadil Ghani

Get a push the moment your agent needs you

Approvals, done alerts, and a kill switch for Claude Code, Codex, Cursor, and the rest. It takes a couple of minutes to set up.