WORKFLOW

Human in the loop for coding agents, and how to keep it fast

Why a human approval step still matters for Claude Code and Codex in 2026, which actions to allowlist, which to keep, and how to avoid rubber-stamping.

Short answer

A human approval step still matters for coding agents because it is the one control that understands intent, catches prompt injection, and stops irreversible actions. Allowlist safe, repetitive commands, keep a human click on pushes, deletions, network calls, secrets and anything outside the project, and keep approvals rare and readable so they never turn into rubber-stamping.

Coding agents in 2026 are good enough to run for long stretches without help, and both Claude Code and Codex now ship modes that ask you far less often. A human approval step still matters, but only for a small set of actions. The skill is choosing that set well and making each approval quick to read.

This article covers why the human step is still worth keeping, which actions deserve your click, which can be allowlisted, and how to stop approvals from becoming reflexes.

What does human in the loop mean for a coding agent?

For a coding agent, human in the loop means certain actions wait for an explicit decision from you before they run. In Claude Code this is the permission prompt; in Codex it is an approval request governed by approval_policy.

It is not the same as reviewing the final diff. Review happens after the work. An approval happens before an action that might be hard to undo, such as a push, a deletion or a network call.

Why does a human approval step still matter in 2026?

A human approval step still matters because the person at the keyboard is the only one who knows what was actually intended. Three reasons stand out.

Intent. The agent knows your prompt, but not the context around it: that the staging database is shared with a colleague, that this branch must not be pushed yet, that the client asked for no new dependencies. A one-second look catches what no rule can encode.

Prompt injection. Agents read content you did not write: READMEs, issues, dependency code, web pages. OWASP's LLM01:2025 Prompt Injection entry recommends human-in-the-loop controls for privileged operations as a mitigation. A human who sees an unexpected curl to an unknown host right after the agent read a web page can stop it.

Irreversibility. Most mistakes in a git repo are cheap to undo. A force push, a deleted untracked folder, a sent message or a production migration are not. Those few actions are where a click pays for itself.

The tools themselves agree. Claude Code's security docs state that you are responsible for reviewing proposed code and commands before approval. Its auto mode docs say auto mode "does not guarantee safety" and is not a replacement for review on sensitive operations.

Doesn't auto mode replace the human?

Auto mode replaces most routine prompts, not the human. In Claude Code, auto mode is the built-in starting mode for interactive sessions in recent versions. A separate classifier model reviews actions before they run and blocks those that go beyond your request, target unrecognized infrastructure, or seem driven by hostile content.

According to the permission modes docs, the classifier blocks by default things like curl | bash, force pushes, git reset --hard, production deploys and sending sensitive data to external endpoints. It also allows by default things you might want to see, such as reading .env and sending credentials to their matching API, or pushing to any branch of the repository you are working in, including the default branch.

So the honest picture is: auto mode is a useful filter, and your explicit ask and deny rules still apply on top of it. If you want a human click on pushes, write an ask rule. Stated boundaries in your prompt ("don't push") help, but the docs note that context compaction can drop them, so a rule is more reliable.

Codex has a similar split. The Auto preset (workspace-write sandbox with on-request approvals) lets the agent work freely inside the workspace and asks before leaving it, for example to use the network. The granular approval policy lets you keep specific categories interactive.

Which actions deserve a human click?

Keep a human approval on actions that are irreversible, leave your machine, or touch something outside the task. A practical list:

ActionWhy it needs you
git push, especially force pushLeaves your machine, affects others
Deleting files or folders outside build outputUntracked work cannot be recovered from git
Network calls to new hosts (curl, wget, fetches)Exfiltration path, injection follow-through
Reading or printing secretsCredentials end up in transcripts or logs
Writes outside the project directoryDotfiles, shell config, other repos
Installing new dependenciesSupply chain risk, runs install scripts
Database migrations, deploys, infrastructure changesShared and often irreversible
Sending messages, creating issues or PRsVisible to other people
Changes to CI, hooks or agent settingsCan weaken other controls

In Claude Code, express this with ask and deny rules. Rules are evaluated deny first, then ask, then allow, and a matching ask rule prompts even when a narrower allow rule also matches:

{
  "permissions": {
    "ask": [
      "Bash(git push *)",
      "Bash(npm install *)"
    ],
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)"
    ]
  }
}

Which actions can be safely allowlisted?

Allowlist commands that are frequent, local and easy to undo. These are the prompts that cause fatigue without protecting anything.

  • Your test, lint, type-check and build commands, for example Bash(npm run test *).
  • Read-only git commands. Claude Code already runs a built-in set of read-only commands such as ls, cat, grep and git status without asking.
  • Formatters on project files.
  • File edits inside the project, if you review the diff at the end. Claude Code's acceptEdits mode does this.

Two warnings from the permissions docs. Put the * after the subcommand: Bash(git log *) allows only git log, while Bash(git *) allows every git command, including push. And be careful with runners that execute their arguments, such as npx or docker exec: a rule like Bash(devbox run *) matches whatever follows, including rm -rf. Write one rule per inner command instead.

The guides on allowing commands in Claude Code and stopping Claude Code from asking permission cover the patterns in depth.

How do I keep approvals fast without rubber-stamping?

Rubber-stamping happens when prompts are frequent and look alike, so you stop reading them. The fix is fewer, clearer prompts and a habit of reading the parts that matter.

  1. Cut the noise first. Every safe command you approve more than twice a day belongs in an allow rule. When the remaining prompts are rare, you read them.
  2. Read in a fixed order. Program, then subcommand, then paths, then hosts, then anything after &&, ; or |. Ten seconds is enough when the order is a habit.
  3. Know what normal looks like for the task. If you asked for a CSS fix, a network call is abnormal no matter how harmless it looks.
  4. Deny and ask why. Denying is cheap. The agent will explain or find another way.
  5. Answer from where you are. A prompt buried in a background terminal tab gets answered late and in a hurry. Make prompts visible with notifications. See Claude Code notifications on Mac.
  6. Audit your rules. Run /permissions in Claude Code now and then and remove rules that are broader than you meant.

Claude Code also lets you add a short comment when you answer a permission prompt, which is a quick way to steer the agent instead of only saying no.

Where does human approval stop being useful?

Human approval stops being useful when you approve things you did not read. At that point it is worse than nothing, because it gives a false sense of control. If you notice you are approving without reading, either the task needs more allow rules, or it belongs in a disposable environment where you can use a less interactive mode safely. The article on auto-approve risks covers that trade-off.

A calmer way to do this

Allowbar is a Mac menu bar app for Claude Code and Codex built around this idea: keep the human click, make it quick. When an agent needs a permission, a panel slides down from the top of the screen with the project, the tool and the exact command, and you answer with Allow, Block, or Terminal to send the question back to the terminal. A countdown ring returns the question to the terminal if you do not answer.

Allowbar never approves on its own. There is no auto approval and no rule that approves for you; a missing answer is never treated as approval, and commands already covered by your own allow rules do not show up. It is Mac only and supports Claude Code and Codex. Allowbar is in private beta. Join the waitlist; the launch price is $9.99 instead of $29.90.

Sources:

Frequently asked questions

What is human in the loop for AI coding agents?

It means some agent actions wait for your explicit approval before they run. In Claude Code these are permission prompts, and in Codex they are approval requests. The goal is to keep a human decision on actions that are risky or hard to undo.

Should I approve every command my coding agent runs?

No. Approving everything leads to fatigue and rubber-stamping. Allowlist frequent, local, reversible commands such as tests and linters, and keep approvals for pushes, deletions, network calls, secrets and anything outside the project.

Does Claude Code auto mode remove the need for approvals?

It removes most routine prompts by using a classifier to review actions, but the docs say it does not guarantee safety. Your ask and deny rules still apply, so keep an ask rule on actions you always want to see, such as git push.

How do I make Claude Code always ask before pushing?

Add Bash(git push *) to the ask list in permissions in your settings file. Ask rules take precedence over allow rules. Note that a Bash rule matches the command as written, so unusual forms like git -C . push are not matched.

What is rubber-stamping and how do I avoid it?

Rubber-stamping is approving prompts without reading them because they are frequent and look alike. Avoid it by allowlisting safe repeated commands so the remaining prompts are rare, and by reading each prompt in a fixed order: program, paths, hosts, chained commands.

ALLOWBAR FOR MAC

Answer your agents from the menu bar.

Permission requests from Claude Code and Codex slide down from the top of your screen. Allow, Block or send back to the terminal. Allowbar never approves anything on its own.

Launch price $9.99 instead of $29.90, one-time purchase, lifetime license.