Playbox Terminal Backend for Hermes
playbox-terminal routes Hermes terminal commands into a governed Playbox room backed by NVIDIA OpenShell/libkrun microVMs. It also ships a certified RL trajectory exporter and an optional, experimental AtlasKV repository-memory tool.
The plugin is useful without AtlasKV. AtlasKV is explicitly opt-in because it changes model tool surface, context use, and cost behavior.
Features
- Governed microVM terminal (
terminal.backend: playbox)- Signed, expiring Biscuit room grants; model credentials remain on the Hermes host.
- OpenShell/libkrun isolation, default
network=False, optional BOX-7 egress capabilities and host allowlists. .git-free single-commit staging to reduce future-history contamination and reward hacking.- Stateful sessions: read-only commands use
sync="none", mutating commands usesync="delta", and cleanup performs one authoritativesync="full", full_patch=Truesnapshot.
- Certified RL trajectory export (
hermes playbox-export)- Strips repository
tests/diff hunks, blocks harness-hook tampering and.git/leaks, and can verify hybridEd25519 + ML-DSA-65evidence bundles offline.
- Strips repository
- Experimental AtlasKV (
atlas_enabled, default off)atlas_query: hierarchical verified repository/room-memory lookup with quarantined or untrusted entries filtered before retrieval.atlas_parametric_qa: optional zero-prompt-token local lookup over a signed.ptshard. Heavy ML dependencies are imported lazily only when this path is configured and invoked.
Install and configure
hermes plugins install playbox-terminal
hermes config set terminal.backend playbox
Install the Playbox CLI matching the current plugin target, Playbox v0.4.8, then create or join a room and configure Hermes. Preferred settings are plugin settings; matching environment variables remain supported for backward compatibility and benchmarking automation.
plugins:
entries:
playbox-terminal:
enabled: true
settings:
home: /path/to/guest-home
binary: playbox
image: hermes-agent-nonroot:latest
base: main
keep: true
warm: true
stats_path: /path/to/rollout.jsonl
egress: [] # example: [pypi, github]
allowed_hosts: [] # example: [github.com]
atlas_enabled: false
Put the single-use join link in the secret PLAYBOX_JOIN_LINK (for example through the plugin settings secret field or Hermes credential storage). Legacy file-based configuration remains available:
export PLAYBOX_HOME=/path/to/guest-home
export PLAYBOX_LINK_FILE=/path/to/join-link.txt
export PLAYBOX_STATS=/path/to/rollout.jsonl
hermes
Export a certified trajectory:
hermes playbox-export /path/to/rollout.final.json \
--bundle /path/to/5gate-bundle.json \
-o certified-trajectories.jsonl
Optional AtlasKV
Enable only when you want the extra retrieval tools:
plugins:
entries:
playbox-terminal:
settings:
atlas_enabled: true
atlas_index: /path/to/hikvp-index.json # or use atlas_repo
atlas_repo: /path/to/repository
atlas_memory: /path/to/room-memory.jsonl
For parametric AtlasKV, also set atlas_shard, optionally atlas_pubkey, atlas_pq_pubkey, and atlas_require_pq. Signed-shard verification is fail-closed; quarantined/untrusted memory is filtered before indexing or injection. Treat AtlasKV results as a separate experimental ablation, not as evidence for the core terminal backend.
Measured evidence
The current evidence base supports a strong community plugin release, not a claim of official frontier SOTA:
- Stateful OpenShell delegate latency: median approximately 0.07s, down from approximately 6.97s in the baseline path (about 99× lower).
- Representative
django-11848-P2-1run: resolved in 71.4s wall clock, median command 0.45s, cost $0.0663, with an offline-verified hybridEd25519 + ML-DSA-65receipt. - Clean ten-instance comparison reported for the Playbox harness: 9/10 for the stateful Playbox arm versus 6/10 stock OpenShell and 8/10 local Hermes.
- Paired 28-instance subset: 28/28 versus 22/28, McNemar
p=0.03125. - Adversarial suite: 0/20 successful attacks while preserving 19/20 utility in the reported configuration.
.gitcontamination control: older local/stock arms inspected a future gold commit in every resolveddjango-11422sample; uncontaminated solve rate in that comparison was 0/3. Playbox stages single-commit archives without.git.
Exact scripts, artifacts, caveats, and release notes are maintained in the Playbox v0.4.8 release. Benchmark numbers are versioned and should be updated only with matching artifacts. Sealed or official benchmark programs must not be represented as complete until their live-model runs and independent scoring are complete.
Security and behavior disclosures
- Commands, file writes, patches, stdout/stderr, and timing metadata are sent to the joined Playbox room host and may be visible to room operators. Join only trusted rooms.
- The plugin spawns the local
playboxbinary forplaybox mcpand, only when requested,playbox gate verify. is_container=Truemeans Hermes treats this like other container backends and does not use local dangerous-command approval prompts.- OpenShell policies do not natively enforce CPU, memory, or timeout limits. Playbox applies command timeouts externally and performs preflight checks, but isolation is represented conservatively as container/microVM-level rather than a complete resource-control boundary.
PLAYBOX_JOIN_LINKis sensitive, single-use capability material. Prefer the Hermes secret field; do not commit join links or room receipts containing them.- Offline workspace trust (
PLAYBOX_TRUST_OFFLINE_WORKSPACE) is off unless explicitly set in the environment. The plugin does not enable it by default. - Feed telemetry is off by default. If enabled, only aggregate metrics/artifact summaries are posted to the joined room, never raw commands or stdout.
- The core plugin uses only the Python standard library. Parametric AtlasKV may require additional ML packages in the environment that supplies the signed shard; those imports are lazy.
License
Apache-2.0
README from the reviewed commit 7602e96; it updates when the author re-pins.

Epistetechnician