Nine AI Coding Agents, One Question: What Stops a Bad Command by Default?
Every coding agent has a permission model. Most people never look at it until something goes wrong, and the defaults differ more than the marketing suggests. I read the vendor documentation for nine of them on 2026-12-01
Every coding agent has a permission model. Most people never look at it until something goes wrong, and the defaults differ more than the marketing suggests. I read the vendor documentation for nine of them on 2026-12-01 and wrote down four things per tool: how approval works, whether there is a sandbox, what the filesystem boundary is, and whether the network is open.
Here is what stood out.
The network default is the one that bites
Filesystem boundaries get all the attention, but outbound network is where data leaves. Three different defaults showed up in nine tools:
-
Off by default: OpenAI Codex CLI. The sandbox is on by default in workspace-write mode, and
network_accessis false until you turn it on. -
On by default: Gemini CLI's default macOS Seatbelt profile allows network. nono, the sandbox wrapper, also allows network unless you pass
--block-net. - Deny by default: NVIDIA OpenShell allows only approved destinations, and Docker Sandboxes routes outbound TCP through a host proxy limited by network policy.
Claude Code sits in a fourth spot: the OS sandbox is optional and off by default, but when you turn it on, outbound traffic goes through a local proxy with an allowlist that starts empty. That is a strong default once enabled, and nothing at all before.
Approval is not the same as isolation
Several of these tools have rich approval settings and no sandbox, and that is fine as long as you know which one you bought.
-
Cline has no fixed command allowlist. The model marks each command with a
requires_approvalflag, so what counts as safe is decided per command by the model. The docs call their examples not guarantees. - goose ships three modes, and the docs warn that Completely Autonomous is applied by default. Each session keeps the mode it started with when you change the default later.
- OpenCode has ordered rules with allow, deny and ask effects, and the last matching rule wins. That is the reverse of Claude Code, where deny is evaluated first. If you carry your mental model from one tool to the other, you will get it backwards.
Read access is the quiet one
Claude Code's sandbox limits writes to the working directory, a temp directory and any directories you add. Reads are a different story: with the sandbox on, reads cover most of the machine, including ~/.ssh and ~/.aws/credentials, unless you add denyRead. The sandbox also covers shell commands only. Read, Edit, Write, WebFetch, WebSearch, MCP servers and hooks run outside it and follow the permission rules instead.
Docker Sandboxes flips the usual file-safety concern. By default the workspace directory is mounted read-write, so the agent edits your tree in place. --clone mounts the repo read-only and gives the agent a private clone to work in. Inside the microVM the agent has full control, sudo included; the VM boundary is the trust boundary, which is a clean way to think about it.
A short comparison
| Tool | Sandbox default | Network default | The detail worth knowing |
|---|---|---|---|
| Claude Code | Off (optional) | Proxied, empty allowlist, once on | Reads reach most of the machine unless denied |
| Codex CLI | On (workspace-write) | Off |
.git stays read-only inside writable roots |
| Gemini CLI | Opt-in | Allowed (default profile) | Windows sandbox ACL changes persist after the session |
| OpenCode | None described | Rule-based, not OS-level | Last matching rule wins |
| Cline | None described | Separate toggles | Model decides what needs approval |
| goose | None described | Not described | Autonomous is the default mode |
| nono | Kernel-enforced wrapper | Allowed by default | A filesystem-only profile does not stop exfiltration |
| Docker Sandboxes | microVM | Proxy with allowlist | Direct mount by default, --clone for isolation |
| OpenShell | Landlock + seccomp | Deny by default | v0.1.11 at check time, policy format may change |
What I do with this
Three habits, in order of payoff:
- Find the network setting first. If it is open, decide whether that is intended before the first task, not after.
- Write down the rule order. First-match-deny and last-match-wins behave differently on the same config, and one of them will surprise you.
- Keep the sandbox on for shell work even when you trust the model. The sandbox is about blast radius, not about trust.
The data
Every row above came from vendor documentation, with a source link per tool, a checked date, and an explicit "not described on the page checked" instead of a guess. It is nine tools, seven fields each, as CSV and JSON.
- Gumroad: https://cupj.gumroad.com/l/agent-safety-matrix-dataset
- Payhip: https://payhip.com/DigiMoraLap
- Free interactive version with a settings generator: https://prokit-hub-pro.netlify.app/agent-safety-matrix/
This is information about documented behavior, not security advice. Vendor docs change often, so check the linked source before you rely on a setting.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.