Skip to content
Agentic Control Plane

Bypass Permissions Safely: Every Coding Agent's Skip-Permissions Flag, and What Still Holds

David Crowe David Crowe · · Updated · 14 min read
comparison permissions coding-agents hooks policy reference
Share X HN LinkedIn

Every coding agent has a switch that stops it asking. Most are named after how dangerous they are. They’re spelled differently in each agent, they turn off different things, and only some leave anything standing.

This page is the table for nineteen agents in eighteen rows: the flag, what it removes, and what still holds. It is the cross-agent companion to how to run Claude Code in yolo mode safely. The rows are a snapshot as of August 2026, taken from each agent’s own docs. The agents change often, so check the date on a row’s deep page before you rely on it.

The flags in one table

Agent The flag What it removes What still holds
Claude Code (deep page) --dangerously-skip-permissions (same as bypassPermissions) Every permission prompt Deny rules at all four scopes (managed denies can’t be overridden by any flag), explicit ask rules, MCP tools flagged as requiring interaction, PreToolUse hook blocks, and an rm -rf / or rm -rf ~ circuit breaker that fires inside $(…). It refuses to run as root
Codex CLI (deep page) --yolo (approvals and sandbox); --sandbox danger-full-access (boundary only); --dangerously-bypass-hook-trust (one run’s hook review) Depends on which one you use Wrapper unwrapping: sudo, env and trap are peeled up to eight layers deep before a forced-delete verdict. Nothing records that a flag was set
Cursor / Cursor CLI (deep page) Run Everything mode; CLI --force (alias --yolo) Sandbox, classifier and prompts, all three Prompts that appear in every mode for browser actions, file deletion and writes outside the workspace. Cloud agents skip Run Modes and auto-run inside a VM
Antigravity (Google) (deep page) --dangerously-skip-permissions Everything, including the hook layer. We checked live on 1.1.21 with an A/B pair of headless turns: with the flag, the PreToolUse hook is not invoked at all Nothing that depends on a hook. This is the one row where a policy hook isn’t on the path
Muse Code (Meta) (deep page) --yolo; also --disable-approval and --disable-sandbox separately --yolo removes approvals and the sandbox, and trusts the workspace, which loads the checkout’s AGENTS.md, rules and skills. --disable-sandbox alone also unconfines the file tools and forces full network egress Meta’s docs limit --yolo to disposable CI containers and warn that on a fork or PR checkout those workspace files are attacker-controlled
Grok Build (xAI) (deep page) --always-approve / --yolo The prompts Deny rules and PreToolUse hooks fire in every mode, always-approve included. Core hooks fail open on a 5s timeout
opencode (deep page) --auto The ask tier only Explicit deny rules are still enforced. The best-designed flag of the major agents
DeepSeek Harness (dsh) (deep page) No flag. The danger-full-access preset (approval never, sandbox open) Approvals and the sandbox A named, visible profile instead of a flag someone leaves in a script. Review it with --dump-config
fx (Vercel Labs) (deep page) yolo mode: /permissions yolo, permission_mode, or FX_PERMISSION_MODE Permission checks and the command sandbox; the run has the launching process’s full authority A speed bump: yolo won’t start until yolo_acknowledged is set. Nothing records that the controls were off
Hermes Agent (deep page) yolo mode The inline prompt for about 47 patterns Twelve hardline patterns, hardened against quoting tricks, hold in every mode (our read)
Crush (Charm) --yolo The permission service Still hard-blocks ssh, scp, rsync
Aider --yes-always Confirmation on edits Shell execution is auto-denied, not auto-approved. The one command it won’t run unattended is the one that could hurt you
Goose (Block / LF) GOOSE_MODE=auto, which is the default Everything About 35 danger patterns ship, but they’re off by default, and only prompt when on. Maintainers filed their own issue about the default and kept it
OpenHands --always-approve / --yolo Confirmation mode Their docs say there is no hard-deny at the analyzer boundary. Headless mode is always-approve with no way to change it. The sandboxed runtime is the remaining limit
Amp (Sourcegraph) amp.dangerouslyAllowAll Nothing new: the default already has no approval prompts amp.permissions rules and guardedFiles.allowlist, until the flag
Cline (guide) None needed. The CLI default is auto-approve ON; yolo is a literal "*": autoApprove Every tool, no exceptions, no protected paths Nothing. The “safe commands” tier trusts the model’s own requires_approval label
pi / Prime Agent (pi, Prime Agent) None needed. The default is full access, by design and documented n/a Nothing built in. Both point you at containment: micro-VM, Docker, OpenShell
OpenClaw (deep page) None needed. The default is exec security: "full" with ask: "off" n/a The most-starred agent’s default is what every other agent calls its escape hatch. Its docs say this is single-operator convenience, not isolation

Two agents stand out. Gemini CLI was retired in June 2026 and folded into Antigravity. It blocked command substitution even in yolo, the cleanest “no mode bypasses this” design anyone shipped, and its successor’s flag is the most total in the table. Aider is the only agent that went the other way: full-auto makes the dangerous thing unavailable, not automatic.

The three shapes

Every flag in the table is one of three things.

1. The flag that removes the prompts. Claude Code, Grok Build, opencode. The prompts stop, but the rule engine and the hook layer keep running. A prompt is a request a tired person waves through. A rule is a limit that applies whether they wave or not. In all three, what you wrote in advance is what you still have.

2. The flag that removes the hook layer. Antigravity is the clearest case: the hook isn’t invoked at all. Cursor’s Run Everything takes out sandbox, classifier and prompts together. Muse Code’s --yolo goes further than most people read, because it also trusts the workspace and loads the checkout’s own instruction files. On a fork or PR checkout those files are attacker-controlled. Here a control layer isn’t weakened. It’s gone, and nothing in the session says so.

3. The default that already is the escape hatch. OpenClaw, pi, Prime Agent, Cline’s CLI, Goose, Amp. There’s no gate to open, so there’s no flag to audit. pi’s docs say it has no permission system and point you at containment. OpenClaw’s describe their default as operator-intent guardrails, not isolation.

What none of them record

No agent in this table records, on its own, that its flag was used. The flag disables the controls and the record of the controls being disabled in one action. Codex’s page says an unattended run is one --yolo in a cron job away from no controls, and nothing writes that down. fx’s yolo leaves no trace that the checks were off. Antigravity runs no hook, makes no decision and writes no record.

That isn’t one vendor’s oversight. The record is written by the process it describes, on the machine that ran it, and whoever flipped the flag can edit it. A log that goes quiet looks the same as a session that did nothing. See where every native model ends.

Teams multiply the problem. Orca’s launch layer keeps a map of skip-approval flags across about 30 agents (--dangerously-skip-permissions for Claude Code, --dangerously-bypass-approvals-and-sandbox for Codex, --yolo for Gemini, Copilot and Cursor, --auto-approve true for Cline, --yes-always for Aider), and that map is its default launch configuration. It’s visible, and there’s a Manual toggle. Still, the tool that makes it easiest to run ten agents starts all ten with the flags in this table’s right-hand column.

Why the bypasses keep coming back

Every few months someone shows a way around an agent’s allowlist, and the shape is always the same. Cursor retired its command denylist after a security firm showed four routes around it: Base64 encoding, subshells, and writing the blocked command to a script and running the script. It has since published three allowlist-bypass CVEs (command substitution, environment-variable poisoning and shell built-ins, and web content injected into auto-execution). Its docs now say bluntly that there is no security boundary between the agent and your user account.

The CVE numbers aren’t the point. The class is. A permission rule matches a command string, and you can’t recover a shell command’s effects from its prefix. A prefix-matched deny list on a tool that can run anything is a speed bump. Anthropic’s own docs call argument-constrained Bash patterns fragile and recommend a hook or a sandbox for anything that must hold. Claude Code’s deny list can be bypassed walks through the mechanics, and what survives yolo mode is the survey that first showed us it was universal.

Two questions to ask about any skip-permissions flag

Which of my controls survive the flag? Of the harness control patterns, two survive by construction: a proxy the calls must pass through, and a record kept off the machine. Rules survive sometimes (the denies in Claude Code, opencode and Grok Build). Hooks survive in some agents and not others. Reading your hook config isn’t the same as honoring your hook’s verdict. Grok Build loads hooks straight from ~/.claude/settings.json and understands only its own decision words, so the hook runs, the log looks healthy, and nothing is blocked.

Does anything record that the flag was used? Natively, no. You need a record the flagged process doesn’t write.

Where ACP stands

ACP is a hook, so it sits where hooks sit. Under Claude Code’s --dangerously-skip-permissions it keeps running, and so does the safety floor. Force-pushes, destructive SQL sent to a database client, curl | sh and deletes outside the project are held for your approval. Deletes of your home directory or system folders are always blocked. A skip-permissions session is reported as the background tier, so you can write stricter rules for it and see those rows in the Activity log. Under Grok Build the hook fires in every mode too. Under Antigravity the flag removes the hook, ACP’s included, so ACP isn’t on the path. The Antigravity page says the same. disableAllHooks in Claude Code also turns it off. The coverage matrix lists what ACP checks on each agent.

Limits of this page

It is a snapshot. Cursor went from yolo mode to Auto-Run to Run Modes and deleted two modes in one month. Codex removed --full-auto in 0.147. Gemini CLI’s policy engine no longer exists. The rows come from each agent’s official docs and source, read for the controls comparison and its deep pages, and we correct them when agents change.

“What still holds” doesn’t mean safe. Claude Code’s circuit breaker catches rm -rf /. It doesn’t catch the same deletion written as a Python one-liner. Crush blocking ssh doesn’t limit curl. A surviving rule stops the disaster the agent has already seen, which isn’t the same as containing the agent.

A sandbox and a policy answer different questions. OpenHands’ runtime, Cursor’s cloud VM and pi’s suggested micro-VM limit how far damage can spread, but they don’t judge individual actions. A destructive command against a database you have credentials for is inside the sandbox and runs. Most setups want both. Sandboxes and control planes covers it at length.


Rows compiled from each agent’s official documentation and source, via the deep pages linked in the table. Current to August 2026, with the ACP section updated November 2026. Corrections welcome.

What is the skip-permissions flag for each coding agent?

Claude Code and Antigravity use --dangerously-skip-permissions. Codex CLI, Cursor’s CLI, Muse Code, Grok Build, Crush and OpenHands use --yolo (Cursor’s main spelling is --force). Aider uses --yes-always. opencode uses --auto. Codex also has --sandbox danger-full-access, and DeepSeek Harness ships danger-full-access as a named preset, not a flag. Amp uses amp.dangerouslyAllowAll. fx has a yolo mode gated behind a yolo_acknowledged setting. Several agents need no flag because permissive is already the default: pi, Prime Agent, OpenClaw, Cline’s CLI and Goose (whose default mode is auto). As of August 2026.

Which coding agents keep enforcing something in yolo mode?

A minority, and the survivors differ. Claude Code keeps deny rules at every scope, PreToolUse hooks and an rm -rf circuit breaker. Grok Build keeps deny rules and PreToolUse hooks. opencode keeps explicit deny rules and drops only the ask tier. Hermes keeps twelve hardline patterns. Crush still hard-blocks ssh, scp and rsync. Aider auto-denies shell execution instead of auto-approving it. Antigravity is the clearest counterexample: its flag removes the hook layer from the call path entirely. As of August 2026.

Is it safe to use a coding agent's yolo mode?

It depends on whether anything in that agent survives the flag, and whether you wrote those rules beforehand. Ask two questions before you use any skip-permissions flag: which of my controls still run with the flag on, and does anything record that the flag was set? Natively, the second answer is almost always no. The flag disables the controls and the record of them being disabled in one move.

Why do coding agents keep having permission bypass vulnerabilities?

Because most permission systems match command strings, and a string has many spellings. Cursor retired its command denylist after a security firm showed four ways around it (Base64 encoding, subshells, and writing the blocked command to a script and running the script), and has since published three allowlist-bypass CVEs. The class recurs because you can’t recover what a shell command does from its prefix.

Running coding agents? ACP records each tool call its hook sees and makes the dangerous shell commands (a force-push, destructive SQL, curl | sh) wait for you. One command, free up to 5 agents:

macOS · Linux · WSL
curl -fsSL https://agenticcontrolplane.com/install.sh | bash
Windows · PowerShell
irm https://agenticcontrolplane.com/install.ps1 | iex

What the installer writes  ·  Getting started

Share X HN LinkedIn
Get the next data drop
What agents actually cost, new tool-surface captures, and the occasional incident post-mortem — sent when we publish something worth your inbox, not on a schedule. Unsubscribe anytime.
Share: Twitter LinkedIn
Related posts

← back to blog