Agent Safety Matrix  permission and sandbox comparison for AI coding agents

Agent Safety Matrix

How 9 AI coding agents and agent sandboxes handle approvals, filesystem and network access. Every row links to the vendor docs. Last checked 2026-12-01.

ToolApproval modelSandboxFilesystemNetworkWhere you set itWatch out forSources
Claude Code
Coding agent
Anthropic
Permission modes: default (Manual), acceptEdits, plan, auto (background classifier), dontAsk, bypassPermissions. Rules are evaluated deny, then ask, then allow; the first match wins.Optional OS-enforced sandbox for shell commands (off by default). macOS, Linux and WSL2. On native Windows commands run unsandboxed.With the sandbox on: writes limited to the working directory, a temp directory and added directories. Reads cover most of the machine, including ~/.ssh and ~/.aws/credentials, unless you add denyRead.With the sandbox on: no direct route out. Traffic goes through a local proxy that checks hosts against allowed domains, which start empty.settings.json: permissions.allow / ask / deny, permissions.defaultMode, sandbox.enabled, sandbox.filesystem.*, sandbox.network.*. Managed settings sit at the top of precedence.The sandbox covers shell commands only. Read, Edit, Write, WebFetch, WebSearch, MCP servers and hooks run outside it and follow permission rules instead. defaultMode values auto and bypassPermissions are ignored from project or local settings.source 1
source 2
source 3
OpenAI Codex CLI
Coding agent
OpenAI
Approval policy on-request or never (the older untrusted policy is retired). In the Auto preset, Codex edits and runs commands in the working directory automatically and asks for edits outside the workspace or commands that need network.OS-enforced sandbox with three modes: read-only, workspace-write, danger-full-access.Default workspace-write: writes limited to the active workspace. In writable roots, .git is protected as read-only.Off by default. Turn on with network_access = true under [sandbox_workspace_write]. A network_proxy feature can constrain traffic to a domain policy once network is enabled.~/.codex/config.toml: sandbox_mode, approval_policy, [sandbox_workspace_write], features.network_proxy. Flags: --sandbox, --ask-for-approval, --approve-for-me.--yolo (dangerously-bypass-approvals-and-sandbox) removes both approvals and the sandbox. The docs say to use it only inside an externally hardened environment.source 1
source 2
Gemini CLI
Coding agent
Google
Not covered by the sandbox page checked. Sandboxing is a separate, opt-in layer.Opt-in: flag -s/--sandbox, GEMINI_SANDBOX env var, or tools.sandbox in settings.json. Methods: macOS Seatbelt, Docker or Podman containers, Windows native sandbox, runsc, lxc.Default macOS Seatbelt profile permissive-open confines writes to the project directory and allows broad reads. A strict-open profile restricts reads and writes.Default Seatbelt profile allows network. The proxied profiles route network through a proxy.settings.json: {"tools": {"sandbox": "docker"}}. SEATBELT_PROFILE env var chooses the macOS profile. Custom image via GEMINI_SANDBOX_IMAGE or .gemini/sandbox.Dockerfile.The Windows native sandbox sets a Low integrity level with icacls, and the docs say those changes persist on files after the session ends.source 1
OpenCode
Coding agent
OpenCode
Ordered rules with effect allow, deny or ask. The last matching rule wins. If no rule matches, OpenCode asks. For an operation that touches several resources, any deny denies it, otherwise any ask asks.No sandbox described on the permissions page checked.Controlled by read, edit and external_directory rules, matched with whole-value wildcards.Controlled by webfetch and websearch rules. Not an OS-level network boundary.opencode.jsonc: permissions array of {action, resource, effect}. Actions include read, edit, glob, grep, shell, subagent, skill, webfetch, websearch, external_directory. Agent rules are appended last.Rule order matters (last match wins), the reverse of tools that use first-match or deny-first. V1 used different field names than V2.source 1
Cline
Coding agent
Cline
Auto Approve toggles per category: read project files, read all files, edit project files, edit all files, execute safe commands, execute all commands, browser, MCP servers. Docs recommend only enabling read project files at first.No sandbox described on the Auto Approve page checked.Workspace versus outside-workspace toggles. The outside-workspace options only apply when the base toggle is on.Browser and MCP are separate toggles. No network boundary described.Settings UI toggles. No fixed command allowlist.Cline does not use a fixed allowlist. The model marks each command with a requires_approval flag, so what counts as safe is decided by the model. The docs call their examples not guarantees.source 1
goose
Coding agent
Block / AAIF
Three modes: Completely Autonomous, Manual Approval, Smart Approval (risk-based). Granular tool permissions are supported in the two approval modes.No sandbox described on the permissions page checked.Governed by the permission mode, not a filesystem boundary.Not described on the page checked.Default Mode in Settings. Per session: /mode auto, /mode smart_approve, /mode approve.The docs warn that Autonomous mode is applied by default. Each session has its own mode and existing sessions keep theirs when you change the default.source 1
nono
Sandbox
nono.sh
Not an approval tool. It wraps a command and enforces what it can access.Kernel-enforced sandbox CLI. Applies to the whole process tree of the wrapped command. SDKs for Go, TypeScript and Python. The project's own docs also list atomic rollback and an audit chain.You declare access, for example nono run --allow . -- COMMAND.Allowed by default. --block-net disables it. --network-profile and --allow-domain give host-level filtering through a proxy.CLI flags and pre-built profiles for tools such as Claude Code and Codex, pulled with nono pull.Network is open by default, so a filesystem-only profile does not stop exfiltration. Young project: nono's own comparison page says it was released in February 2026.source 1
source 2
source 3
Docker Sandboxes
Sandbox
Docker
Not an approval tool. Isolation boundary around the agent.microVM per sandbox. The agent has full control inside the VM, including sudo. The VM boundary is the trust boundary.Workspace directory is mounted read-write by default (agent edits your tree in place). With --clone the repo is mounted read-only and the agent works on a private clone. Outside the workspace the agent cannot reach the host filesystem.Outbound TCP goes through a host proxy and only to destinations allowed by network policy. UDP blocked unless an experimental feature is on. ICMP blocked.sbx CLI. Network, filesystem and MCP policies. Org-wide policy management is on a separate paid subscription.Credentials are injected by a host-side proxy so raw values never enter the VM. Default direct mount means file changes land on your host immediately. Local sandboxes and the sbx CLI are free to use, cloud compute is paid.source 1
source 2
NVIDIA OpenShell
Sandbox
NVIDIA
Not an approval tool. Declarative policy plus runtime controls.Open-source runtime with kernel-level isolation. Landlock for filesystem, seccomp and an unprivileged process identity against privilege escalation.Landlock confines access to declared paths only.Network policies allow only approved destinations. Other outbound traffic is denied. Provider profiles limit model traffic to approved endpoints.YAML policy (policy schema reference in the NVIDIA docs).Version 0.1.11 was the latest at check time, so the policy format may still change. nono's comparison page dates its release to March 2026.source 1
source 2
Get the full dataset. CSV and JSON with every field and source link for all 9 tools, plus a dated change log. One-time price, no account needed beyond checkout. Get it on Gumroad. The free sample is at sample.json.

Settings generator

Pick a few choices and get a starting settings file for a tool. It runs in your browser and sends nothing. Review every line before you use it.

Facts come from each vendor's public documentation, linked on every row, and were read on 2026-12-01. Docs change often, so check the source before you rely on a setting. This is information, not security advice, and no setting here guarantees safety.