# hermes-agent · 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.

- Runtime: [hermes-agent](https://ai-agents-review.com/runtime/hermes-agent.md)
- Column: [Confinement](https://ai-agents-review.com/column/confinement.md) (Execution controls)
- Mark: 1→3 [opt: terminal.backend docker] s
- Default deployment: 1
- Best supported configuration: 3 (opt: terminal.backend docker)
- Page: https://ai-agents-review.com/cell/hermes-agent/confinement

## Rationale

Default approval layer only; docker backend confines shell and file tools (they use the terminal env); network on, so not L4

## Rubric 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
- 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

## Review finding

No OS boundary by default (`terminal.backend: local`). Approval gate `smart` (an auxiliary-LLM guardian) runs after hardline command floors that cannot be bypassed; `--yolo` allows everything else. Contexts with no matching unattended rule are allowed. File tools deny writes (not reads) to credential and system paths. [opt: docker (cap-drop ALL, network on by default), modal, daytona, vercel, ssh]. [X33][X34][X35][X36][X37][X38][X39] Note X-3

## Evidence cited by the mark

- [X34] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/hermes_cli/config_defaults.py#L1611-L1640 — approvals defaults: mode smart, timeout 300, cron/single-query/unattended deny — [S]
- [X38] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/tools/environments/docker.py#L318-L330 — [opt docker] cap-drop ALL with selective add-back — [S]
- [X39] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/hermes_cli/config_defaults.py#L355-L360 — [opt docker] docker_network True by default — [S]

## Evidence also cited by the review finding

- [X33] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/hermes_cli/config_defaults.py#L284-L286 — terminal backend default `local` — [S]
- [X35] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/tools/approval.py#L1310-L1334 — hardline floors and user deny list evaluated before yolo — [S]
- [X36] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/tools/approval.py#L1428-L1438 — non-CLI/gateway/ask context with no matching unattended rule is allowed — [S]
- [X37] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/agent/file_safety.py#L268-L296 — file-tool write deny list (~/.ssh, .aws, .gnupg, Hermes .env, /etc/shadow...) — [S]

## Grading record

- Grader A (default / best): 1 / 2
- Grader B (default / best): 1 / 3
- Adjudication: disagreement. Default approval layer only; docker backend confines shell and file tools (they use the terminal env); network on, so not L4
