The file tools answered reads, writes, patches and searches on the host whenever the
terminal environment was a LocalEnvironment (isinstance gates in file_operations_lint,
file_operations_search, file_tools and tool_result_storage). A backend that subclasses
LocalEnvironment to confine its commands (the bubblewrap plugin) could not opt out except
through the process-wide HERMES_NATIVE_FILE_READ=0, so the file tools read and wrote paths
its sandbox hides or mounts read-only.
BaseEnvironment.uses_host_filesystem (False; True on LocalEnvironment) now drives every one
of those gates through env_uses_host_filesystem(). A subclass that sets it False gets every
file operation through env.execute. Each bundled backend evaluates the gates exactly as
before; the attribute is documented in the terminal-backend plugin guide.
Under plugins.isolation: host a user terminal backend's create_environment()
ran in the host and its environment came back as an Opaque placeholder, so the
first command failed with a backwards 'not available inside the plugin host'
AttributeError and the host was left holding a sandbox nothing could clean up.
Pre-existing for every plugin terminal backend; the Singularity move makes it
reachable for Singularity users who run host isolation.
Creating the environment now refuses before the host starts anything, naming
plugins.isolation: in_process (the Bot Desktop placement refusal's shape).
The Singularity/Apptainer backend (tools/environments/singularity.py) now ships
as the official 'singularity' plugin in NousResearch/hermes-official-plugins,
registered through the terminal-environment provider seam under the same
backend name and config keys (terminal.backend: singularity,
terminal.singularity_image / TERMINAL_SINGULARITY_IMAGE, terminal.container_*).
- 'singularity' leaves BUILTIN_BACKEND_NAMES so the plugin can register it;
every hardcoded classification set drops it (the provider declares
is_remote/is_container/supports_streams instead).
- LEFT_CORE gains a singularity row: homes whose terminal.backend (or .env
TERMINAL_ENV) is singularity get the catalog plugin once, on hermes update
or agent/gateway start. An unknown-backend error for 'singularity' names
the install command (new row field terminal_backend).
- A plugin backend receives its per-task '<backend>_image' override; batch
runs register one for the active backend.
- BaseEnvironment's sudo-probe knob is renamed _passwordless_sudo_probe_supported:
plugin backends set it, and the old spelling trips the install scanner.
- Core's scratch-dir disk warning and process-exit sweep were Singularity-only
and move to the plugin; the singularity setup row, dashboard probe/row and
config defaults/bridges go too. Docs point at the plugin.
- A declared absolute default_cwd is stamped as the sandbox home even
when terminal.cwd starts the environment elsewhere, so a cd under that
home survives to the next command (Greptile).
- The file tools' plugin-home lookup shares _ssh_remote_home's guarded
bring-up: a failed connect is remembered for 30s instead of being
retried by every path resolution in one tool call (Greptile). When it
can't connect, relative paths fall back to the process cwd and the file
operation itself fails on the same connection (Teknium).
- streams.sandbox_temp_dir(): Bot Desktop and the sandboxed browser use
the environment's get_temp_dir() when it has one, else the BaseEnvironment
default, so a plugin environment that doesn't subclass BaseEnvironment can
host the screen (Greptile).
- A plugin exec_prefix() that returns a string, not a list, is refused as
"can't stream" instead of being split into one-character argv words
(Teknium).
- The missing-desktop-stack messages no longer name a terminal.<plugin>_image
key for plugin backends; they point at the plugin's own image setting
(Teknium).
Two opt-in additions to TerminalEnvironmentProvider; plugins that set
neither behave exactly as before.
- default_cwd: where commands start when terminal.cwd is unset, or is a
host path the container guard discards, instead of the generic /root.
Either an absolute in-sandbox path, or "~" for each sandbox's own home:
it stays "~" (never expanded on the host), create_environment receives
cwd="~", and the home the environment resolved is stamped on that
environment. A recorded cwd under that home is kept for later commands
instead of being dropped as a host /home/... path, and the file tools
anchor relative paths at the same home.
- supports_streams: the backend's environments implement
exec_prefix(*, user=None, interactive=True), a local argv that runs
its remainder inside the sandbox with stdio open. streams.exec_prefix
uses it for non-built-in environments, and bot_desktop placement
treats such a backend like docker/ssh/singularity instead of refusing,
so the screen, computer_use and the browser follow the terminal in.
Under plugins.isolation: host the environment reaches Hermes as an
opaque placeholder, so placement refuses with a reason naming the
setting.
Mechanical `check_doc_links.py --fix` pass over website/docs (hand-authored
and generated pages) and the zh-Hans mirror: 1,868 route-style links
(`](/section/page#anchor)`, `](/docs/...)`) become `](../section/page.md#anchor)`.
Every target was asserted to exist on disk; anchors and query strings are
preserved; fenced code blocks and inline-code examples are untouched.
Two dead targets found by the converter were fixed by hand first:
memory-providers.md linked `/user-guide/plugins` (page is
`user-guide/features/plugins`), and the zh-Hans learning-path still linked the
removed `rl-training` page — ported the EN treatment (external Atropos link).
Docusaurus build after: EN locale 0 unresolved Markdown links, 0 broken links,
0 broken anchors.