Fewer permission prompts in Claude Code and Codex: allow rules, auto mode, and answering from anywhere
A permission prompt costs you twice: the agent stops, and you have to go back to its window to answer. There are three ways to cut that cost. Allow in advance the commands you trust, hand the decision to a reviewer, or keep deciding yourself and answer from wherever you are.
Updated 2026-11-22
Three ways, and what each gives up
| Way | What you give up | Good for |
|---|---|---|
| Allow rules for named commands | Nothing for those commands; the rest still ask | Commands you run all day, such as tests and commits |
| A reviewer decides: Claude Code's auto mode, Codex's Auto-review | Your own look at each action | Long tasks you do not want to watch |
| Turn approvals off | Every check | Containers and virtual machines only |
| Keep the prompts, answer on the HUD, phone or watch | Nothing | Work where you still want the last word |
Claude Code: allow the commands you trust
Add rules to permissions in your settings. Write the command you want to run without asking and put * where it varies. With this, npm scripts and commits run without a prompt and a push is refused:
{
"permissions": {
"allow": [
"Bash(npm run *)",
"Bash(git commit *)"
],
"deny": [
"Bash(git push *)"
]
}
}A rule with no * matches one exact command, and a deny rule blocks in every mode. /permissions shows and edits the rules from inside Claude Code.
Claude Code: change the mode
Shift+Tab switches the permission mode in the CLI.
Even in auto mode, a tool matched by an explicit ask rule still prompts, and so does a question Claude asks you.
| Mode | Runs without asking |
|---|---|
| default | Reading files in your working directories |
| acceptEdits | Reads, file edits and common file commands such as mkdir and mv |
| auto | Everything, with a second model reviewing actions in place of you |
| bypassPermissions | Everything. Anthropic's docs say isolated containers and VMs only |
Codex: the Auto preset, and a reviewer
In the Auto preset, Codex already reads, edits and runs commands inside the working directory without asking. It asks when it wants to edit outside the workspace or use the network.
To have those requests reviewed for you, route them to a reviewer agent in config.toml:
approval_policy = "on-request"
approvals_reviewer = "auto_review"--ask-for-approval never turns the prompts off and still keeps the sandbox you chose. --sandbox danger-full-access removes that too; OpenAI's docs say to use caution before doing so. A destructive tool call from a connected app always needs your approval.
Keep the prompt, lose the trip back
Often the prompt is fine and the interruption is the problem: you are in another window, and the agent sits waiting until you notice. Agent HUD brings the request to you.
The request opens on the HUD at the edge of your screen with the command, file or change in view. You answer there with Allow once or Deny. Always allow appears when the agent offers a lasting rule, as Claude Code does, so the HUD is also where an allow rule gets made. Several requests form a queue, and each shows how long it has waited.
With Agent HUD Remote the same request reaches your iPhone and Apple Watch, so an agent waiting on you no longer waits for you to come back to your desk.

Approve Claude Code and Codex permission requests on Mac and WindowsHow to Approve Codex and Claude Code Requests on Apple Watch
Questions
How do I make Claude Code stop asking permission for every command?
Add allow rules for the commands you trust under permissions.allow in settings, such as Bash(npm run *), or switch to auto mode with Shift+Tab, where a second model reviews actions in place of you.
Can Claude Code approve all bash commands?
bypassPermissions mode runs everything without asking, and Anthropic's docs reserve it for isolated containers and VMs. For everyday work, allow rules or auto mode cut most prompts while keeping a check.
Can Codex approve requests for me?
Yes. Set approvals_reviewer to auto_review in config.toml and a reviewer agent evaluates the requests that would otherwise come to you. --ask-for-approval never turns the prompts off entirely.
Can I approve Claude Code or Codex requests without switching to the terminal?
Yes, with Agent HUD. The request opens on the HUD with the command in view, and you allow or deny it there. With Agent HUD Remote it also reaches your iPhone and Apple Watch.
Is it safe to turn approvals off?
Only where a mistake cannot reach anything that matters. Both vendors point to containers, virtual machines or a sandbox for running without prompts.
