Hermes CLI ground truth: install paths, --check semantics, version output #35
Notifications
Due Date
No due date set.
Blocks
#36 How Museion discovers the hermes binary
AlexKucera/museion
Reference: AlexKucera/museion#35
Reference in new issue
Block a user
Part of #12
Question
What are the ground-truth facts about the user-installed Hermes CLI that the Engine gate depends on?
hermes acp --checkactually verify (ACP deps? profile? credentials?) — read the installed source under~/.hermes/hermes-agent.Processreliably branch on?hermes --versionemit, and is the version line stable across install methods?hermesbinary live across install methods (pipx at~/.local/bin, git install, Homebrew)? Which candidate paths should a GUI app probe, given launchd's PATH excludes user-local dirs?Known on this machine (2026-08-28):
hermes acp --check→ stdoutHermes ACP check OK, exit 0;hermes --version→ first lineHermes Agent v0.20.5 (2026.8.19) · upstream 36b0a96dplus install dir/method/Python lines; binary at~/.local/bin/hermes.[Generated by AI]
Resolution
hermes acp --checkverifies imports only — the optionalacppackage plus the ACP adapter's import graph (a meaningful slice of the agent stack: schema, auth, events, permissions, provenance, session, tools). It never touches profile, credentials, config, or network. A machine can pass--checkand still fail at first session from missing credentials — auth failure is a distinct, non-gate failure class.Facts the gate builds on (cited from
~/.hermes/hermes-agentsource)Hermes ACP check OKACP dependencies not installed.+ pip hintProcessthrows ENOENT--checkcannot legitimately hang: no logging setup, no network, no stdin; measured 0.4 s. Use a defensive 5 s timeout and close stdin on the child.hermes acpwithout--checkis a blocking stdio JSON-RPC server — never spawn it bare.hermes acp --version— prints bare semver (0.20.5), instant, no network. Do NOT parsehermes --version: line 1 varies by install method (git appends· upstream <sha>; pip/pipx/brew print the bare base line) and its synchronous update check can stall ~25 s behind a dead network. If it must ever be parsed:^Hermes Agent v(\d+\.\d+\.\d+) \((\d{4}\.\d{1,2}\.\d{1,2})\).hermes(launchd PATH excludes user-local dirs; Hermes documents this problem for its own gateway inwebsite/docs/reference/faq.md:483-498):~/.local/bin/hermes— documented per-user location~/.local/bin/hermes-acp— ACP-host shim, accepts--checkidentically~/.hermes/hermes-agent/venv/bin/hermes— survives a missing shim/opt/homebrew/bin/hermes,/usr/local/bin/hermes— Homebrew / root-mode (unsupported by Hermes, best-effort)/usr/local/lib/hermes-agent/venv/bin/hermes— root-mode fallbackzsh -lc 'command -v hermes'(mirrors Hermes' own PATH-snapshot approach)~/.hermes/hermes-agent/, binary~/.local/bin/hermes; root-mode →/usr/local/lib/hermes-agent/,/usr/local/bin/hermes. pipx/pypi and Homebrew installs are explicitly unsupported (website/docs/getting-started/platform-support.md:45-48).acp_adapter/entry.py:158-162; ImportError pathhermes_cli/main.py:12863-12866; version printerhermes_cli/_startup_fast.py:183-250+hermes_cli/banner.py:646-661; bare-semver probeacp_adapter/entry.py:152-155; shim writerscripts/install.sh:1893-1935; documented install layoutswebsite/docs/getting-started/installation.md:48-53.Gate synthesis
The gate composes from three facts: (1) locate the binary by absolute-path probe — resolution is the gate's job, not the shell's; (2) health =
<hermes> acp --check, stdin closed, ~5 s timeout, exit-status branching; (3) version =hermes acp --version. The gate proves install/adapter health, not session readiness — auth problems surface later at first session and are not the gate's failure to catch.[Generated by AI]