feat: share Hermes workspace and configure Athena media providers

This commit is contained in:
Mikei386 committed 2026-10-16 22:39:40 +02:00
1 parent 9c429d5122
commit 0520cdb9ef
4 files changed
+127 -13

No files matched your search

@@ -61,7 +61,7 @@ Browser profile is `/config/.hermes-workspace/browser-profile`; the configured w
## Hermes integration
Terminal configuration: backend ssh, host 192.168.1.2, port 2224, user abc,
key `/opt/data/ssh/id_ed25519_webtop`, cwd `/config/workspace`.
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.
@@ -225,3 +225,15 @@ 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.
@@ -0,0 +1,81 @@
# Athena media in Hermes — 2026-10-16
Configured through the existing installed Hermes source's native provider fields,
without source patches, adapters or proxy services. Shared config is in the
private Hermes home; credential values must never enter this repository.
The live Athena catalog was queried separately for images, speech and transcription.
It currently exposes `athena-image`, `omnivoice-studio`, `parakeet-redux-cpu`.
Older qwen-tts/qwen3-asr aliases were not assumed to remain enabled.
## Configuration / restore
Existing named custom provider Athena supplies base URL
`http://192.168.1.212:8120/v1` and its existing credential environment variable.
- `image_gen.provider: openai`, `image_gen.model: athena-image`.
- `image_gen.openai`: model `athena-image`, provider matches existing Athena custom
provider name, base_url above, key_env names its existing credential variable.
- `tts.provider: openai`; `tts.openai`: base_url above, model `omnivoice-studio`,
voice `default`, api_key internally copied from the existing Athena credential.
- `stt.enabled: true`, `stt.provider: openai`, `stt.language: de`;
`stt.openai`: base_url above, model `parakeet-redux-cpu`, language `de`,
timeout 180, api_key internally copied from the existing Athena credential.
- WebUI official setting `raw_audio_mode: true`: microphone audio follows the
server transcription path instead of browser speech recognition. Browser
microphone permission/use still requires a secure browser context (HTTPS or
localhost); the LAN HTTP URL is not a microphone acceptance test.
Audio `api_key` fields are supported native config fields. Environment placeholders
were not expanded by the tested config accessor, so the actual existing key was
assigned internally. This private config must be backed up encrypted; restoring
only Git cannot restore credentials. Nothing in this file contains their values.
Use the official `hermes_cli.config` read/save functions or normal settings UI;
do not overwrite the rest of the user's config. Source revision and image digest
are recorded in the adjacent README.
## Actual tests and limitations
- Official image provider was registered and available with the ordinary Hermes
environment loaded. A real provider generation returned success and an image
artifact in 58.72 s (simple synthetic red-circle prompt).
- The real browser chat also discovered and called `image_generate` successfully,
returning a generated image artifact. The Gateway cache is mounted RO at its
same absolute `/opt/data/cache` path in WebUI, using the upstream media
endpoint's `MEDIA_ALLOWED_ROOTS` configuration. No application patch.
- The same synthetic STT test additionally passed in the actual WebUI venv.
- `transcribe_audio` via the official Hermes dispatcher transcribed own synthetic
German WAV correctly: “Dies ist ein kurzer Test der Spracherkennung.” 3.12 s.
- `text_to_speech_tool` with explicit output path ending `.wav` produced an actual
file successfully through OmniVoice: 32.16 s for a short synthetic German text.
This is startup/integration timing, not a throughput benchmark or listening score.
- **TTS without an explicit WAV output path currently fails**: Hermes defaults to
MP3, but Athena's active endpoint accepts WAV/PCM. Actual request returned HTTP400
with `response_format=wav oder pcm verwenden.` No invented global output-format
setting or application patch was added. Use the tool's supported `output_path`
ending `.wav` for compatible requests. Ordinary default TTS is not fully accepted.
- **WebUI built-in read-aloud cannot directly use this LAN endpoint**: its current
`_normalized_openai_tts_base_url` rejects private HTTP hosts other than loopback.
Its OpenAI player also takes credentials from specific OpenAI environment fields,
rather than Hermes' audio config key. The actual validator rejected our URL.
No SSRF guard was weakened, fake endpoint introduced, or browser player enabled
with a knowingly failing provider. This remains an upstream integration limit.
Do not present Hermes tool availability as proof that the separate WebUI read-aloud
button works. The browser chat completed its image-generation request, then additionally called
image analysis on its own initiative before answering (about five minutes total).
That redundant verification is model behavior, not the 58.72-second provider timing.
The returned absolute artifact initially failed to load before the final same-path
cache mount was applied. After the final recreation/reload, the real chat image
loaded successfully in the browser (`complete=true`, natural dimensions 1024×1024).
Workspace `/config`, server STT setting and Webtop owner 1000:1000 persisted.
Known temporary STT/WAV/workspace test files were removed; the image referenced
by the acceptance chat was retained. Neither Hermes-Agent, Webtop nor Athena
was restarted for these workspace/media changes; only Hermes-WebUI was recreated.
## References to exact installed source
- https://github.com/NousResearch/hermes-agent/blob/d923a5eb487a17c0a68801bba9ef0f56c81040a8/plugins/image_gen/openai/__init__.py
- https://github.com/NousResearch/hermes-agent/blob/d923a5eb487a17c0a68801bba9ef0f56c81040a8/tools/tts_tool_openai.py
- https://github.com/NousResearch/hermes-agent/blob/d923a5eb487a17c0a68801bba9ef0f56c81040a8/tools/transcription_cloud.py
- https://github.com/nesquena/hermes-webui/blob/757c5484ddf42f8add126262fcbc3406ae151861/api/routes.py
+31 -9
View File
@@ -42,8 +42,9 @@ Manufacturer references:
| Docker volume `hermes-agent-source` | `/opt/hermes` RW | `/home/hermeswebui/.hermes/hermes-agent` RO |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/app` | — | `/app` RW |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/cache` | — | `/uv_cache` RW |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/workspace` | — | `/workspace` RW |
| `/mnt/nvme-storage/appdata/Hermes-Workspace` | SSH worker home `/config` | `/config` RW |
| `/mnt/nvme-storage/appdata/Hermes-WebUI/home/webui` | — | `/webui-state` RW |
| `/mnt/nvme-storage/appdata/Hermes-Agent/cache` | `/opt/data/cache` | `/opt/data/cache` RO |
`HERMES_WEBUI_STATE_DIR=/webui-state` is a supported override retaining the
already-created WebUI conversations/preferences. It is separate from the shared
@@ -115,17 +116,36 @@ all messaging surfaces. Do not claim complete feature parity from a chat test.
Image generation/delivery, vision, voice, every model's inference and destructive
management actions have not been comprehensively accepted here.
The WebUI's local file panel currently browses `/workspace`. The existing Gateway
terminal operates in its SSH worker. These are different filesystems. The
upstream remote-workspace contract preserves remote `terminal.cwd` paths; it
does not establish that the local file browser mirrors an SSH filesystem. No
invented synchronization, share mount or filesystem-permission workaround was
added. Treat this as an explicit limitation until an upstream-supported end-to-end
remote file workflow is verified.
The WebUI file panel and the existing SSH worker now share the same host-backed
`/config` home/workspace. `terminal.cwd=/config` is the existing profile default;
the WebUI's supported profile workspace resolution picks it automatically. The
extra global `HERMES_WEBUI_DEFAULT_WORKSPACE` override was removed: its root
entrypoint chowns that directory, which must not change Webtop's home owner.
The image's unused `/workspace` startup fallback remains an image-local default.
No synchronization layer, remote-filesystem proxy or application patch was added.
Generated artifacts retain the Gateway's absolute `/opt/data/cache/...` paths;
the read-only cache mount exposes those same files in WebUI. Its built-in
`MEDIA_ALLOWED_ROOTS=/opt/data/cache` explicitly allows that artifact root
through the media endpoint. Other media protection/deny rules remain enabled.
User explicitly approved full-home access, including SSH/configuration data, for
UID 99 (WebUI) and UID 1000 (Webtop). Named access/default ACLs grant both rwX on
the shared tree and future files/directories. Existing owners were preserved;
the root home owner was restored to 1000:1000 after the first entrypoint test.
File creators can still explicitly restrict permissions later. Preserve ACLs in
private backups (`rsync -A` or equivalent) and verify both identities after restore.
The common mount grants the WebUI access to the entire Webtop home, not a restricted
project-only directory. Never expose this data or its private backup through Git.
Verified both directions with temporary files: worker content appeared in the
WebUI tree and text preview; WebUI-created content was read from the worker.
The actual Hermes SSH terminal still returned its exact synthetic marker after
ACL changes. Existing sessions retain their selected old workspace until changed;
the own acceptance chat was switched to Home `/config` through the normal menu.
## Backup, restore and updates
Include the existing Hermes-Agent home, WebUI `home/webui`, own workspace,
Include the existing Hermes-Agent home, WebUI `home/webui`, complete shared Webtop home including ACLs,
private env file and both installed Unraid user templates in private backups.
The Agent source volume must be restored/repopulated from the recorded matching
Agent image, not arbitrary current source. The source volume shadows `/opt/hermes`;
@@ -142,3 +162,5 @@ This remains an optional Unraid client. Its backups are part of Unraid appdata
restoration, separate from native Athena Deck model/runtime restore. Removing
this UI must never delete the shared Hermes-Agent home or source still used by
the Agent.
Media configuration, actual tests and remaining speech-player limits: [MEDIA-2026-10-16.md](MEDIA-2026-10-16.md).
@@ -26,13 +26,12 @@
<Config Name="WebUI Port" Target="8787" Default="8787" Mode="tcp" Description="WebUI Port" Type="Port" Display="always" Required="true" Mask="false">8787</Config>
<Config Name="Shared Hermes home" Target="/home/hermeswebui/.hermes" Default="/mnt/nvme-storage/appdata/Hermes-Agent" Mode="rw" Description="Appdata home" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent</Config>
<Config Name="Persistent application runtime" Target="/app" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/app" Mode="rw" Description="Persistent application runtime" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/app</Config>
<Config Name="Own workspace" Target="/workspace" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/workspace" Mode="rw" Description="Own workspace" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/workspace</Config>
<Config Name="Shared Webtop home / workspace" Target="/config" Default="/mnt/nvme-storage/appdata/Hermes-Workspace" Mode="rw" Description="Own workspace" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Workspace</Config>
<Config Name="Dependency cache" Target="/uv_cache" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/cache" Mode="rw" Description="Dependency cache" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/cache</Config>
<Config Name="WANTED_UID" Target="WANTED_UID" Default="99" Mode="" Description="WANTED_UID" Type="Variable" Display="advanced" Required="true" Mask="false">99</Config>
<Config Name="WANTED_GID" Target="WANTED_GID" Default="100" Mode="" Description="WANTED_GID" Type="Variable" Display="advanced" Required="true" Mask="false">100</Config>
<Config Name="HERMES_HOME" Target="HERMES_HOME" Default="/home/hermeswebui/.hermes" Mode="" Description="HERMES_HOME" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes</Config>
<Config Name="HERMES_WEBUI_STATE_DIR" Target="HERMES_WEBUI_STATE_DIR" Default="/webui-state" Mode="" Description="HERMES_WEBUI_STATE_DIR" Type="Variable" Display="advanced" Required="true" Mask="false">/webui-state</Config>
<Config Name="HERMES_WEBUI_DEFAULT_WORKSPACE" Target="HERMES_WEBUI_DEFAULT_WORKSPACE" Default="/workspace" Mode="" Description="HERMES_WEBUI_DEFAULT_WORKSPACE" Type="Variable" Display="advanced" Required="true" Mask="false">/workspace</Config>
<Config Name="HERMES_WEBUI_HOST" Target="HERMES_WEBUI_HOST" Default="0.0.0.0" Mode="" Description="HERMES_WEBUI_HOST" Type="Variable" Display="advanced" Required="true" Mask="false">0.0.0.0</Config>
<Config Name="HERMES_WEBUI_PORT" Target="HERMES_WEBUI_PORT" Default="8787" Mode="" Description="HERMES_WEBUI_PORT" Type="Variable" Display="advanced" Required="true" Mask="false">8787</Config>
<Config Name="HERMES_WEBUI_CHAT_BACKEND" Target="HERMES_WEBUI_CHAT_BACKEND" Default="gateway" Mode="" Description="HERMES_WEBUI_CHAT_BACKEND" Type="Variable" Display="advanced" Required="true" Mask="false">gateway</Config>
@@ -44,4 +43,4 @@
<Config Name="Compatible Python" Target="UV_PYTHON" Default="3.14" Mode="" Description="Compatible Python" Type="Variable" Display="advanced" Required="true" Mask="false">3.14</Config>
<Config Name="Persistent Python installs" Target="UV_PYTHON_INSTALL_DIR" Default="/app/python-runtime" Mode="" Description="Keep managed Python in persistent application directory" Type="Variable" Display="advanced" Required="true" Mask="false">/app/python-runtime</Config>
<Config Name="WebUI sessions and preferences" Target="/webui-state" Default="/mnt/nvme-storage/appdata/Hermes-WebUI/home/webui" Mode="rw" Description="Supported HERMES_WEBUI_STATE_DIR, retains existing WebUI conversations" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-WebUI/home/webui</Config>
</Container>
<Config Name="Shared generated media" Target="/opt/data/cache" Default="/mnt/nvme-storage/appdata/Hermes-Agent/cache" Mode="ro" Description="Same absolute artifact path as Hermes Gateway; read-only" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent/cache</Config><Config Name="MEDIA_ALLOWED_ROOTS" Target="MEDIA_ALLOWED_ROOTS" Default="/opt/data/cache" Mode="" Description="Upstream media endpoint allowlist for the shared artifact cache" Type="Variable" Display="advanced" Required="true" Mask="false">/opt/data/cache</Config></Container>