Bypass mode: a decision table

Skipping an agent’s permission prompts saves hours — and occasionally costs a lot more. When it is reasonable, and what to put in place first.

Every coding CLI asks before it does something risky: run this command? edit that file? install this package? Every CLI also has a switch to stop asking. In Claude Code it is --dangerously-skip-permissions, in Codex --dangerously-bypass-approvals-and-sandbox, in Gemini CLI --yolo. The names are honest.

PaneScale lets you start panes with these flags (Settings → Agents & accounts → Start without prompts). This post is about when you should.

What you give up

Permission prompts are a human in the loop at the moment it matters most — right before an action. Without them, the agent can:

  • run any shell command, including ones that delete, push or deploy,
  • read any file your user can read, including credentials in your home folder,
  • install packages and run their install scripts,
  • reach any network address.

Most of the time it does none of that. The question is what happens the one time it does.

Why “it never did anything bad” is not evidence

The usual argument for bypass is experience: hundreds of sessions, nothing went wrong. That is a real data point, but it measures the common case. The risks that matter are rare and come from outside the agent:

  • Instructions in the data. An agent that reads a README, an issue, a web page or a dependency’s source can find text that looks like an instruction. Prompt injection is the top entry in OWASP’s list of risks for applications built on language models for exactly this reason: the model can’t reliably tell your instructions from text it was asked to read.
  • Too much reach. OWASP calls the second half of the problem excessive agency: a system that has more permissions, more tools or more autonomy than the task needs. Bypass mode is, by definition, maximum agency.
  • The dangerous combination. Simon Willison describes a “lethal trifecta”: access to private data, exposure to untrusted content, and a way to send data out. An agent with all three can be talked into leaking what it can read. Bypass mode on a machine with credentials and network access gives it all three.

None of this makes bypass wrong. It makes it something to decide per situation, not once.

The decision table

SituationBypass?Why
Isolated lane, tests and type checker as finish line, no secrets in the repoReasonableDamage stays in a throwaway worktree, and you review the diff anyway
Overnight autopilot with limits and required checksReasonableNobody would answer the prompts; the guardrails do the work instead
Your main working copy with uncommitted workNoOne wrong command and the work is gone
Repository with deploy scripts or production credentialsNoA “helpful” deploy is one command away
Tasks that need the network beyond package installsThink twiceExfiltration risks grow with every reachable host
You’re watching the pane anywayUnnecessaryPrompts cost you a keypress

Between always asking and never asking

Bypass is not the only alternative to answering every prompt. The CLIs themselves offer middle ground, and it is often the better choice:

  • Allow lists. Claude Code’s permission settings let you allow specific tools and commands — running the test suite, reading files, a formatter — while still asking for everything else. Most prompts in a working day come from the same handful of safe commands.
  • Sandboxes. Codex runs commands in a sandbox by default and documents how its approval and sandbox modes combine; Claude Code has its own sandboxing options. A sandbox that blocks network access and writes outside the project removes most of the worst cases while keeping the agent fast.
  • Isolation by worktree. A lane does not stop a command from running, but it limits what a bad edit can damage to a branch you can throw away.

A practical progression: start with prompts, add the commands you approve every time to an allow list, and only switch to full bypass for unattended work in a lane, with budgets and checks in place.

What to put in place first

If you decide to bypass, don’t bypass alone:

  1. Use a lane. An isolated worktree means the agent’s mistakes land on its own branch.
  2. Set budgets. The Token Guardian stops runaway runs and loops.
  3. Keep secrets out. Agents read what your user can read. Don’t keep production credentials in the repository or in plain files nearby.
  4. Approve publishing yourself. In PaneScale, pushing and opening pull requests always need a signed approval — bypass mode doesn’t change that, because the agent never had a tool to approve.
  5. Review the diff. Bypass removes the prompts during the work, not the review after it.

A checklist before you flip the switch

  • Is the agent in a lane, not your main working copy?
  • Is there a command that proves the task is done?
  • Are production credentials, cloud tokens and SSH keys out of reach of this user, or at least out of the repository?
  • Does the task need the network for anything except installing packages?
  • Is a budget set, so a loop ends by itself?
  • Will you read the diff before it is merged?

Six yes-or-no questions, and every “no” is a reason to keep the prompts for this task.

Make it visible

Panes started without prompts carry a marker in their header. That sounds minor, but it matters when you have nine panes open and want to know at a glance which ones you can let run.

The short version

Bypass is a good default for isolated, verifiable, unattended work. It is a bad default for anything that touches your main working copy, your credentials or your production systems. When in doubt, keep the prompts and answer them from the Attention dock.

Questions about bypass mode

Is bypass mode the same in every CLI?

The idea is the same — stop asking before actions — but the details differ. Codex combines its bypass flag with turning off its sandbox, Claude Code skips its permission prompts, Gemini CLI approves every tool call. Read each CLI’s documentation for what exactly its flag disables, because that decides what the agent can reach.

Can I see which panes run without prompts?

Yes. Panes started without prompts carry a marker in their header, so a quick look across the grid tells you which agents will act without asking and which ones will wait for you.

What is the safest way to try bypass for the first time?

Pick a task with a clear test, start the pane in a lane, set a small budget, and watch the first run from start to finish. You will see what the agent does when nobody stops it — and whether you are comfortable letting it do that unattended next time.

A note for teams

On a team, bypass mode is also a policy question. One developer’s comfortable setup — a lane, a budget, no secrets nearby — is not automatically everyone’s. Writing down when bypass is acceptable, in the repository’s instructions file or the team’s onboarding notes, saves the discussion from happening after an incident. The decision table above is a reasonable starting point; adapt the rows to what your repositories actually contain.

Claude Code also has managed settings that an organization controls centrally, and its documentation describes which permission settings take effect from which level. If your organization manages developer machines, that is the place to enforce a policy rather than relying on everyone remembering it.

Sources

More articles

Five ways an agent can fake a green build

Agents rarely cheat on purpose, but under pressure to make tests pass they find shortcuts. Here is what to look for — and what PaneScale flags automatically.

Write tasks an agent can finish

The difference between a task that runs overnight and one that wanders is usually a single sentence — the finish line. A short template and examples.

Every run should leave a receipt

When agents work in multi-step workflows, “it worked” isn’t enough. What a run record should contain, and how PaneScale’s workflow runs provide it.