Dashboard

What bypassPermissions Means in an AI Coding Agent

bypassPermissions stops an AI coding agent asking before it acts. It does not shrink what the agent reaches, so the environment is the real control.

Cecilia Iona
Cecilia Iona
Senior Editor, AI & Product
18 October 20261 min read

bypassPermissions in an AI coding agent is the mode where it stops asking you to approve its actions and simply performs them. Edits, shell commands, file writes: the prompts disappear and the work proceeds. The flag exists because approval prompts make unattended automation impossible, and it is dangerous for exactly the same reason.

Understanding what it does and does not switch off is worth ten minutes, because the failure mode is not subtle.

What bypassPermissions in an AI coding agent changes

In an agent's normal operating mode, certain classes of action pause and wait for you. Reading a file inside the working directory usually does not. Running a shell command, writing to a file, or fetching a URL usually does.

Claude Code's permissions documentation describes bypassPermissions as skipping permission prompts, with a narrow set of exceptions that no mode auto-approves. The documentation attaches a warning in plain terms:

In bypassPermissions mode, Claude Code skips permission prompts, including for writes to protected paths such as .git and .claude. Only use this mode in isolated environments like containers or VMs where Claude Code can't cause damage.

Different tools use different names for the same idea. You will see it as a bypass mode, as a --dangerously-skip-permissions flag, or informally as a YOLO mode. The mechanics vary. The property is identical: the human approval step is removed from the loop.

What it does not change

This is where people get the model wrong. Turning off approval prompts does not:

  • Make the agent more capable. It can do exactly what it could before. It just does not ask.

  • Make the agent more careful. There is no compensating caution applied because the guardrail was removed.

  • Restrict what it can reach. The filesystem, the network and the credentials available to the process are unchanged.

  • Remove every check. Documented exceptions survive, and tools can refuse specific actions regardless of mode.

The approval prompt was never a capability boundary. It was a human in the loop. Taking the human out does not shrink the blast radius, it removes the thing that was noticing.

Why the blast radius is the whole question

An agent runs as a user on a machine. Whatever that user can read, write, delete or connect to, the agent can too, because it is the same process with the same credentials.

On a laptop with your SSH keys, cloud credentials and personal files, that is a large surface. In a container with a copy of one repository and no secrets mounted, it is small. The mode does not change the surface. It changes whether anyone is watching while the agent moves across it.

That is why the documented advice is about the environment rather than about the agent. "Only use this mode in isolated environments" is not a liability disclaimer, it is the actual control.

The failure mode in the wild

In October 2026 a security advisory, CVE-2026-111322, was published against the Archon agent platform. The flaw was not in the model. Versions 0.2.13 through 0.11.1 exposed a control API with no authentication, bound to all network interfaces by default, and the agent behind it ran with bypassPermissions.

Each of those on its own is a bad default. Together they mean an attacker who can reach the port can send the agent instructions, and the agent executes them on the host without asking anyone. We covered the Archon advisory and what to do about it separately.

The lesson generalises past Archon. If you run an agent in bypass mode, your security model is now entirely "nobody untrusted can send this agent a message". That includes a web page the agent fetches, a file it reads, or an issue comment it processes, because instructions do not have to arrive through the chat box.

When the mode is reasonable

It is a legitimate setting, not a trap. Reasonable uses look like:

  1. A disposable container, with one repository checked out, no credentials beyond what the task needs, and no path back to anything that matters.

  2. A CI job that is already running untrusted code in a sandbox, where the agent adds nothing to the existing risk.

  3. A VM you can destroy, where the worst case is rebuilding it.

Unreasonable uses look like: your main laptop, a shared development server, a production host, or any machine where the agent process can see cloud credentials. Running it on a machine someone else can reach over the network is the Archon pattern.

Organisations that want to take the option away entirely can. Claude Code exposes permissions.disableBypassPermissionsMode for managed settings, so the mode can be disabled centrally rather than left to each developer's judgment.

The practical framing

Before you enable it, answer one question: if this agent did the single worst thing it is physically capable of right now, what would I lose?

If the answer is "a container I can rebuild", enable it. If the answer involves production data, customer records, or credentials you would have to rotate, the convenience is not worth it. The tiered approach in sandboxing an AI agent before you trust it is the longer version of that question, and limiting what an AI agent can reach on your network handles the outbound side. If the underlying concept of an agent is new, start with what an AI coding agent is.

FAQ

Is bypassPermissions the same as dangerously-skip-permissions?

They are the same idea under different names. One is a configured permission mode, the other a command-line flag, and tools differ on which exceptions survive. Treat any of them as "no human approval step".

Does bypass mode let the agent do things it otherwise could not?

No. The agent's capabilities come from the tools it has and the privileges of the process. The mode governs whether it pauses to ask, not what it is able to do.

Is it safe to use bypassPermissions in a Docker container?

Safer, not automatically safe. It depends on what you mounted. A container with your home directory bind-mounted, or with cloud credentials in the environment, has most of the risk of running on the host.

Can my organisation prevent developers from using it?

Yes, where the tool supports it. Claude Code provides permissions.disableBypassPermissionsMode in managed settings, which cannot be overridden locally.

How did this land?

About the author

Cecilia Iona
Cecilia Iona

Senior Editor, AI & Product

Cecilia leads the Swarmz editorial desk. She has spent a decade turning complex AI and product topics into writing people actually finish, and she owns the blog's quality bar.

Share

Get the next post in your inbox

One email a month. Product updates, engineering posts, and the best of Built with Swarmz.

I agree to receive emails about AI building tips and Swarmz product news. Unsubscribe any time.