Files

Hermes Workspace: Debian Webtop over SSH

Status: installed and tested on Unraid, 2026-10-16. This supersedes the removed Hermes-Sandbox SSH derivative. User explicitly authorized this Webtop experiment, including persistent additional packages. No custom Docker image or Hermes code patch.

Components and boundaries

  • Community Apps: https://ca.unraid.net/apps/webtop-1mtwder1vw909b
  • Image: lscr.io/linuxserver/webtop:debian-xfce
  • Pulled manifest: sha256:d925f9c84663fe57735be4defe95a338d32bc37f2e12b9e0f0981e91b6bd0a5d
  • Tested amd64 image ID: sha256:293999375c3afb3c365aaec873a9d6a6d44b0846cb6376f16b296e2a756e46e5
  • Version: eb802092-ls217, vendor build 2026-10-13.
  • Cua driver 0.36.0, official release from https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.36.0
  • Driver SHA256: d09deb163d5c505493c865c0882ccf261d460c515afe9df1ad1e5d4173f2a4f9
  • agent-browser 0.26.0 from npm; Debian's Chromium from Webtop.
  • Container Hermes-Workspace, bridge network, UID/GID 1000, no privileged mode, no Docker socket. Hermes-Agent also has no Docker socket.
  • LAN ports: 192.168.1.2:3020 HTTP desktop, 3021 HTTPS desktop, 2224 SSH. Webtop HTTPS uses its own certificate; a browser may request certificate acceptance. The persisted Unraid template publishes standard host ports; a GUI recreation may bind all host interfaces instead of the explicit LAN-IP used by the installation.
  • The existing Webtop-Debian container had been repurposed without checking its intended use with the user. That was an installation mistake. At the user's subsequent instruction, the retained installation now has dedicated Hermes-Workspace branding, Appdata and mount-source names. All its data was preserved. Port 3010 belongs to Immich-Kiosk and was not changed.

Persistence and update mechanism

Host /mnt/nvme-storage/appdata/Hermes-Workspace is /config (user home). Its init subdirectory is additionally mounted at /custom-cont-init.d:ro; services at /custom-services.d:ro; tools at /opt/hermes-workspace.

Native packages now use the official LinuxServer Docker mod:

DOCKER_MODS=linuxserver/mods:universal-package-install
INSTALL_PACKAGES=openssh-server|rsync|python3|python3-venv|python3-pil|nodejs|curl|ca-certificates|xdotool|at-spi2-core|dbus-x11|xauth

The variables are stored in the live Unraid template. Packages are reinstalled on image recreation; they are not stored in home. The former custom package installer and packages.txt have been removed. For supported portable GUI apps, LinuxServer recommends proot-apps instead. Official reference: https://docs.linuxserver.io/selkies/user-guide/installing-apps/

configure-session.sh is configuration only, deployed as init/90-hermes-session-config. It contains no apt, npm, curl, or binary-download installation. It configures key-only SSH, desktop environment, symlinks and ownership, using LinuxServer's custom init mechanism. sshd-service.sh remains as services/sshd. These Hermes-specific helpers are not vendor-provided integrations and remain necessary for the existing SSH/desktop connection.

Existing Cua and agent-browser files remain in the persistent tools mount; webtop-session and webtop-browser live in tools/bin. A fresh restore requires this tools directory as well as the home, init and services directories. Browser profile is /config/.hermes-workspace/browser-profile; the configured working directory is now /config (home itself). No user data or keys were removed by the migration.

Hermes integration

Terminal configuration: backend ssh, host 192.168.1.2, port 2224, user abc, key /opt/data/ssh/id_ed25519_webtop, cwd /config. The dedicated key is generated internally, never printed. MCP pins the host public key through /opt/data/ssh/webtop_known_hosts, obtained directly from the container. The ordinary SSH backend also has this verified host key in its known_hosts.

mcp_servers.webtop-desktop runs the official Cua MCP driver via SSH: /opt/hermes-workspace/bin/webtop-session /opt/hermes-workspace/cua/cua-driver mcp --no-overlay. The session helper uses Webtop's existing X11 display :1 and its current D-Bus session. This is NOT Hermes' built-in computer_use/Bot Screen path: that path starts its own separate Xvnc screen. No second Xvnc desktop is installed or started here.

Browser automation runs through the terminal command /opt/hermes-workspace/bin/webtop-browser, using a headed Chromium with its own persistent profile. Native Hermes browser tools were not rewritten to point there. SOUL.md has a short routing instruction; workspace AGENTS.md documents the tools. Existing instructions were retained and a protected private backup made in /opt/data/backups/webtop-20261016.

Hermes discovered 66 tools from webtop-desktop. Existing 19 MCP definitions remain unchanged (20 definitions total). Existing deferred Tool Search behavior remains. Only Hermes-Agent was restarted to activate its configuration; no Athena, Deck, OpenCode or other service restart.

Verification

  • SSH authenticated as abc with the dedicated key; cwd correct.
  • Real Hermes terminal_tool executed commands and opened Example Domain in Chromium.
  • Upload/download via scp from Hermes matched exactly.
  • Cua MCP captured Webtop's actual 1024x768 desktop and Mousepad window.
  • Cua mouse click, foreground keyboard entry and Ctrl+S saved exactly HERMES_WEBTOP_DESKTOP_OK; verified by independent file read.
  • Browser opened a synthetic localhost HTTP fixture, filled a field, clicked its button and read exactly OK: HERMES_BROWSER_OK. Screenshot visually inspected.
  • Public https://example.org navigation and title read passed.
  • Actual Hermes MCP discovery/registry registered 66 tools and dispatched list_windows.
  • Full container removal/recreation from the same untouched manufacturer image performed twice. Files, key identity and driver survived; SSH/system packages were restored by the boot recipe. Final browser/form test passed after recreation.
  • Latest image pull reported up-to-date. This tests image recreation, not an untested future Debian/Python major-version upgrade.
  • Final Webtop HTTPS returned 200; Hermes dashboard reachable (302 login redirect).

Limits: background Cua input is not reliable on every widget. The tested path uses foreground input on this dedicated desktop. Cua may report effect: unverifiable; verify actual effects independently. Driver emits cursor-overlay warnings despite --no-overlay; tested capture/input still worked. agent-browser reports that repeated launch flags are ignored while its already-configured daemon runs; tests passed. A short real Hermes model run under service UID 99 also passed: terminal wrote and read back its own exact marker, then the model called mcp__webtop_desktop__get_desktop_state and produced its own screenshot. Actual session tool-call metadata and both files were independently checked. This is an integration test, not a broad autonomous GUI task or intelligence benchmark.

Restore and removal

This is an optional Unraid integration, not a native Athena Deck dependency. Back up the entire Webtop-Debian Appdata tree and Hermes-Agent Appdata, including SSH keys, browser profile, config.yaml and SOUL.md, using an encrypted backup. Keep the Unraid template /boot/config/plugins/dockerMan/templates-user/my-Hermes-Workspace.xml. No claim that an existing backup job already includes these paths has been made.

Restore appdata plus template before creating the vendor image. Preserve ownership and executable bits; root-owned init/service scripts need 0755. Generate a new SSH key only if the old private backup is unavailable, then replace authorized_keys internally and re-pin the container host key. Never put keys/cookies/config backups into Git. On a fresh Debian host Docker plus the documented image/mounts are required; no dependence on today's Athena CUDA/compiler/model stack.

For removal: return Hermes terminal to local, remove only webtop-desktop MCP and the added SOUL section, then remove the Workspace container/template. Preserve user work unless explicitly asked to delete it. Private pre-change Hermes config backups exist, but restoring them wholesale later could overwrite newer settings.

Service-user correction discovered by actual model test

The initial root-only tool tests did not exercise Hermes service UID 99. The real model run exposed unreadable /etc/passwd and /etc/group (0600) in the existing Hermes container and root-owned newly generated SSH files. Restored standard 0644 permissions on those two non-secret identity files and assigned /opt/data/ssh to 99:100 (directory 0700, private key and pinned host file 0600). No shadow files were read or changed. The origin of the preexisting 0600 identity-file modes was not established; do not call it a proven upstream bug. Validate service-user lookup and key access after restoring/updating Hermes too. No Hermes source patch.

The second isolated CLI test accidentally selected mcp-webtop-desktop as a startup filter. CLI's filter expects the configured server key webtop-desktop, even though the registered toolset is named mcp-webtop-desktop. Correct test: hermes --cli --reasoning low -t terminal,webtop-desktop -z '<synthetic task>'. The final test used this correct filter and ran as UID 99, not root.

Naming correction requested by user

On 2026-10-16, moved the complete existing Appdata tree from /mnt/nvme-storage/appdata/Webtop-Debian to /mnt/nvme-storage/appdata/Hermes-Workspace with the Workspace stopped. Updated all four bind sources and the Unraid template. Verified no other container referenced the source directory before moving it. Container name is Hermes-Workspace; GUI title Hermes Workspace. Icon is the official Nous Hermes apps/desktop/public/apple-touch-icon.png, also refreshed in Unraid's icon cache. No data was discarded; no replacement generic Webtop container was created. Hermes-Agent, Athena and OpenCode were not restarted for this naming correction.

The public XML is generated from explicit non-secret deployment constants; it does not export private live template fields. Re-enter any separately configured authentication settings from the private backup when restoring.

Browser streaming correction (2026-10-16)

User reported WebSocket disconnected in the actual Webtop viewer. Previous HTTP 200 and SSH/MCP tests did not validate this streaming path. Selkies was waiting for PulseAudio's /defaults/pid; PulseAudio repeatedly exited. The reused /config/.config/pulse directory and files still belonged to the old PUID 99, while the new desktop runs as abc/1000. Group permissions allowed writes, but PulseAudio requires ownership to match its runtime user. Chown of this directory to abc:abc allowed the existing s6 supervisor to start PulseAudio normally; no audio/streaming service script was patched and no manual readiness marker was fabricated.

The same correction is now in configure-session.sh for subsequent image recreations. Confirmed PulseAudio up, readiness PID present, Selkies listening on localhost:8082, and a real WSS upgrade through published HTTPS port 3021 at /api/websockets. Three actual server messages were received. Direct browser video-frame rendering is not claimed from this protocol test. Use HTTPS https://192.168.1.2:3021 and reload the viewer after the repair. No host, Hermes, Athena or OpenCode restart for this fix.

Home as workspace (2026-10-16)

Hermes terminal.cwd is /config. Workspace instructions were moved to /config/AGENTS.md; the Hermes routing section uses the same home path. Existing files under /config/workspace remain untouched. No service was restarted; already running sessions may retain their previous working directory. SSH access and readability of the home instructions were verified as Hermes UID 99.

Remote AGENTS.md discovery and actual model test

Hermes project-context discovery reads local paths; terminal SSH does not itself make the remote AGENTS.md visible. The explicit read instruction from remote-workspace-instruction.md is appended to Hermes /opt/data/SOUL.md, which is automatically included in the model system instructions. Preserve the rest of SOUL.md during restore. Existing conversations may need a new session to receive updated instructions; no gateway restart was performed.

An isolated actual-model CLI session as UID 99, using the terminal toolset, read /config/AGENTS.md and returned a random temporary marker present only in that remote file, not in the user test prompt. Its recorded tool call explicitly referenced the path, the tool result contained the marker, and the assistant response matched it. It also reported /config as cwd. Exit code 0. Only booleans/tool metadata were exported; the temporary marker was removed. The session database did not retain a system-prompt body, so no stored-prompt inspection claim is made. This is an instruction-based workflow, not a new remote automatic-discovery implementation or a guarantee of model compliance.

Vision cache permissions (2026-10-16)

Hermes runs as UID 99/GID 100. Its /opt/data/cache/vision had been root:root mode 0700 and was therefore not writable by the service user. Only that cache tree was reassigned to 99:100; mode 0700 was retained. A temporary synthetic file was created, read and deleted successfully as UID99. No service restart or image-analysis inference was performed. The origin of the root-owned directory was not established. Run future Hermes tests under the actual service UID, not root; preserve this ownership on restore.

The SOUL.md read instruction is present; an explicit task-category trigger (file/media/programming tasks) has not yet been added, pending the user's own routing experiment.

Shared WebUI workspace — 2026-10-16

At the user's explicit request, the same complete home is mounted RW at /config in Hermes-WebUI. Named/default ACLs for UID 99 and UID 1000 allow both existing container identities to use current and newly created workspace files. Full-home access, including credentials/configuration, was explicitly approved; this is not a project-only mount. No worker restart was required. Preserve ACLs in the private backup. The UI uses Hermes profile terminal.cwd=/config as its default, not a global startup override that would chown Webtop's home. See the WebUI integration README for the acceptance results and media limitations.

SSH host-key protection after shared-home ACLs — 2026-10-17

The native WebUI acceptance found sshd down after the intervening Webtop restart. sshd -t proved its two root-owned private host keys had mode0660, expanded by the shared-home ACL mask; OpenSSH rejected them as unprotected and loaded no keys. Restored their0600 mode without reading keys or restarting Webtop. Existing s6 supervision brought sshd back. A real new-Hermes terminal printf test returned its exact expected marker with exit0. Added chmod600 for existing host keys inside the versioned startup recipe. SSH host private keys are an explicit protected exception to full-home shared ACL access; do not loosen them when restoring ACLs.