Marks / Execution controls / Confinement
opencode · Confinement
Allow/ask/deny ruleset (allow *, *.env ask); no OS sandbox in release or dev builds
Level
Criteria for this column
- 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
met - 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
What the source review found
No OS sandbox in release or dev builds; shell, MCP stdio and file tools run as the user. An ordered allow/ask/deny ruleset defaults to allow *, external directories included; *.env reads ask. Shell commands are parsed for paths. Remote workspaces exist only if the embedder supplies a provider. A child agent's rules are not intersected with its parent's denies. X96X97X98X99X100
Pinned evidence
Cited by the mark
- X96
default permissions allow * with ask for versioned skills and *.env reads
- X98
shell commands parsed into external_directory/shell requests
anomalyco/opencode packages/core/src/shell/permissions.ts L26-L60
Also cited by the review finding
- X97
no matching rule means ask
anomalyco/opencode packages/core/src/permission/policy.ts L107-L109
- X99
child session rules: own agent plus inherited session rules (no parent-deny intersection)
- X100
workspace providers supplied by embedder
anomalyco/opencode packages/sdk/src/internal/host.ts L21-L57
Two independent graders
- Grader A
- 1 / 1
- Grader B
- 1 / 1
- Final
- 1 / 1