How Do You Set Up Human Approval for AI Agent Actions?
Set up human approval for AI agent actions: list risky ones, then use ask rules in Claude Code, approval policies in Codex and approvals.mode in Hermes.
Reviewed by WaveBrain Operations TeamReviewed 9 min read
The short answer
You set up human approval for AI agent actions by listing the actions that are hard to undo, then configuring the agent itself to stop and ask before those actions run: ask rules in Claude Code, an approval policy in Codex and approvals.mode in Hermes. Instructions alone are not enough, because the model can ignore them. Keep a record of what ran, so you can tighten or relax the rules later.
Most owners who hand work to an AI agent want the same thing: let it do the routine work on its own, and make it stop and ask before anything that can't be taken back. That is what people mean by human-in-the-loop approval. The good news is that the main agent tools already have the controls built in. The hard part is deciding what should need approval and setting it up so it actually holds.
This guide is for small teams and solo founders who run agents like Claude Code, Codex or Hermes. It covers which actions to gate, how to configure approval in each tool, and how to keep approvals from turning into a button you click without reading.
What is human approval for AI agent actions?#
Human approval means the agent pauses before a chosen action, shows you what it's about to do and only goes ahead if you say yes. If you say no, or nobody answers, the action doesn't run.
OWASP, the security community behind the Top 10 for LLM applications, lists missing approval as one of the three causes of "excessive agency" (LLM06:2025). Its advice is to "utilise human-in-the-loop control to require a human to approve high-impact actions before they are taken." The Model Context Protocol, which most agents use to call tools, says the same thing in its spec: "there SHOULD always be a human in the loop with the ability to deny tool invocations."
Approval is one layer of three. Limiting which tools an agent has decides what it can do at all, approval decides what it must ask about, and a record shows what it actually did. Our guide to giving an AI agent access to tools safely covers the first layer.
Which AI agent actions should need human approval?#
Anything that is hard to undo, costs money or reaches people outside your team should need approval. Reads, searches and drafts usually don't, because nothing changes until someone acts on them.
| Action | Needs approval? | Why |
|---|---|---|
| Reading files, searching, research | No | Nothing outside the chat changes |
| Writing a draft for you to review | No | You review it before it goes anywhere |
| Editing code in a branch | Usually no | Easy to review and revert |
| Pushing to main, deploying, releasing | Yes | Reaches users right away |
| Deleting files, records or accounts | Yes | Often can't be undone |
| Payments, refunds, price and budget changes | Yes | Moves money |
| Emails or posts to customers or the public | Yes | Can't be unsent |
| Changing settings, permissions or DNS | Yes | Can break other systems |
A useful test: if you'd want to know about it the same day when a new human hire did it, it needs approval for an agent too.
Why aren't instructions enough to make an agent ask first?#
Instructions shape what the agent tries, but they aren't enforced. A line in a prompt saying "always ask before deploying" can be skipped when the model misreads the task, runs out of context or gets misleading input from a web page or file.
Claude Code's permissions docs make the distinction directly: "Permission rules are enforced by Claude Code, not by the model. Instructions in your prompt or CLAUDE.md shape what Claude tries to do, but they don't change these rules." The same logic applies to every agent: put the approval step in the tool's settings, where the agent can't talk its way past it.
How do you set up human approval, step by step?#
Start with a short list and the strictest setting you can live with, then loosen it as the record shows which prompts are always safe.
- List the agent's high-impact actions using the table above: the commands, MCP tools and accounts that can deploy, delete, pay or publish.
- Pick the approval setting in the agent itself (see the next section for Claude Code, Codex and Hermes).
- Add rules that always ask for the actions on your list, even if a broader rule allows similar ones.
- Decide what happens when nobody is there to answer, for scheduled and headless runs. The safe default is deny.
- Give each agent its own key or login, so an approved action can be traced to the agent that ran it.
- Have the agent record every action with an effect outside the chat, approved or not, in one place.
- Review the record weekly: remove prompts that are always approved and safe, and add prompts where something slipped through.
Step 4 is the one people miss. An agent running on a schedule at 3 a.m. can't wait for your answer, so the tool must either deny the action or skip it, never approve it by default.
How do Claude Code, Codex and Hermes handle approvals?#
All three ship with approval controls, but they work differently. Claude Code uses permission modes plus allow, ask and deny rules; Codex combines a sandbox with an approval policy; Hermes checks shell commands against a list of dangerous patterns.
| Agent | Where you set it | Safe default | Mode to avoid outside a sandbox |
|---|---|---|---|
| Claude Code | permissions.defaultMode and permissions.ask in settings | default (Manual) mode: asks before shell commands and file edits | bypassPermissions (--dangerously-skip-permissions) |
| Codex | approval_policy and sandbox_mode in ~/.codex/config.toml | workspace-write sandbox with on-request approvals | --dangerously-bypass-approvals-and-sandbox (--yolo) |
| Hermes Agent | approvals.mode in ~/.hermes/config.yaml | smart, with cron_mode: deny | approvals.mode: off or --yolo |
Claude Code. In the default Manual mode, Claude Code asks before shell commands and file edits; reads inside the working directory run without asking. For your high-impact list, add ask rules. The docs say ask rules "prompt for confirmation when Claude tries to use the specified tool", and rules are checked in the order deny, then ask, then allow, so "a matching ask rule prompts even when a more specific allow rule also matches the same call." MCP tools are named mcp__<server>__<tool>, so you can ask before a single tool on one server. For scripts and CI, the dontAsk mode denies anything that would prompt instead of waiting. The docs reserve bypassPermissions for "isolated containers and VMs only."
Codex. Codex separates what it can technically do (the sandbox) from when it must stop and ask (the approval policy). OpenAI's docs describe the default as --sandbox workspace-write --ask-for-approval on-request: Codex "can read files, make edits, and run commands in the workspace" and "requires approval to edit outside the workspace or to access network." By default "the agent runs with network access turned off." The old untrusted approval policy is retired; for approval on every command not covered by a rule, the docs now point to trust_level = "untrusted" for a project in ~/.codex/config.toml. The flag that removes both layers is marked "not recommended."
Hermes Agent. Hermes checks each command against a curated list of dangerous patterns before it runs. In smart mode, the default, a second model judges the risk: low-risk commands are approved, clearly dangerous ones are denied and uncertain ones come to you. manual mode always asks for dangerous commands. In the terminal you choose once, session, always or deny, and deny is the default; on messaging platforms you reply yes or no. Unanswered prompts time out after 300 seconds by default, and cron jobs deny dangerous commands unless you set cron_mode: approve. A user-editable approvals.deny list blocks matching commands even in --yolo mode.
One limit to know: these controls gate what the agent does through that tool. If an agent holds a full-access key to your payment or email account, an approval prompt in the agent doesn't stop a script that uses the same key. Narrow the key too.
How do you stop approvals from becoming rubber stamps?#
Keep the number of prompts small and make each one easy to read. If an agent asks twenty times a day for the same harmless command, people start clicking yes without looking, and the approval step stops protecting anything.
- Approve routine commands permanently once you've seen them run safely many times, and keep prompts for the actions on your list.
- Prefer "once" over "always" for anything on the high-impact list.
- Read the full command or request before approving. Hermes, for example, won't ask you to approve a messaging command you can't read in full.
- Have the agent draft first for public or customer-facing work: a draft email or post that you send yourself is an approval step that needs no configuration.
- Check the record of approved actions in your weekly review, and tighten rules where an approved action turned out to be a mistake. Our guide on what to do when an AI agent makes a mistake covers that loop.
Where does WaveBrain fit?#
WaveBrain is the record behind your approvals. It's a hosted activity log: agents report each finished action, such as a deploy, a refund or a published post, and you read what every agent did in one place, so you can check what ran after you approved it and what ran without asking.
Agents connect through WaveBrain's MCP server, which gives them a log_action tool and tells them to call it after any action with an effect outside the chat. Each entry has a title, details of what changed and the result, the agent's name, a project and an optional link, marked as a success or a failure. Scripts and scheduled jobs log the same fields with one REST request. Slack alerts can be limited to sensitive actions, such as deploys, publishes, payments, deletions and config changes, so a teammate sees high-impact work as it's logged. Our guide to Slack alerts for AI agents shows the setup.
Be clear about what it isn't. WaveBrain isn't an approval system: it doesn't pause, approve or block any action, so the settings above still come from your agent. It records actions after they happen, and only the ones agents report, so an agent that skips log_action leaves no entry. It isn't LLM tracing and doesn't record prompts, responses or token costs. It isn't a tamper-proof audit trail, and it doesn't filter secrets from the text agents write on the server, so entries should read like commit messages. The Free plan includes 1,000 actions a month, 7-day history and 2 API keys. Pro is $12 a month for 50,000 actions, 90-day history and 50 API keys. You can start free with no credit card.
Frequently asked questions#
What does human-in-the-loop mean for AI agents?#
It means a person must approve certain actions before the agent can take them. OWASP recommends it for high-impact actions, and the MCP spec says a human should always be able to deny tool calls.
Which actions should an AI agent never take without approval?#
Deploys and releases, deletions, payments and refunds, emails or posts to customers or the public, and changes to settings, permissions or DNS. Anything hard to undo belongs on the list.
Can I require approval for just one MCP tool?#
Yes, in Claude Code. Add an ask rule with the tool's full name, mcp__<server>__<tool>, and Claude Code prompts before that tool runs, even if an allow rule also matches it.
What happens to approval prompts in scheduled or headless runs?#
Nobody is there to answer, so set the tool to deny. Hermes cron jobs deny dangerous commands by default, and Claude Code's dontAsk mode denies anything that would prompt.
Does WaveBrain approve or block agent actions?#
No. WaveBrain records the actions agents report after they happen, so you can review them. Approvals and blocks come from the agent's own settings.
Sources#
- OWASP Top 10 for LLM Applications: LLM06:2025 Excessive Agency
- Model Context Protocol specification: Tools
- Claude Code docs: Configure permissions
- Claude Code docs: Permission modes
- OpenAI Codex: Agent approvals and security
- Hermes Agent docs: Security
- WaveBrain homepage: what gets logged and pricing