Skip to content
Agentic Control Plane

What Survives Yolo Mode: Which Coding Agents Still Block rm -rf When You Skip Permissions

David Crowe David Crowe · · 8 min read
security governance agents engineering
Share X HN LinkedIn

Every coding agent has a “just do it” mode. Yolo, auto, Turbo, full-access: whatever the vendor calls the switch that stops the permission prompts. It’s the mode people end up in once the prompts get annoying.

So we asked one narrow question. With that switch on, what still stops the agent from running rm -rf /?

We read the source for Claude Code, Codex CLI, Gemini CLI, Cursor, Cline, Aider, Windsurf, OpenHands, Goose and Hermes. We also read the framework layer: LangChain/LangGraph, CrewAI, AutoGen and NeMo Guardrails. We looked at command lists, default config values and sandbox policies, not the marketing. Everything below is as of July 2026. Harnesses change their defaults, so check yours.

The answer: not much, and less each release.

What survives full-auto, by harness

What survives the agent's most-permissive mode◆floor holds▲prompt only■nothing◆Gemini CLIsubstitution blocked even in yolo; yolo arms the sandbox◆Claude Coderm circuit-breaker survives bypass; refuses bypass-as-root◆Codex CLIdeny-by-default sandbox; forced-rm unwraps 8 wrappers deep◆Aiderunder --yes-always, shell exec auto-denies, not auto-approves◆Hermes12 quoting-hardened hardline regexes hold in every mode▲Windsurfdeny-list survives Turbo (prefix-match); admin autonomy cap▲Goose35 danger patterns exist but default OFF, and only ever prompt■OpenHandsdocs: “no hard-deny”; headless = always-approve, unchangeable■Cursordenylist deprecated after 4 bypasses; “run everything” has no floor■Clineyolo = every tool auto-approved; no floor, no protected paths■Frameworks*LangChain / CrewAI / AutoGen / NeMo ship no action floor at all*LangChain/LangGraph, CrewAI, AutoGen, NeMo Guardrails — no action-level floor ships by default.
Default guardrails that survive each harness's most permissive mode, read from primary source in July 2026. "None" means the agent's auto/yolo mode will run a catastrophic command without stopping.

Five of the eleven in the chart have a floor that no mode turns off.

  • Gemini CLI blocks command substitution even in yolo.
  • Claude Code has an rm -rf circuit breaker that fires even inside $(...), and it refuses to run bypass mode as root.
  • Codex CLI unwraps sudo, env and trap up to eight layers deep before it decides whether a command is a forced delete.
  • Aider, under --yes-always, auto-denies shell commands instead of auto-approving them. The one thing it won’t run unattended is the thing that could hurt you.
  • Hermes ships twelve hardline regexes, hardened against quoting tricks, that hold in every mode.

The rest have nothing.

  • Cline’s yolo is a literal "*": autoApprove. Every tool, no exceptions, no protected paths.
  • OpenHands’ docs say “No hard-deny at analyzer boundary,” and its headless mode is always-approve with no way to change that.
  • Goose defaults to full-auto. It ships about 35 good danger patterns (rm -rf, dd, curl | sh, reverse shells) that are off by default. When you turn them on they only prompt, never deny. Its maintainers filed an issue titled “Autonomous mode by default is dangerous,” agreed with it, and kept the default.

Denylists that existed got retired. Cursor deprecated its command denylist after a security firm showed four ways around it: Base64, subshells, and writing the blocked command into a script and running the script. Its docs now say: “There is no security boundary between agents and your user account.” Gemini’s docs call blocklisting “less secure than allowlisting.” A list of forbidden strings loses to anyone who will encode, wrap or indirect around it.

The frameworks ship almost nothing

The framework layer, the code you build production agents with, mostly hands safety back to you and says so.

  • LangChain’s ShellTool carries a warning in its own source: “The shell tool has no safeguards by default.” Its dangerous features sit behind allow_dangerous_*=False flags that exist because of three separate CVSS 9.8 CVEs. One of those fixes was bypassed through Python’s __import__, which shows a string denylist on generated code can’t hold.
  • CrewAI defaults its code interpreter to Docker, then falls back to in-process exec() if Docker isn’t there. The path that was supposed to be sandboxed fails open.
  • AutoGen 0.2 shipped human approval on by default and a Docker executor that failed closed. Version 0.4 removed both.
  • NeMo Guardrails filters content. Its own security guidelines say action governance is “the surrounding application’s” job.

Put the agents and the frameworks together and the trend is clear. Default safety is going down. AutoGen weakened it. CrewAI is moving its safe interpreter toward bring-your-own-sandbox. Goose kept a default its own team called dangerous.

What we changed because of this

We run a control plane: a hook that checks each tool call from a coding agent and answers allow, ask or deny before it runs. Every list above is a lesson we could borrow, so we did. These went into our command classifier after the survey:

  • A length ceiling. Claude Code always prompts on commands over 10,000 characters, because a command too long to read is a command nobody reviewed. We flag those too.
  • Unicode spoofing. Bidirectional and zero-width characters can make a command look different from what runs. We flag them.
  • Writes to .git/hooks and .git/config. A hook write runs arbitrary code on your next commit. Cursor’s sandbox was the first we saw protecting it, and Claude Code’s /sandbox does too. We catch it on every write path.
  • Wrapper unwrapping. timeout 300 firebase deploy used to classify as a timeout command and slip past every deploy rule. We now strip the harmless wrappers first, with a depth cap. That’s Codex’s approach, adopted directly.

We also keep a short list that is always blocked: rm -rf of root, home or system directories (with the quoting tricks handled), mkfs, dd to a raw disk, fork bombs and shutdown. It’s modeled on Hermes’ list. No rule and no standing approval can allow it.

Two limits. ACP runs as a hook on your machine, so it only works while the hook is running. Turning hooks off turns ACP off, and so does Antigravity’s --dangerously-skip-permissions. And the floor only reads shell command text, so MCP and other non-shell tools don’t reach it.

Why one place for this matters

No single harness sees enough to learn every lesson. Cursor learned that denylists get Base64’d around, from an incident. Gemini learned that yolo mode has to turn the sandbox on, from a CVSS 10.0 report. Codex learned to unwrap trap eight layers deep, from a real bypass. Each lesson sits in one harness and protects that harness’s users.

If you run Claude Code, Codex and a Hermes agent on a server, you get three floors and three sets of blind spots. What Cursor learned never reaches your Codex.

That’s the gap we’re trying to fill. One hook, one set of rules, one log, across the harnesses on your machine. Our coverage page says what it sees on each one. We borrow the best idea from each harness and credit it. Think of it as an agent firewall.

The frameworks are right that safety is still the developer’s job. We think it shouldn’t be a job you redo for every harness.


This is part two of a series. Part one is what we adopted from Hermes’ published blocklist. Every default here was read from live source or official docs in July 2026.

AgenticControlPlane.com

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