Skip to content

feat(chat): Connect buttons for hermes and pi - #683

Merged
omesser merged 5 commits into
mainfrom
feat/675-hermes-pi-connect-buttons
Sep 14, 2026
Merged

omesser merged 5 commits into
mainfrom
feat/675-hermes-pi-connect-buttons

Conversation

@omesser

@omesser omesser commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

What changed

src/chat.html gains two .connect-btn elements in #landing-buttons, in launch-table order: hermes after grok, pi after opencode. tests/connect-buttons.test.js is new.

No JS change. The handler in src/chat.js iterates document.querySelectorAll(".connect-btn") and reads btn.dataset.harness, so both buttons wire themselves. The click still only calls select_harness and prints the returned login command — nothing spawns a sign-in, and ai-buddy holds no credential (ADR-0010, #654).

src/chat-ui.css gains the two missing accent blocks. .empty .landing-buttons is a 1fr 1fr grid, so six buttons fill three rows. The per-Harness accent blocks are keyed on data-harness, and hermes and pi had none — they fell through to the neutral default, which left them reading as the unfinished two. Both now carry a brand colour, so all six match.

The landing

The Chat landing with six Connect buttons

This is the built app, not a rendered page. It was launched against a throwaway HOME so no Harness is attached and the landing is what Chat draws, Summoned by a real double-click on the sprite (verbs: … [Summon] in the log), and captured by window id at 2x. The user's own settings, Memory and Keychain were never read. The file is committed at docs/pr-assets/chat-landing-connect-buttons.png.

Icons

Every mark on the six buttons was checked against the vendor's own artwork.

Button Mark Verified against Changed here
claude Anthropic's starburst cdn.simpleicons.org/claude (fill #D97757) yes — see below
codex OpenAI blossom openai.com's mark, via the Wikimedia SVG whose petal is rotated at 60° to build the blossom; identical geometry no
grok xAI slash the mark paths inside grok.com's own header logo (#mark); identical geometry no
opencode OpenCode square opencode.ai/favicon.svg — same square-in-square, lightened inner fill for the dark theme no
pi Pi Coding Agent pi.dev/favicon.svg, and Simple Icons' pi path verbatim; pi.dev titles itself "Pi Coding Agent", the product pi-acp adapts. Simple Icons is CC0 no
hermes Nous Research portrait nousresearch.com/safari-pinned-tab.svg, their own monochrome vector; the same portrait is the favicon on nousresearch.com and on hermes-agent.nousresearch.com yes — added

cdn.simpleicons.org/openai and /grok both return 404, so those two paths did not come from Simple Icons. Both were compared directly against the vendors' own published artwork instead, and both match.

Drive-by: the Claude button wore a made-up glyph

The claude button shipped M21 10.5h3v3h-3v3h-1.5v3H18…, a blocky twelve-point pixel shape that is not Anthropic's mark. It predates #675. It is fixed here because this PR completes that six-button set, and the same audit that cleared the others caught it — leaving a known-fake vendor logo in a row this PR is finishing would ship the defect knowingly. The real path comes from cdn.simpleicons.org/claude, inlined with fill="currentColor" and the source's own viewBox, like its neighbours.

README.md carried the matching error on its hermes row: cdn.simpleicons.org/hermes is myHermes, the German parcel carrier. That row now uses the Nous mark, committed at docs/readme/nous.svg alongside the other README assets. README icons render through <img>, where currentColor has nothing to inherit and falls back to black, so that copy carries an explicit fill rather than currentColor.

The Hermes mark: how option A was chosen

Simple Icons has no Nous Research entry — nous, nousresearch and hermesagent all 404 — and its hermes slug is the parcel carrier. Nous does publish a mark, but it is an illustration rather than a flat glyph, so it was put to the owner as four options:

Hermes icon options at real size

  • A. Portrait, transparent — Nous's vector as-is, currentColor, same style as the others.
  • B. Portrait on its plate — the same vector keeping its background plate; reads as a pasted avatar and cannot take the accent colour.
  • C. Hermes wing — from the Hermes landing page's own art; fixed blue, stippled, a decoration rather than a logo.
  • D. No icon — the odd one out in the grid.

The owner picked A, which is what ships. Nothing here is traced or invented — every candidate was the vendor's own file.

Accent colours

--hermes-accent: #8C8CF2 is Nous's own #0000F2, which they use across the Hermes surfaces, lifted to carry on the dark Chat ground the way the other accents are.

--pi-accent: #E1B06E is pi.dev's --color-sunkissed. Their own --color-accent-blue (#6A9FCC) was the obvious pick and was rejected on sight: it lands between OpenCode's #7A9EF0 and Hermes's #8C8CF2, and the three tiles then read as one colour. Sunkissed is from the same published palette and stays apart — hue 34° against OpenCode's 222° and Hermes's 240°.

Why

harness::launch names six Harnesses. The landing surface offered four, so hermes and pi were reachable only by opening Settings — Chat's own connect flow covered part of the launch table.

The drift test

tests/connect-buttons.test.js slices harness.rs from pub fn launch( to the custom => escape hatch, so login_hint's identically-shaped arms stay out, then compares that set with the data-harness values in chat.html. It asserts a plausible count on both sides and that claude parsed, so a pattern that stops matching fails rather than passing vacuously. Missing and stray are reported separately, each naming the Harness.

How to verify

node --test tests/

# tests 125 / # pass 125 / # fail 0.

To see the test earn its place, delete the hermes button from src/chat.html and rerun:

`harness::launch` names hermes but src/chat.html ships no Connect button for it

Closes #675

🤖 Generated with Claude Code

@omesser
omesser force-pushed the feat/675-hermes-pi-connect-buttons branch from a0725ab to b2037a6 Compare September 14, 2026 16:13
omesser and others added 5 commits September 15, 2026 01:14
`harness::launch` names six Harnesses; the landing surface shipped buttons
for four, so `hermes` and `pi` were reachable only through Settings. Both
now sit in `#landing-buttons` and ride the existing delegated
`.connect-btn[data-harness]` handler — no new JS path, and the click still
only names the login command.

Pi wears Simple Icons' `pi` mark (source `pi.dev`, the Pi coding agent).
Hermes is text-only: neither it nor Nous Research has a Simple Icons entry,
and the `hermes` slug the README already uses is the German parcel carrier.

`tests/connect-buttons.test.js` compares the launch table's arms with the
buttons' `data-harness` values, so a seventh named Harness cannot land
without one.

Closes #675

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Claude button carried a blocky twelve-point glyph that is not
Anthropic's mark. Swap in the real one from Simple Icons.

Drop the myHermes parcel-carrier icon from the README's `hermes` row
for the same reason, and record the landing in docs/pr-assets.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The button shipped text-only because Simple Icons has no Nous entry and
its `hermes` slug is the German parcel carrier. Nous publishes its own
monochrome vector at nousresearch.com/safari-pinned-tab.svg, and the same
portrait is the favicon on hermes-agent.nousresearch.com. Take that,
drop the tracing frame, bake the transform, and ship one path.

The README row gets the same mark. It renders through `<img>`, where
currentColor has nothing to inherit, so that copy carries an explicit
fill instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Four of the six connect tiles took a brand colour and two fell through to
the neutral default, which left them reading as the unfinished ones.

Hermes takes #8C8CF2, Nous's own #0000F2 lifted to carry on the dark Chat
ground. Pi takes pi.dev's --color-sunkissed rather than their
--color-accent-blue: that blue lands between OpenCode and Hermes and the
three then read as one colour.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The asset was a headless render of chat.html. Replace it with a capture
of the built app: launched against a throwaway HOME so no Harness is
attached, Summoned by a real double-click on the sprite, captured by
window id at 2x.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@omesser
omesser force-pushed the feat/675-hermes-pi-connect-buttons branch from b2037a6 to eea6eea Compare September 14, 2026 22:16
@omesser
omesser merged commit 2b3b5fc into main Sep 14, 2026
5 checks passed
omesser added a commit that referenced this pull request Sep 26, 2026
Three Harness rows had no brand mark and the table read as an oversight.
Simple Icons carries no OpenAI, xAI or Block mark, measured against its full
3461-entry index, so the only route is self-hosting.

Only xAI grants one. Its brand guidelines permit using the marks "to
accurately refer to us or our services", on the condition that the logo is
used "exactly as provided" and unaltered, so both official files ship
unchanged and `<picture>` picks by theme rather than recolouring either.

OpenAI's guidelines say not to use the logo without permission, and Block
ships Goose under Apache 2.0, whose section 6 withholds trademark rights.
Neither clears the bar, so the README says so instead of leaving a reader to
wonder.

Attribution was missing for the one mark already self-hosted. `nous.svg` was
added in #683 with no record of where it came from; that gap is now written
down rather than quietly inherited.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

feat(chat): Connect buttons for hermes and pi

1 participant