Skip to content

Add Hermes as a terminal coding agent - #386

Merged
malik-na merged 2 commits into
omacom:quattrofrom
flaviozantut:add-hermes-cli
Sep 12, 2026
Merged

malik-na merged 2 commits into
omacom:quattrofrom
flaviozantut:add-hermes-cli

Conversation

@flaviozantut

Copy link
Copy Markdown

Summary

Ports the CLI half of upstream's Hermes support (omacom#7469, itself paired with the hermes-desktop package in omacom/omarchy-pkgs#166):

  • bin/omarchy-install-hermes-cli installs Hermes through mise's pipx backend with its pinned Python 3.13 interpreter (Hermes pins Requires-Python >=3.11,<3.14 and every dependency exactly, so it can't share Arch's Python or the generic omarchy-mise-install path).
  • omarchy-agent / omarchy-default-agent wire hermes in as a selectable default agent, the same way every other mise-backed agent works, including Setup > Defaults > Agent in the menu.
  • omarchy-provision-user symlinks Omarchy's skills into ~/.hermes/skills (and existing ~/.hermes/profiles/*/skills) for new users; two migrations bring that and the CLI wrapper to existing installs.
  • omarchy-remove-preinstalls removes the wrapper Omarchy wrote, the same ownership check the installer itself uses.

Verified working end to end on an M-series Mac running this fork (mise 2026.9.3 linux-arm64): omarchy-install-hermes-cli --now installs Hermes Agent v0.19.0 under Python 3.13.15 and passes its own interactive-session readiness probe.

Left out on purpose

Hermes Desktop (the GUI app, omarchy-install-ai-hermes / omarchy-remove-ai-hermes / the Install-AI menu entry / hermes.lua) is not part of this PR. It needs the hermes-desktop package, which has no aarch64 build in omarchy-pkgs-aarch64 yet — that's a separate, larger PR (packaging an Electron app for Apple Silicon), and this one stands on its own without it.

The Hermes glyph in the icon font (default/fonts/omarchy/omarchy.ttf, U+E90A) is also not included — I don't have a way to render/verify the merged font here. The menu entry works today with no icon; adding the glyph with omarchy dev font add hermes <fontawesome staff-snake svg> per agents/skills/icon-font.md is a good fast-follow.

Also not touched: openclaw, cursor-agent, and muse are missing from this fork the same way Hermes was, but porting those is unrelated work and out of scope here.

A test fix this surfaced

assert_launched in test/shell.d/default-agent-test.sh used an unquoted [[ ${actual[$index]} == ${expected[$index]} ]], which treats the expected value as a glob pattern rather than a literal string. Hermes' literal-prompt test (a prompt containing !, {, $(...), embedded newlines) exposed a false failure from this. Fixed by switching to a quoted case pattern, matching how upstream already does it.

Test plan

  • bash -n / python3 -m ast on every new and modified file in bin/, migrations/, test/shell.d/
  • ./test/all — full suite passes except two pre-existing failures unrelated to this change (config-test.sh, unowned-system-paths-test.sh), which fail identically on a clean quattro checkout because they need a separate omarchy-pkgs checkout (OMARCHY_PKGS_PATH) not available in this environment
  • bin/omarchy commands --check — passes (459 commands)
  • Manually ran omarchy-install-hermes-cli --now on a real Apple Silicon Omarchy Mac install; Hermes Agent v0.19.0 installed and passed its readiness probe

🤖 Generated with Claude Code

https://claude.ai/code/session_015e8oETxaFBzCSCf9yzS8ev

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.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015e8oETxaFBzCSCf9yzS8ev
@flaviozantut

Copy link
Copy Markdown
Author

The "Install VM" failure here isn't from this diff — it's the same failure the scheduled run on quattro itself hit today, before this PR existed:

https://github.com/omacom/omarchy-mac/actions/runs/34336377946

omarchy/hyprland installed=0.56.2-3 expected=0.56.2-3
omarchy/hyprtoolkit installed=0.5.4-6 expected=0.5.4-5.1
##[error]Process completed with exit code 1.

hyprtoolkit bumped to 0.5.4-6 in the extra ARM repo sometime between the 2026-09-08 scheduled run (passed) and today's (failed), and the aarch64 rebuild pin here hasn't caught up yet. This should clear on its own once that rebuild republishes, independent of anything in this PR.

🤖 Generated with Claude Code

@malik-na

malik-na commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Hermes default-agent selection, lazy wrapper creation, skill/profile migrations, and menu wiring work as expected. Shell syntax and command metadata checks also complete successfully.

Good to merge.

@malik-na
malik-na self-requested a review September 12, 2026 09:34
@malik-na
malik-na merged commit 2d14b6a into omacom:quattro Sep 12, 2026
4 checks passed
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.

2 participants