Concept / intent

A human in the loop only where the action bites

Your agents run the routine work on their own. Put a named person in the loop for the calls that actually cost something — refunds, payouts, posts, deploys — and let your policy wave the rest straight through.

request_clearancecb.guard({ action }, fn)refund.createcontent.publishcode.deploy
request_clearance policy v12 cleared sealed to record

The problem

Most "human in the loop" setups land in one of two ditches. Either someone has to confirm every step, so the agent is really just a slow clicker and you're the bottleneck. Or nobody's watching until it refunds the wrong order, posts something off-brand, or ships a migration at 2am that no one signed for. Same root problem, dressed two ways: the human is standing in the wrong spot.

You want a person in the loop for human-in-the-loop AI agents on the actions that bite, and nowhere else. That's not a checkbox you can flip. It needs a policy that judges each action on its own, a way to freeze an agent mid-call, a queue fast enough that the reviewer doesn't dread it, and a hard guarantee the agent can't just skip the wait. Build all that into every agent yourself and you've shipped a second product instead of the one you meant to.

How ClearedBy handles it

  1. 01

    The agent asks before it does anything real

    When your agent is about to issue a refund.create, fire a payout.send, publish a post, or run a code.deploy, it calls ClearedBy with the action and its context. That call blocks. No verdict, no side effect.

  2. 02

    Policy decides, per action

    Anything inside the rules you wrote clears in milliseconds and no person is touched. Cross a line you drew — an amount, a channel, a payee that just changed, an anomaly — and it's held, then routed to the right named human.

  3. 03

    The few that wait get a fast yes or no

    Reviewers clear, reject or send back from a keyboard-driven queue, Slack, or their phone. The agent only receives a short-lived credential once it's cleared, so even an agent that's gone off the rails has no way around the gate.

  4. 04

    The verdict gets sealed, and the rules tighten

    Every outcome — auto-cleared, signed off, or rejected — is hash-linked into a tamper-evident record bound to the person who signed it. As the evidence stacks up, ClearedBy points out which rules keep clearing and offers to loosen them, so review keeps shrinking.

What the gate sees
payout.send · £6,200 · vendor INV-2208 · ops-agent → held: above this agent's £2,000 limit · routed to D. Okafor · agent waiting on verdict

FAQ

Won't a human in the loop just slow my agent to a crawl?

Only if you put one in front of everything. Here the routine clears automatically in milliseconds and a person sees just the consequential few percent, so the agent keeps its speed on the work that doesn't need watching.

Where in the loop does the human actually sit?

Right between the agent deciding to act and the action happening. The call is held at the gate, and the side effect only fires after your policy clears it or a named person signs off.

How do I decide what needs a human and what clears itself?

You write the policy in plain terms: amounts, channels, action types, the anomalies you care about. Inside the lines clears, outside the lines holds — and you can start in shadow mode with nothing blocked to watch what would've been held before you enforce a thing.

Does this cover all my agents, or one framework at a time?

All of them. ClearedBy drops in as an MCP tool, wraps any function with guard(tool), and can catch events from platforms you already run like Shopify, GitHub and Meta — so the same loop sits across every agent regardless of how it was built.

What if the agent just acts without waiting for the verdict?

It can't. The credential to perform the action is only handed over after approval, so there's no path that skips the gate. And it fails closed: a hold nobody answers means the action simply doesn't happen.

Related use cases

Let your agents run. Inside the rules you set.

Your agents run the routine work on their own. Put a named person in the loop for the calls that actually cost something — refunds, payouts, posts, deploys — and let your policy wave the rest straight through.