# Confinement

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

Group: Execution controls. Page: https://ai-agents-review.com/column/confinement

## Rubric criteria

- 0: No restriction: tools run as the user with no approval or policy by default
- 1: Policy or approval layer only (allowlists, approval prompts, reviewer model). No OS boundary
- 2: An OS/container boundary exists but is opt-in, **or** is default-on only for a subset of effect paths, leaving the main shell/file tools unconfined
- 3: Default-on OS-enforced boundary for the main shell and file effects (filesystem writes restricted)
- 4: Level 3, plus network restricted by default **and** children and auxiliary processes (MCP stdio, hooks, cron) confined at least as tightly

## Marks, in report order

| Runtime | Mark | Rationale |
|---|---|---|
| [codex](https://ai-agents-review.com/cell/codex/confinement.md) | 3 s | Default-on bwrap/seccomp/Seatbelt for shell and apply-patch, network denied; L4 unmet: MCP stdio servers unsandboxed |
| [goose](https://ai-agents-review.com/cell/goose/confinement.md) | 0→2 [opt: --container (stdio/goose-mcp extensions only)] s | Default Auto allows all calls, no OS boundary; --container confines only a subset, developer shell/edit stay on host |
| [hermes-agent](https://ai-agents-review.com/cell/hermes-agent/confinement.md) | 1→3 [opt: terminal.backend docker] s | Default approval layer only; docker backend confines shell and file tools (they use the terminal env); network on, so not L4 |
| [letta-code](https://ai-agents-review.com/cell/letta-code/confinement.md) | 2 s | OS sandbox default-on only for memory subagents; main shell unconfined under unrestricted mode; network never isolated |
| [nullclaw](https://ai-agents-review.com/cell/nullclaw/confinement.md) | 2 s | Sandbox enabled, auto backend wraps shell only if installed; file tools, subagents, cron, MCP stdio unwrapped; L3 unmet |
| [openclaw](https://ai-agents-review.com/cell/openclaw/confinement.md) | 0→3 [opt: sandbox.mode docker] s | Default off. Docker sandbox confines exec and file tools (sandboxed read/write/edit, src/agents/core-coding-tools.ts:19-21), network none; auxiliary-process confinement unresolved |
| [opencode](https://ai-agents-review.com/cell/opencode/confinement.md) | 1 s | Allow/ask/deny ruleset (allow *, *.env ask); no OS sandbox in release or dev builds |
| [pi](https://ai-agents-review.com/cell/pi/confinement.md) | 0→2 [alt: Docker / OpenShell / Gondolin (documented)] d | No approvals or OS boundary in the CLI; documented alternative deployments count at B but are capped at 2 (rule 1) |
| [software-agent-sdk](https://ai-agents-review.com/cell/software-agent-sdk/confinement.md) | 0→3 [opt: DockerWorkspace / server docker runtime] s | Local default host execution, NeverConfirm; container workspaces run all tools inside the container; open bridge network, so not L4 |
| [spore](https://ai-agents-review.com/cell/spore/confinement.md) | 3 s | Default Landlock+seccomp+namespaces, fatal on failure; L4 unmet: outbound network and unix sockets reachable |
