Skip to content

Add Hermes as a desktop app and a coding agent - #7469

Merged
spencerbull merged 23 commits into
quattrofrom
hermes-agent
Sep 1, 2026
Merged

spencerbull merged 23 commits into
quattrofrom
hermes-agent

Conversation

@omarchybot

@omarchybot omarchybot commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

Adds Hermes in the places it belongs: the desktop app under Install > AI and Remove > AI, and the terminal agent under Setup > Defaults > Agent.

Pairs with omacom/omarchy-pkgs#166, which adds the hermes-desktop package.

One Hermes per machine

The two cannot share an installation the obvious way round. Hermes Desktop only runs against a runtime built from its own commit — the version gap against any published CLI fails its readiness probe with a 401 — so it provisions its own under ~/.hermes and puts that on PATH. Left alone that gives a machine two Hermeses on different Python versions, taking turns overwriting ~/.local/bin/hermes and sharing one HERMES_HOME between them.

So the package decides ownership. Where hermes-desktop is installed it owns Hermes outright: omarchy-install-hermes-cli writes no stub, removes its own copy if it made one earlier, and reports through --check whether the app has finished setting Hermes up. Installing the app supersedes a CLI that was there first; installing the CLI second finds the app already owns it. Either order converges on the app's installation, so the terminal, the default agent and the app are the same Hermes.

Ownership keys off the package rather than ~/.hermes, because the package is there before the app has ever run — exactly when a second copy would otherwise get built.

Removal

Dropping the package alone would strand the runtime the app installed, which is the larger part of it — past 2 GB of checkout and venv — along with its command on PATH. omarchy-remove-ai-hermes takes both, and keeps everything in ~/.hermes that is the user's: chats, memories, and the skills Hermes wrote for itself.

Only when the app actually installed them, though. The official Hermes installer uses the same paths, so the runtime is only the app's once the app has finished putting it there — .hermes-bootstrap-complete is what says so, and without it removing the package is the whole job. Ownership of ~/.local/bin/hermes is decided the same way throughout: by the marker line the installer writes, which is why Remove Preinstalls, the migration and the installer all ask omarchy-install-hermes-cli --owns rather than matching it themselves.

The terminal agent

Without the desktop app, Hermes is a mise-backed stub like the other agents, and it needs an installer of its own rather than a line in omarchy-mise-install.

Hermes pins every one of its dependencies with == and declares Requires-Python >=3.11,<3.14, so it can neither be built against Arch's Python nor share the python-* packages. Given no compatible interpreter to hand, uv builds the venv against the system Python in violation of that bound, reports success, and leaves the breakage to surface later inside a dependency — so the interpreter is pinned, and re-checked on every run, because mise up reinstalls without the pin. The cooldown override is exported rather than set on the install line, so the version resolved to run is the one just installed. mise's pipx backend also shells out to uv, which a stock Omarchy does not have; it comes from mise, so neither route needs root.

omarchy-agent learns a hermes case. Hermes has no "start interactive, seeded with a prompt" mode, so a prompt goes through --oneshot, which answers and exits.

Glyph

U+E90A, from Font Awesome's staff-snake (CC BY 4.0) — the mark Hermes serves as its favicon, and titles its README with. Their app icon is a detailed portrait, which traces into an even grey smudge at menu size next to the flat silhouettes this font is made of.

Rebased onto quattro. Ori took U+E909 in #7709 while this was open, so the Hermes mark moved to U+E90A in the font, the menu entries, the font README and the charset the menu test pins.

Copilot AI balanced review requested due to automatic review settings August 19, 2026 09:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds Hermes as a first-class “coding agent” option and provides dedicated installers to ensure Hermes CLI runs with a pinned Python via mise.

Changes:

  • Add Hermes to the default-agent menu and ensure it’s included in alphabetical sorting tests.
  • Introduce Hermes CLI/desktop installers and integrate Hermes into the default-agent and agent launcher scripts.
  • Update user mise install flow to install the Hermes CLI wrapper.

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/shell.d/menu-test.sh Extends expectations to include Hermes in agent metadata and sorted menu labels.
install/user/mise.sh Calls Hermes CLI installer during user mise setup.
default/omarchy/omarchy-menu.jsonc Adds Hermes entries to “default agent” and “install AI apps” menus.
bin/omarchy-install-hermes-cli New Hermes CLI installer that writes a mise-backed wrapper with pinned Python.
bin/omarchy-install-ai-hermes New installer for Hermes desktop app that pre-installs CLI to satisfy PATH probe.
bin/omarchy-default-agent Adds Hermes option and routes installation/presence checks via a Hermes-specific installer.
bin/omarchy-agent Adds Hermes command invocation wiring (oneshot vs interactive behavior).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 19, 2026 10:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 8 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 19, 2026 10:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 8 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 19, 2026 11:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 8 changed files in this pull request and generated no new comments.

@omarchybot omarchybot changed the title Add Hermes as a GUI app and a coding agent Add Hermes as a desktop app and a coding agent Aug 19, 2026
Copilot AI review requested due to automatic review settings August 19, 2026 17:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 10 changed files in this pull request and generated no new comments.

Suppressed comments (2)

install/user/mise.sh:14

  • This setup leaf runs during new-user provisioning or an explicit application refresh, not during a normal update; updates rely on pending migrations, and this PR adds none. Existing Omarchy users therefore will not receive the Hermes preinstall wrapper while fresh users will. Add a migration that invokes this installer when the preinstall opt-out marker is absent.
omarchy-install-hermes-cli

default/fonts/omarchy/README.md:13

  • The PR description says this glyph was traced from Hermes' upstream raster icon, while this provenance record attributes it to Font Awesome's staff-snake under CC BY 4.0. Since this README is the repository's source and licensing record for the font, update it (or the glyph/PR description) to identify the artwork actually embedded.
- `U+E908` — Hermes, from <https://fontawesome.com/icons/staff-snake> (CC BY 4.0), the mark Hermes serves as its favicon

Copilot AI review requested due to automatic review settings August 20, 2026 06:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 11 changed files in this pull request and generated no new comments.

Suppressed comments (1)

default/fonts/omarchy/README.md:13

  • This provenance conflicts with the PR description, which says U+E908 was traced from Hermes' raster app icon because no vector mark was published. The icon-font guide identifies this README as the sole provenance record, so point it at the artwork actually used (or correct the PR description if the Font Awesome SVG was the source).
- `U+E908` — Hermes, from <https://fontawesome.com/icons/staff-snake> (CC BY 4.0), the mark Hermes serves as its favicon

@camamacheiro

Copy link
Copy Markdown

I prepared a narrower agent-only Hermes integration against the current quattro branch:

This deliberately keeps Hermes Desktop, the usage monitor and branded-font work outside the default-agent change. The integration uses Nous Research's supported installer rather than PyPI/pipx/AUR packaging, wires the correct --yolo and --oneshot launch modes, links Omarchy skills into ~/.hermes/skills, adds an existing-user migration, and verifies installer failure/cleanup behavior.

Focused Hermes/default-agent/menu tests and the full CLI suite pass. The broader shell suite has only the same host-dependent failures reproduced on untouched Quattro.

I have not opened a competing PR. This branch is available for the maintainer branch to cherry-pick or adapt so the existing Hermes efforts can converge.

@vandaimer

Copy link
Copy Markdown
Contributor

This PR might help with Hermes HUD styling

#7094

@teknium1 teknium1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed from the Hermes side — we verified every load-bearing claim against the hermes-agent codebase and they all check out:

  • Requires-Python >=3.11,<3.14 with fully ==-pinned deps is correct, so the UV_PYTHON=3.13 pin (re-checked on every run, since mise up reinstalls without it) is the right defense.
  • The desktop app's PATH probe really is hermes --version on a 15s budget (DEFAULT_PROBE_TIMEOUT_MS = 15_000), and a cold run measures ~10.5s — so --now pre-warming the install before handing Hermes to the GUI is exactly right, and the margin is as thin as the comment implies.
  • .hermes-bootstrap-complete is written last by our bootstrap; using it plus the ~/.hermes-pointing wrapper as the readiness test is the correct combination.
  • --yolo and --oneshot <prompt> exist and compose as used in omarchy-agent; --oneshot answers and exits, so the seeding comment is accurate.
  • Removal scope is right: ~/.hermes/hermes-agent, bootstrap-cache, bin, node belong to the app; chats/memories/skills under ~/.hermes and connections under ~/.config/Hermes are the user's. The hermes/hermes-agent/hermes-acp wrapper sweep matches what our install actually writes.

Keying ownership off the package rather than ~/.hermes is the right call for exactly the reason stated — the package exists before the app has ever run.

One operational note, not a blocker: we ship several times a week, so the stub's per-run interpreter check and MISE_MINIMUM_RELEASE_AGE=0 will both earn their keep. First run after an omarchy update may eat the minute-long reinstall — acceptable, just expected.

Approve from Nous.

@sangfrois

Copy link
Copy Markdown

I'll install omarchy when Hermes is on the stable release. Thanks for the work you guys

Hermes joins Install > AI as a desktop app, sits beside it under Remove > AI,
and becomes a choice in the default-agent list. The CLI installs through
omarchy-install-hermes-cli rather than a bare `mise use`, so its interpreter
is pinned before mise builds it.

Rebased onto quattro. Ori claimed U+E909 in #7709 while this branch was open,
so the Hermes mark moves to U+E90A in the icon font, the menu entries, the
font README, and the charset the menu test pins. The glyph outline itself is
unchanged; it is spliced in beside Ori rather than over it.

Co-Authored-By: witcheer <witcheer.eth@gmail.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SySdB3RtCA8BNv6Am246BP
@spencerbull

Copy link
Copy Markdown
Contributor

Thanks for the work on this. I re-reviewed the Hermes installation flow end to end, including several independent Claude Fable review passes and installation on a disposable current Omarchy VM.

Teknium’s approval carries substantial weight here. The upstream-sensitive scripts remain byte-identical to the commit he reviewed, and the Hermes-specific design checked out:

  • The Python 3.13 constraint is handled correctly.
  • The mise/PyPI installation completed successfully.
  • The cold install, readiness marker, 15-second desktop probe, and --now path behaved as intended.
  • Hermes Agent 0.19.0 ran successfully on Python 3.13.15.
  • The packaged desktop application installed and mapped a real Hermes window under Hyprland.
  • All 162 focused Hermes CLI, removal, default-agent, and menu assertions passed.

The review identified one narrow Omarchy-side ownership issue around ~/.local/bin/hermes.

bin/omarchy-install-hermes-cli can replace an existing wrapper created by Hermes’ official installer, while bin/omarchy-remove-preinstalls can delete that wrapper whenever Hermes Desktop is absent. Omarchy should only replace or remove a Hermes wrapper carrying its own omarchy-install-hermes-cli marker.

The review also confirmed that existing users need a migration equivalent to the recent Hey/Ori migrations. Adding Hermes to install/user/mise.sh covers fresh installations, but does not install the preconfigured wrapper during an update. That migration should respect both preinstalls-removed and externally owned Hermes wrappers.

I’m going to open a small follow-up PR against this branch that:

  • Preserves externally owned Hermes wrappers.
  • Makes --check and normal installation agree on external ownership.
  • Limits “Remove Preinstalls” to Omarchy-created wrappers.
  • Adds the existing-user migration.
  • Adds focused regression coverage for these cases.

I did not find a problem with the Hermes packaging or installation strategy itself. The follow-up should be limited to tightening Omarchy’s ownership and upgrade behavior.

@spencerbull

Copy link
Copy Markdown
Contributor

The installation hardening from the review is ready in #8539.

It targets this PR’s hermes-agent branch directly, so merging it will fold the changes into #7469 rather than create a competing PR against quattro.

It preserves externally owned Hermes wrappers, adds the existing-user migration, and adds focused ownership regressions. The disposable Omabot validation passed 188 targeted assertions, including a real Hermes installation, and the final independent Fable review returned GO.

Clear inherited session-source tags for Omarchy's local one-shot process so Hermes records the launch directory before the exact session is resumed in the TUI.

Co-Authored-By: Codex XHigh <noreply@openai.com>
@spencerbull

Copy link
Copy Markdown
Contributor

@dhh Verified. The missing piece is not a seeded-TUI flag: Hermes's TUI query path interprets control syntax, so it cannot safely carry an arbitrary launcher prompt as literal data.

#8705 is now updated to the final 64203cc2 implementation. It uses a two-stage handoff:

  1. Seed with hermes --yolo --usage-file "$usage" --oneshot="$prompt", which binds option-shaped prompts as data and avoids the TUI command/interpolation layer.
  2. Require a completed, non-failed usage report with a nonempty exact session_id.
  3. Resume only that session with hermes chat --yolo --tui --resume "$session_id".

The helper also clears inherited HERMES_SESSION_SOURCE for both stages so Hermes persists source=cli and the actual launch cwd/workspace, retries the seed once after first-run provider setup, and cleans the temporary usage file on every exit path. The installer capability-gates on --usage-file rather than rejecting older compatible Hermes releases, preserves unsupported foreign installs instead of taking ownership, and leaves an unprompted launch exactly hermes --yolo.

I independently reviewed the cumulative fdb3755c..64203cc2 diff and found no substantive current blocker. I then validated the exact SHA in a credential-free disposable Omabot/Proxmox worker against real Hermes Agent 0.19.0: all 57 focused assertions passed; a multiline prompt beginning with --help and containing shell/slash/brace control syntax plus a trailing backslash reached the provider unchanged; the handoff resumed the exact reported session; Hermes's DB recorded source=cli and the correct cwd/workspace; success and failure paths removed the usage file; a foreign Hermes install remained unchanged; and the unprompted argv remained exactly --yolo. The worker was destroyed after validation.

The remaining gaps are rendered-TUI automation and a successful real first-run setup replay in the credential-free worker; both control paths have focused mock coverage. So yes: prompted-session behavior is ready, and #7469 needs the stacked #8705 merged into hermes-agent before #7469 lands.

🤖 Generated by GPT-5.6 in Codex. Reviewed and runtime-validated by Codex XHigh.

@spencerbull

Copy link
Copy Markdown
Contributor

Follow-up after @teknium1's NousResearch/hermes-agent#97121: I reviewed its merged commit and current Hermes main. It fixes the primary upstream problem correctly — on a real TTY, chat -q now seeds a live session and bypasses slash-command, ! shell, interpolation, and file-drop dispatch for the initial prompt. That is the right long-term interface for Omarchy.

It does not make #8705 obsolete yet:

  • The feature is not released. The latest Hermes GitHub release predates #97121, PyPI still serves 0.19.0, and Add Hermes as a desktop app and a coding agent #7469's CLI installer currently installs the PyPI package. Existing Hermes Desktop runtimes also cannot be assumed to contain an unreleased main change.
  • Current Hermes main still does HERMES_TUI_QUERY.trim(), so leading and trailing prompt whitespace is lost before the new literal submission path sees it.
  • The first-run guard still runs setup and then returns, without replaying the original seeded query after successful setup.
  • A direct replacement must still clear an inherited HERMES_SESSION_SOURCE; otherwise a local Omarchy launch can retain a gateway/source tag instead of persisting the local CLI source and launch workspace.

For those reasons, #8705 at 64203cc2 should remain as written for now. Its one-shot → validated usage report → exact-session resume path supports released Hermes 0.19.0 and current Desktop-owned installations, preserves the exact prompt, replays after setup, clears the inherited source for both stages, and has already passed the disposable Omabot/Proxmox validation. The top-level one-shot, --usage-file, and exact resume interfaces it uses remain present on current Hermes main, so Teknium's change does not break the compatibility path.

My recommendation is to merge #8705 into hermes-agent so #7469 is correct for installations available today. Once #97121 is released through both supported Hermes installation paths and upstream preserves raw startup whitespace plus setup replay, we can simplify Omarchy to the native seeded-TUI invocation and rerun the runtime validation.

🤖 Generated and verified by GPT-5.6 in Codex.

Hermes now keeps chat queries interactive and literal to TUI control syntax, so launch it directly and let its own session flow replace the local one-shot, usage-file, and resume bridge.

Gate installation on the capability added with native interactive queries, preserve unowned mise environments, and keep the unprompted launch path unchanged.

Co-Authored-By: Codex XHigh <noreply@openai.com>
@spencerbull

spencerbull commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

NousResearch/hermes-agent#97121 is merged, so stacked #8705 now switches prompted launches to Hermes's native interactive query path; Codex XHigh independently reviewed that update, and its remaining upstream edge cases are documented on #8705. We will hold #7469 until a published Hermes Agent version containing #97121 is available through Omarchy's supported installer, then land #8705 before this PR.

— 🤖 Codex, posting on behalf of @spencerbull

@smfworks

Copy link
Copy Markdown
Contributor

#7469 never links Omarchy agent skills into Hermes.

#7392 adds the usual ln -sfn into ~/.hermes/skills only (same loop as Claude/Codex/Pi). Hermes profiles are separate homes — existing ~/.hermes/profiles/*/skills never get the link unless something walks them without creating profiles. That remaining loop is #8611 (mkdir + ln -sfn; no profile creation).

Happy for this PR to take it. If it does, we'll close #8611. If not, we'll keep #8611 rather than stacking another installer.

@omarchybot

Copy link
Copy Markdown
Collaborator Author

@smfworks — checked all of this against Hermes 0.19.0 on a disposable VM. You're right on every point:

  • omarchy-provision-user links skills into ~/.agents, ~/.claude, ~/.codex, ~/.pi/agent, ~/.gemini/config and nothing else. Hermes gets none.
  • ~/.hermes/skills is the correct path — hermes_home() / "skills" in hermes_cli — and a plain ln -sfn there is picked up: hermes skills list shows it as local / enabled.
  • Profiles really are separate homes. A profile created normally (no --no-skills) lands an empty skills/ alongside its own memories, sessions, workspace, .env, and does not inherit the default home's. Linking into ~/.hermes/profiles/<name>/skills works: hermes -p work skills list then shows the skill enabled.

One correction that will save you time: hermes profile show reports Skills: 0 even when a linked skill is live. That count is hub-installed only — the listing's own footer reads 0 hub-installed, 0 builtin, 1 local. Don't use profile show to validate #8611; use hermes -p <name> skills list.

One thing worth designing around: omarchy-provision-user is gated on the finalize-user marker, so it runs once per user. Profiles created after that get no link. Claude and Codex have one home each so it never comes up, but Hermes profiles are made ad hoc — a provision-time walk covers only what exists at that moment.

Suggest keeping #8611 separate rather than folding it in here. #7469 is on hold pending a published Hermes release containing NousResearch/hermes-agent#97121 (see #8705 — nothing installable satisfies its capability gate today). #8611 targets quattro and has no such dependency, so on its own it can land now; folded in here it waits on an upstream release it has nothing to do with.

James (SMF Works) and others added 2 commits August 29, 2026 15:26
Hermes was missing from the provision-user symlink list that already
covers Claude, Codex, Pi, Antigravity, and ~/.agents. Add ~/.hermes/skills
plus existing ~/.hermes/profiles/*/skills. Migration for current installs.
The provision-user suite never ran the one-shot migration. Cover default-home
links, a pre-existing profile, idempotency, and a missing skill source.
Document ~/.gemini/config/skills and stop wrapping that bullet.
@smfworks smfworks mentioned this pull request Aug 29, 2026
2 tasks done
dhh and others added 2 commits August 30, 2026 10:27
The HUD is a frameless Electron window that paints its own per-pixel
transparency. Under the default rules it gets a compositor border and Omarchy's
window opacity on top, which turns the compact prompt into an outlined, muddy
canvas.

Scoped to the HUD by title, so the main Hermes window keeps the ordinary
treatment.

Co-authored-by: Luiz Filipe <moresco.luiz@gmail.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Catches the branch up on 94 commits so what lands here is reviewed against
current quattro, and so #8611 contributes its own five files rather than
dragging a partial catch-up in behind it.
@spencerbull spencerbull self-assigned this Sep 1, 2026
@spencerbull
spencerbull merged commit b71dcad into quattro Sep 1, 2026
ryanrhughes pushed a commit that referenced this pull request Sep 8, 2026
Add Hermes as a desktop app and a coding agent

(cherry picked from commit b71dcad)
(cherry picked from commit b27908369ed5fa95ca24dca2c68b895032d879d2)
ryanrhughes pushed a commit that referenced this pull request Sep 8, 2026
Add Hermes as a desktop app and a coding agent

(cherry picked from commit b71dcad)
(cherry picked from commit b27908369ed5fa95ca24dca2c68b895032d879d2)
malik-na added a commit to omacom/omarchy-mac that referenced this pull request Sep 12, 2026
Ports the CLI half of upstream's Hermes support (omacom#7469):
omarchy-install-hermes-cli builds it through mise/pipx with its pinned
Python interpreter, and omarchy-agent/omarchy-default-agent wire it in
as a selectable default agent, matching every other mise-backed agent.

Hermes Desktop (the GUI app) is left out: it needs the hermes-desktop
package, which has no aarch64 build yet.

assert_launched in default-agent-test.sh moves from an unquoted [[ == ]]
to a quoted case pattern, fixing a false failure this change surfaced:
unquoted [[ ]] treats a literal argument as a glob pattern.


Claude-Session: https://claude.ai/code/session_015e8oETxaFBzCSCf9yzS8ev

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Naeem Malik <malik2015naeem@gmail.com>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants