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.
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.
Permission prompts are a human in the loop at the moment it matters most — right before an action. Without them, the agent can:
Most of the time it does none of that. The question is what happens the one time it does.
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:
None of this makes bypass wrong. It makes it something to decide per situation, not once.
| Situation | Bypass? | Why |
|---|---|---|
| Isolated lane, tests and type checker as finish line, no secrets in the repo | Reasonable | Damage stays in a throwaway worktree, and you review the diff anyway |
| Overnight autopilot with limits and required checks | Reasonable | Nobody would answer the prompts; the guardrails do the work instead |
| Your main working copy with uncommitted work | No | One wrong command and the work is gone |
| Repository with deploy scripts or production credentials | No | A “helpful” deploy is one command away |
| Tasks that need the network beyond package installs | Think twice | Exfiltration risks grow with every reachable host |
| You’re watching the pane anyway | Unnecessary | Prompts cost you a keypress |
Bypass is not the only alternative to answering every prompt. The CLIs themselves offer middle ground, and it is often the better choice:
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.
If you decide to bypass, don’t bypass alone:
Six yes-or-no questions, and every “no” is a reason to keep the prompts for this task.
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.
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.
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.
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.
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.
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.
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.
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.
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.