Skip to content

The agent that grows with you

docs(desktop): describe what --ignore-existing skips

Hermes Agent9d0966299305
diff --git a/apps/desktop/e2e/fixtures.ts b/apps/desktop/e2e/fixtures.ts
index 1f3995e4869..674d6f55083 100644
--- a/apps/desktop/e2e/fixtures.ts
+++ b/apps/desktop/e2e/fixtures.ts
@@ -178,7 +178,7 @@ function writeEmptyConfig(hermesHome: string): void {
* Key env vars:
* - HERMES_HOME → sandbox hermes-home (isolated config/sessions)
* - HERMES_DESKTOP_USER_DATA_DIR → sandbox electron-user-data
- * - HERMES_DESKTOP_IGNORE_EXISTING=1 → don't pick up `hermes` from PATH
+ * - HERMES_DESKTOP_IGNORE_EXISTING=1 → skip the installed runtime
* (we want the dev checkout at REPO_ROOT)
* - HERMES_DESKTOP_HERMES_ROOT → REPO_ROOT (dev checkout resolution)
* - HERMES_DESKTOP_APP_NAME → unique-ish per test (avoids single-instance lock)
diff --git a/hermes_cli/subcommands/gui.py b/hermes_cli/subcommands/gui.py
index 79cb45a14d3..b08df0f55d6 100644
--- a/hermes_cli/subcommands/gui.py
+++ b/hermes_cli/subcommands/gui.py
@@ -23,10 +23,9 @@ def build_gui_parser(subparsers, *, cmd_gui: Callable) -> None:
help="Enable deterministic desktop boot delays for validating startup UI")
gui_parser.add_argument(
"--ignore-existing", action="store_true",
- help="Ignore discovered local runtimes (active install, hermes on PATH, "
- "system Python) so no local backend starts; fall through to connect or "
- "onboarding. Explicit --hermes-root still wins. A runtime this launch "
- "just installed is still used.")
+ help="Skip the installed Hermes runtime (~/.hermes/hermes-agent) so no local "
+ "backend starts and Desktop offers connect or install instead. --hermes-root "
+ "and the bundled runtime still win; a runtime installed during this launch is used.")
gui_parser.add_argument(
"--hermes-root",
help="Override the Hermes source root used by Desktop (sets HERMES_DESKTOP_HERMES_ROOT)")
diff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.md
index ac8b90c381e..e2ba195ca2d 100644
--- a/website/docs/reference/environment-variables.md
+++ b/website/docs/reference/environment-variables.md
@@ -580,7 +580,7 @@ Three dashboard-auth providers ship in the box. For a remote Hermes Desktop conn
| `HERMES_DESKTOP_REMOTE_URL` | (Desktop side) Base URL of the remote backend, e.g. `http://host:9119`. When set, overrides the in-app Gateway URL; you still sign in from the Gateway settings panel (OAuth redirect or username/password, whichever the backend advertises). |
| `HERMES_DESKTOP_HERMES` | Desktop backend command override. Used by packagers/Nix or troubleshooting to point Electron at a specific `hermes` executable before checking the mutable managed install. |
| `HERMES_DESKTOP_HERMES_ROOT` | Desktop source-checkout override used by `hermes desktop --hermes-root`; checked before the packaged first-launch install or an existing `hermes` on `PATH`. |
-| `HERMES_DESKTOP_IGNORE_EXISTING` | Set to `1` to make Desktop ignore every discovered local runtime (the managed install, a `hermes` on `PATH`, and a system-Python `hermes_cli`) during backend resolution, so no local backend starts and Desktop falls through to connect or onboarding. Explicit `HERMES_DESKTOP_HERMES_ROOT`, an unpackaged source checkout, and `HERMES_DESKTOP_HERMES` still win. A runtime this launch just installed is still used. Equivalent to `hermes desktop --ignore-existing`. |
+| `HERMES_DESKTOP_IGNORE_EXISTING` | Set to `1` to make Desktop skip the installed runtime (`~/.hermes/hermes-agent`, or `%LOCALAPPDATA%\hermes\hermes-agent` on Windows) during backend resolution, so no local backend starts and Desktop shows the connect-or-install choice. The bundled runtime, `HERMES_DESKTOP_HERMES_ROOT`, an unpackaged source checkout, and `HERMES_DESKTOP_HERMES` still win. A runtime installed during this launch is used. Equivalent to `hermes desktop --ignore-existing`. |
| `HERMES_DESKTOP_CWD` | Initial project directory for Desktop chat sessions. Set by `hermes desktop --cwd`. |
| `HERMES_DESKTOP_PYTHON` | Absolute path to a Python interpreter for the backend, checked before Electron auto-resolves one for the source checkout. Used by worktree dev helpers (see [TUI & Desktop from Worktrees](../developer-guide/worktree-ui-dev.md)) to reuse a shared venv. |
| `HERMES_DESKTOP_DEV_SERVER` | Vite dev-server URL the Electron shell loads instead of the packaged bundle (e.g. `http://127.0.0.1:5174`). Set automatically by `npm run dev`; only relevant when hacking on the app. |
diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.md
index 7cf292f2877..00caeff2b87 100644
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@ -439,7 +439,7 @@ When you start Hermes from the application grid or menu (the launcher sets `DESK
| `--source` | Launch via `electron .` against `apps/desktop/dist` instead of the packaged app |
| `--cwd PATH` | Initial project directory for desktop chat sessions (sets `HERMES_DESKTOP_CWD`) |
| `--hermes-root PATH` | Override the Hermes source root the app uses (sets `HERMES_DESKTOP_HERMES_ROOT`) |
-| `--ignore-existing` | Force the app to ignore any `hermes` CLI already on `PATH` during backend resolution |
+| `--ignore-existing` | Skip the installed Hermes runtime so no local backend starts; offer connect or install |
| `--fake-boot` | Enable deterministic boot delays for validating the startup UI |
## How it works