"Just make it ask first" sounds like the safest setting. In practice, an agent that asks about everything trains you to click yes without reading, and then the one prompt that mattered gets the same reflex. Approval is a security control with a well-known failure mode: approval fatigue. The goal is fewer prompts that mean more.

Decide by consequence, not by tool

The same tool can be harmless or dangerous depending on what it does. Sort actions by their effect:

EffectExamplesDefault
Read-only, localRead files, run tests, git diffRun automatically
Reversible, localEdit files in a repo with version controlRun, review the diff after
Leaves your machineSend an email or message, publish, push, postAsk
IrreversibleDelete data, force push, drop a table, destroy infrastructureAsk, every time
Costs moneyPurchases, paid API calls at scaleAsk
Changes accessGrant permissions, rotate keys, change DNSAsk
PersistsCreate a scheduled job, a webhook, a standing triggerAsk

A useful reference list: Claude Code's auto mode classifier blocks, by default, things like curl | bash, sending sensitive data to external endpoints, production deploys, granting IAM or repo permissions, force pushes, terraform destroy, and merging a pull request no human approved. That's a good starting set for any agent.

Approve the parameters, not the verb

"Send an email" isn't the decision. Who it goes to, and what it says, is. An injected instruction usually doesn't change the tool; it changes the arguments: a different recipient, a different branch, a bigger amount.

  • n8n's human review shows the reviewer which tool the agent wants to use and with what parameters, and the tool runs with exactly those inputs if approved.
  • In Claude Code's auto mode, approving in conversation works best when you name the specifics. "You can force-push" may leave the block in place; naming the branch is clearer. An approval covers that one action, not the next one.

When you get a prompt, read the arguments: recipient, path, branch, amount, domain. If the prompt doesn't show them, it isn't giving you enough to decide.

Hard rules beat soft boundaries

Telling an agent "don't push to main" in chat is a soft boundary. In Claude Code's auto mode, the classifier rereads boundaries from the transcript on each check, and its docs warn that one can be lost if context compaction drops the message that stated it. For a guarantee, write a deny or ask rule. Rules live in settings and don't depend on the conversation.

Rule of thumb: anything you'd be upset to see happen belongs in a rule, not a sentence.

AI reviewers are a second opinion, not a floor

Some agents use a second model to judge actions. Claude Code's auto mode classifier reviews actions before they run; Hermes's default smart mode asks an auxiliary model to rate risk, auto-approving low-risk commands, denying dangerous ones and escalating uncertain ones to you. Both cut prompts a lot. Claude Code's own docs say auto mode reduces prompts but doesn't guarantee safety.

Treat model-based review as probabilistic: good at catching most mistakes, not something to bet your production database on. Keep deterministic floors underneath it:

  • Claude Code never auto-approves explicit ask rules, in any mode, and prompts for recognized critical-path removals like rm -rf ~ even in bypassPermissions unless you deliberately turn that prompt off.
  • Hermes has a hardline blocklist (disk wipes, fork bombs, raw block-device writes) that holds even with approvals off.

Unattended runs should deny by default

A scheduled job at 3 a.m. has nobody to ask. The safe default is deny, and let the agent find another way:

  • Hermes denies dangerous commands in cron, single-query and webhook runs by default, and an approval that times out is denied.
  • Claude Code's dontAsk mode denies anything not pre-approved by a rule. In a non-interactive run, blocked actions simply don't run while the agent keeps working, so check the output for what it skipped.

For unattended work: pre-approve the exact, narrow set of actions the job needs, and deny everything else.

Choose who can approve

An approval is only as good as the person giving it:

  • Route approvals to the owner of the consequence. n8n lets the agent chat in one place and send approval requests to a specific person in Slack, Teams or email.
  • Narrow approvers in shared chats. In a group chat, Hermes lets you limit who can answer an approval, for example to the requester and admins, so a random member can't approve someone else's action.

Bypass modes are sticky

Every agent has a "stop asking" switch: Claude Code's bypassPermissions, Hermes's YOLO mode. The risk is forgetting it's on. Hermes saves YOLO with the session, so it survives a restart, which is why it shows a red banner and a status-bar warning. Use bypass modes only in disposable environments, with the sandboxing from the previous article around them.

Approval checklist:

  • Actions sorted by effect: anything that leaves, deletes, spends, grants or persists asks first
  • Read-only and reversible local actions run without prompts, to keep the real prompts rare
  • Every "never do this" written as a deny or ask rule, not only said in chat
  • Model-based review backed by hard rules for the worst cases
  • Unattended jobs pre-approved narrowly, with everything else denied
  • Approvals routed to the right person, and bypass modes off outside throwaway environments

Go deeper: Sandboxing AI agents · Least privilege for AI agents · Claude Code permission modes · Prompt injection