Blog · Comparison · 16 November 2026

5 Ways to Approve Agent Commands, Compared

There are five common ways to approve agent commands today, and most teams end up using three of them at once. This comparison covers the terminal prompt, allow and deny rules, classifier-based auto modes, sandboxes, and a remote approval queue. For each one it says what the vendor's documentation states, what it is good at and where it stops working. The examples come mostly from Claude Code, Cursor and Codex, because their documentation is the most detailed.

Why how you approve agent commands matters

Anthropic's post on auto mode opens with a number from its own product: Claude Code users approve 93% of permission prompts. Its sandboxing post names the consequence, approval fatigue, where people stop reading what they approve. A prompt that is always answered yes protects nothing, and a prompt nobody is there to answer stops the work.

So the goal is not more approvals or fewer. It is that the few decisions that need a person reach one, and everything else is settled by something cheaper.

1. The terminal prompt

The default in Claude Code (called Manual in its interfaces) asks on first use of each tool. Per Anthropic's docs, file reads in the working directory need no approval, while shell commands, file edits and web fetches do, with a built-in set of read-only commands and of preapproved documentation domains exempt. Answering "yes, don't ask again" makes the answer stick for that command in that repository.

Good for: one person watching one agent. The person sees each command in context.

Stops working when: you run several agents, or step away. Permission prompts wait in a terminal where nobody is looking.

2. Allow and deny rules

Claude Code lets you write rules such as Bash(npm run test *) into settings files. The docs give the evaluation order: deny, then ask, then allow, and the first match in that order wins. A broad deny rule blocks a call even when a narrower allow rule matches. Rules can be checked into the repository and shared.

This is the allowlist approach. Codex has a related idea in its approval policy: its docs describe an Auto preset in which Codex edits and runs commands inside the workspace and asks before leaving it or using the network.

Good for: the routine majority. Tests, linters and builds should never need a person.

Stops working when: a command is new, or its risk depends on arguments a glob cannot express. npm run migrate on staging and on production look alike to a pattern.

3. A classifier (auto mode)

Claude Code's auto mode runs without routine prompts; before shell commands and network requests run, a background classifier checks that they align with the request. Cursor describes a similar feature for its local agents, Auto-review, where a classifier agent lets low-stakes actions run freely and holds risky ones.

Good for: long autonomous runs where rules would be too rigid and prompts too frequent.

Stops working when: the decision is not about risk in general but about your organisation: who owns this table, which environment is frozen this week. A classifier does not know that unless told, and it is still a model judging a model.

4. A sandbox

A sandbox changes the question from "may this run" to "what can it reach". Anthropic's sandboxing for Claude Code uses operating system features for filesystem isolation and network isolation, and the company reports that in its internal usage sandboxing reduced permission prompts by 84%. Codex's docs describe an OS-enforced sandbox that typically limits the agent to the current workspace, with network access off by default.

Good for: removing whole classes of harm. A command that cannot reach the network cannot send your keys anywhere.

Stops working when: the agent legitimately needs to act outside the box: push, deploy, run a migration, install a dependency. At that boundary you are back to an approval.

5. A remote approval queue

The fifth way moves the prompt off the terminal. Claude Code has a PermissionRequest hook that fires when a tool call needs a permission decision; a hook can answer allow or deny as JSON. A service behind that hook can hold the request and ask someone elsewhere.

Forkit is built on this. Its hook sends the request (agent, repository, branch, exact command) to a server where four layers answer in order:

  1. Command rules, shared across a team's agents. A matching deny always wins.
  2. An orchestrator agent, if an owner has chosen one, limited to the tools the owner ticked.
  3. A person, either the agent's own person or a workspace owner, who can allow once, allow for an hour, always allow (which adds a rule) or deny with a note.
  4. A timeout. After 90 seconds by default the hook withdraws and Claude Code shows its normal prompt.

Commands that touch production, secrets or money skip the first two layers. They always reach a person, who can only allow them once.

Good for: several agents, several people, and agents with no terminal at all.

Stops working when: nobody answers. The design has to say what happens then. For an agent with a terminal, the prompt returns locally. For a headless agent, Forkit records the request as denied.

Side by side

Who decides Works unattended Knows your organisation Main weakness
Terminal prompt The person at the terminal No Yes, if they read it Fatigue; one screen
Allow and deny rules A pattern Yes Only what you wrote down Blind to context
Classifier A model Yes No A model judging a model
Sandbox The operating system Yes No Legitimate work crosses the boundary
Remote queue with rules Rules, then an agent, then a person Partly Yes Needs someone reachable

What to combine

A sensible stack, from the cheapest decision to the most expensive:

  1. Sandbox first, so most commands cannot do lasting harm.
  2. Deny rules for what must never run unasked.
  3. Allow rules for the routine.
  4. A queue to a person for what is left, with the sensitive categories pinned to a person.

Skipping every check (Claude Code's bypassPermissions mode) is a sixth option. It belongs only where the environment itself is disposable.

Where each tool is the better choice: for a single developer at the keyboard, Claude Code's built-in modes and sandbox are enough, and a hosted queue adds little. A queue pays off when prompts pile up across agents or people.

More detail on each layer: Claude Code permission modes compared, agent sandbox vs approvals, agent permission rules and how to approve Claude Code remotely.

Where Forkit fits

Forkit is the fifth way: a remote approval queue with rules in front of it, for Claude Code and other agents. It works alongside sandboxes and local rules. It is free to try, and npx forkit-cli init installs the hook. More at forkit-mcp.com.

Sources

Read on 16 Nov 2026: