Tommys Hermes ACP
Hermes in your editor, with memory across every conversation you have had with it. Pull any message from any session into your prompt, keep your tabs in projects, and put a second agent beside the first — with you as the gate between them.
TL;DR — Session memory across every Hermes surface: TUI, dashboard, gateway, either pane.
Projects that group your tabs and fold out of the way. Two agents on two profiles, handing
each other work on your click. Steer a run while it runs.
What this is
A VS Code / VSCodium extension that runs your local
Hermes Agent inside the editor. It spawns
hermes acp --profile <profile> and speaks the
Agent Client Protocol over stdio, so the agent you
already trust is the one doing the work.
The extension is the Hermes client. All credit to the people on the Hermes project — without
them there would be no co-operation with agents like this, and I would not have seen the
'lesser' models perform at the level the frontier corporate labs charge for.
Hermes keeps every conversation you have ever had with it, in whatever surface you had it. This
extension reads them all. Pick a session from the composer, tick the messages that matter, and
they arrive above your prompt as a quoted block — a conversation from the TUI, from the
dashboard, from the other pane. Your tabs sit in named projects that stay out of the way until
you switch into them.
A second agent can be installed from the primary extension's menu. A premium feature for free.
In the same VSCodium, each in its own panel or its own editor tab, they run side by side —
different profile, different session, different transcript, even a different model if you want.
You tab between them for a single view, or place them side by side for the full picture.
Personally I like the primary agent specialised on the current mission; the secondant researches,
drafts prompts and tracks the project with an overview. They can send messages to each other if
you like. Guarded by your click.
'Secondant' is Dutch (and French) for the 'second' in a classic wing-man relationship when
challenged. A fencer's second stands beside the duellist as an equal with a different role.
That's the shape of this: two agents, their challenge, your call.
Enjoy the game!
Thomas Kai Tchong
Read more — what the extension does
Pull context from any conversation
Pick any of your sessions from the composer, read it in a throwaway tab, tick the
messages you want, and they arrive above your prompt as a quoted, attributed block.
- Every session Hermes knows — the viewer reads from Hermes rather than from a local
copy, so a conversation you had in the TUI, the dashboard or the gateway can be opened in either
pane in two clicks.
- Anchored, not pasted — the block points at message ids, so the quote stays faithful
even after the source conversation moves on.
- A pick belongs to its tab — context you staged for one thread cannot leak into
another. The current session is also offered: after a model switch the agent has lost
its context, and this tab's own earlier messages are exactly the memory worth
re-attaching.
- Choose the depth — a role filter on the attach bar lets you toggle User, Assistant,
Thought and Tool messages, so you can carry a question and its answer without dragging
forty tool calls along, or include the reasoning when you need it.
- Drawn as a card — an attached slice shows one bubble per message; a sent reply
redraws as the quote panel it was composed with.
Projects
A project is a named folder inside a workspace that groups tabs. Create one from the
Create Project button under the tab list, rename or delete it from the folder header,
and drag tabs into it. A tab started while a project is in use is born in that project.
- The tree folds for you. At start every project is open. From the first session
switch onwards the tree keeps the project you are working in open, plus the one you were in
before, and folds the rest. Fold or unfold by hand and the tree leaves it until the next
switch.
- Sticky tabs stay on top. Make It Sticky pins a tab above the rest;
Drop lets it go. Everything else stays newest-first.
- Projects are per profile. Each Hermes profile keeps its own project list, so the
primary and the secondant organise their own work.
- A second agent can read the tree. The current and passive trees are written to the
profile's storage, so an agent that needs the shape of your workspace can read it.
Two agents in one window
Install the companion from the primary's three-dot menu: Install secondant. A second,
independent agent appears. One install for you, two extensions on disk, nothing to configure
twice. Uninstall secondant takes it out again, version directories included; your
sessions stay in Hermes, so a reinstall brings them back.
- They cannot share a profile. Pointed at the profile the primary is using, the
secondant drops its connection, opens its picker and says why. Two agents means two
profiles, enforced rather than hoped for.
- You can tell them apart at a glance. The secondant carries an orange rule across its
toolbar and a badge row beneath it; in the editor-panel surface each pane's frame is
drawn in its own accent. The primary stays blue. Fencing colours.
- They can hand each other work. Forward any message from one pane to the other: it
arrives as a card with a sender pill and its body rendered as markdown, and nothing
reaches the receiving agent until you press Deliver. Consecutive forwards stack under
one rail with a single Deliver / Dismiss, sent as one turn in arrival order.
- Session memory crosses too. Forward a slice of any conversation and the receiving
agent gets the session handle, an anchor when no message ids matched, and a note that the
handle reads outside its own profile — along with the call that reads more of it.
The channel is a file under your Hermes home. No service, no port, no network: it carries
your own messages under your own permissions, and you sit in the middle of every hop. Let it run
a few rounds and you can watch, at human reading speed, how the two keep asking each other
questions and answering until both are satisfied within their role.
A tray for the backend: our own window on the dashboard
Install Desktop GUI from the ⋯ menu puts a Hermes icon in your system tray, on Linux
and Windows. Right-click shows whether the dashboard is up and on which port, and offers
Open Hermes GUI, Open VSCodium, Reload and Quit. The window shows the
dashboard: the same sessions the TUI and the panes see.
It is our own program (extras/KDEdesktopGui), not Hermes' Electron Desktop — that one is a
separate app for you to install if you want it, and the extension neither builds nor starts it.
It is the same source on both platforms and the same installer window: three screens — system
check, install, start-at-login — and a Done. What differs is the interpreter and where the Qt bindings
come from. Both are handled by the menu before the window opens, and every failure is a message plus
the full output in the Hermes systray output channel, never silence.
- Linux: the system Python (
/usr/bin/python3) with
python3-pyqt6 and python3-pyqt6.qtwebengine. If the import fails, the menu runs
pkexec apt-get install -y for exactly those two, so you see one password prompt and
nothing else.
- Windows: nothing to ask. The menu builds a venv of our own at
%LOCALAPPDATA%\hermesdesktopgui\venv from Hermes' own Python with Hermes' own
uv (plain python -m venv plus pip when uv is not found), and
installs PyQt6 6.12.1 and PyQt6-WebEngine 6.140.1 into it. That is about
220 MB to download. A venv whose base Python left with a Hermes update is rebuilt
rather than trusted.
Both platforms also get the dashboard started at login, once and only when it is missing: a
systemd user unit on Linux (hermes-dashboard.service, written with a marker) and a hidden
hermes dashboard --no-open shortcut on Windows, which is not written at all when
something already answers on 127.0.0.1:9119. The installer reads the state back before it
closes: whether the port answers, and which login entries exist.
Uninstall Desktop GUI removes the app folder, our login entries and a dashboard unit
that carries our marker — nothing else in your Startup folder or unit folder is touched. A unit you
wrote yourself is reported and left byte for byte.
Steer a run while it runs
With a turn in flight, type into the composer and Stop becomes Steer. Your words go
into the turn — not as a new question, not as cancel-and-retry — as guidance the agent
folds into what it is already doing. The transcript marks it with an orange Steer tag
that survives reload. The turn keeps its identity, its tool calls, its context.
Roadmap: time-limited auto-approve while a steered turn runs, so you can say
"go ahead with the next three" without clicking a card for each one.
Permissions
The rail shows the permission mode in force, once, as a button that wears its colour:
Manual blue, Smart green, None orange, ALL red and glowing. Press it and a
row opens under the toolbar with the three-position switch — the same switch the permission
card carries, drawn once and mounted twice so the two cannot disagree — plus a round red
warning button.
- None asks nothing, but the profile's own deny rules still block.
- ALL is the red button: it clears those rules, after saving them to a backup first, and
leaves a Restore deny rules link beside itself while the backup exists. A second press
stops it, even mid-flight, and resumes the mode it replaced. ALL is recorded, so a reload does
not change its mind; any deliberate mode choice ends it.
- The mode is read, not remembered. On window load and whenever the row opens, the pane
asks Hermes for the current mode — so a change made in a terminal shows up instead of being
contradicted.
- Gated commands say so. A command that passes an approval gate draws its note
("flagged … and auto-approved by smart approval") as its own card, not buried in the tool body.
The rest of the client
Sidebar or editor pane, your choice · tabs with rename and reopen · streaming markdown
with syntax highlighting · image paste and image-only prompts · @ file mentions ·
send the editor selection as a prompt · transcript search, in the chat and in the viewer ·
multi-select copy, delete and export · session export as markdown · token meter · log
viewer · environment detection that finds a Hermes install and repairs PATH itself ·
resizable composer · English and Simplified Chinese throughout, including Hermes' own
permission wording.
Quieter touches
- The agent's structured questions render as forms, not as dead prompts.
- Consecutive tool calls fold into one card, so a dozen reads do not bury the answer.
- Thoughts and tool cards grow with the text while live, then collapse to a readable
cap when the turn finishes — so you can follow reasoning as it arrives without it
pushing the answer off-screen afterwards.
- Loading looks deliberate — the pane's own icon, pulsing, with a live count of the
messages arriving from Hermes beneath it.
- A message Hermes never received is caught — the last few user turns live in a small
sidecar, and the agent's replay is checked against it before the transcript is replaced. When
a send genuinely died between the pane and the agent, a notice offers Restore or
Discard. Nothing is pre-filled.
- Closed sessions leave nothing behind — closing a tab cleans up its local copy, so the
local store stays a working copy of what is open, and no more.
Who this is for
Not people shopping for an AI assistant in the abstract. People who have already chosen
Hermes, work across more than one conversation at a time, and want the
editing-while-it-runs rhythm that most clients make you fight for.
Requirements, settings and install
Requirements
- VS Code 1.85+ or VSCodium (this is developed against VSCodium)
- Hermes Agent installed and configured
hermes on PATH, or tommys.path set in settings
- For the secondant: a second Hermes profile, because the two panes may not share one
- For the desktop app in the tray: Linux
python3-pyqt6 + python3-pyqt6.qtwebengine (installed by the menu when missing), or on Windows a venv the menu builds (~220 MB of PyQt6 wheels)
- The Hermes ACP patch, applied to your Hermes install — see Important: the Hermes patch below. Without it the tab list cannot see hidden sessions, closing a tab leaves it listed, and renames do not stick
Important: the Hermes patch
Apply this before anything else. The extension uses three ACP extension methods that upstream Hermes does not ship yet:
_session/catalog — every session, hidden ones included, with its hidden flag
_session/setHidden — hide or unhide a session, which is what closing a tab does
_session/setTitle — rename a session as a user title
Without them the sidebar cannot see sessions you have closed, a closed tab stays listed, and renaming a conversation does not survive. They are added by one of three patches, and which one you need is decided by the Hermes version you run. All three ship inside this extension, in its installed folder under packaging/hermes-patches/:
0.23.x — 0003-acp-023x-session-catalog-hidden-title.patch only, on a checkout without the 0.22 patches. 0.23 changed the storage handle the adapter holds, so the 0.22 set stops working there — and both still apply cleanly, which is what makes the failure quiet. If they are there, remove them first: git checkout -- acp_adapter, then apply 0003. The step, its reason and its check are under Coming from 0.22 below
0.22.5 – 0.22.x — 0001-acp-session-catalog-hidden-title.patch and 0002-acp-gateway-ext-methods.patch, in that order
0.22.2 – 0.22.4 — 0001-acp-session-catalog-hidden-title.patch
The Hermes checkout is ~/.hermes/hermes-agent on Linux and %LOCALAPPDATA%\hermes\hermes-agent on Windows. Apply inside it, from the copy this extension shipped:
cd ~/.hermes/hermes-agent
git apply --3way ~/.vscode-oss/extensions/emperorandfool.tommys-hermes-acp-2.6.*/packaging/hermes-patches/0003-acp-023x-session-catalog-hidden-title.patch
On Windows the same, in PowerShell as your normal user (nothing here needs admin):
cd "$env:LOCALAPPDATA\hermes\hermes-agent"
git apply --3way "$env:USERPROFILE\.vscode\extensions\emperorandfool.tommys-hermes-acp-2.6.1\packaging\hermes-patches\0003-acp-023x-session-catalog-hidden-title.patch"
Coming from 0.22
A machine that ran 0.22 has 0001 (and from 0.22.5, 0002) in its checkout, and
hermes update can bring them back. The 0.22 set must be gone before 0003 goes in,
and nothing on disk will tell you so: both patches still apply cleanly to 0.23, and the result is a file
where 0002’s ext_method is defined after the block 0003
inserts, so the later definition wins and 0.22 code answers the wire. Every connect answers
Internal error.
cd ~/.hermes/hermes-agent
git checkout -- acp_adapter # drop 0001 and 0002 (Windows: the same, after the cd above)
git apply --3way /packaging/hermes-patches/0003-acp-023x-session-catalog-hidden-title.patch
git status --short acp_adapter # exactly two M lines
Exactly two — catalog.py and gateway_server.py. A third
(server.py or session.py) means the 0.22 set is back.
hermes update stashes local changes before its pull and asks afterwards whether to restore them. Answer yes only when the update stays within one minor version (0.22 → 0.22, 0.23 → 0.23). Going from 0.22 to 0.23, answer no, then reset the adapter with git checkout -- acp_adapter and apply 0003 alone with git apply --3way. If 0001+0002 come back, their code takes over from 0003’s, and every connect answers Internal error.
Every patch touches only acp_adapter/ and only calls Hermes’ own store methods; packaging/hermes-patches/CHANGELOG.md records each base, the symptom when its patch is missing, and why 0.23 needs a set of its own.
Tested on Ubuntu 24.04, and on Windows: Hermes 0.23.3 with 0003 applied — tabs resume and the catalog answers.
Build and install
npm install
npm run package # compile + bundle the pane + vsix
codium --install-extension ./tommys-hermes-acp-<version>.vsix --force
npm run package bundles the secondant VSIX and the desktop app's sources and installer inside the primary.
npm run package:secondant builds the companion on its own; users never need it, because
the primary installs it from the menu.
npm run deploy is the fast path while developing: it compiles, rebuilds the pane bundle
and copies everything into the installed extension directory, verifying each file by hash.
Extension ids: emperorandfool.tommys-hermes-acp and
emperorandfool.tommys-hermes-secondant.
Settings
| Setting |
Description |
Default |
tommys.path |
Path to the Hermes executable |
auto-detect |
tommys.profile |
Hermes profile name |
default |
tommys.showThoughts |
Show agent reasoning |
true |
tommys.showToolCalls |
Show tool-call notifications |
true |
tommys.chatSurface |
sidebar or editor |
sidebar |
tommys.models |
Fallback model list |
[] |
tommys.defaultModel |
Default model id (fallback list only) |
"" |
The secondant exposes the same keys under tommys2.*.
The composer's Aa pill sets the transcript font size (10–28 px) and remembers it.
Use
- Click the Tommys Dev Chat icon in the activity bar, or run Hermes: Open Chat.
- Wait for status Ready, then type. Enter sends, Shift+Enter adds a line.
@ references a workspace file; clicking a path in a reply opens it in the editor.
- + starts a conversation; each tab keeps its own transcript. Create Project under the
tab list groups tabs into a folder; drag tabs in.
- Select session memory on the composer opens any session Hermes knows; tick messages
and they are quoted above your prompt.
- To steer, keep typing while a turn runs — the button tells you what it will do.
- For a second agent, open the three-dot menu and run Install secondant. It appears as a
second activity-bar container with its own orange accent. Uninstall secondant takes
it out again, version directories included.
- Install Desktop GUI from the same menu adds the Hermes tray icon (Linux and Windows; the
first run may install PyQt6 or build a venv — see the requirements table).
Opening a tab for a session Hermes knows resumes it over ACP (session/load), and the
transcript arrives from Hermes itself — nothing is read back from a local copy.
Troubleshooting
| Symptom |
What to try |
| Stuck on Connecting… |
Environment menu → detection; ensure hermes is on PATH or set tommys.path |
| ACP dependencies missing |
Run hermes acp --check in a terminal |
| No reply on the first message |
Normal — Hermes may load plugins on the first turn |
| Model not listed |
Add entries under tommys.models |
| An activity-bar icon is missing after an upgrade |
Hide, then show the container from the activity-bar context menu |
| Secondant disconnected itself |
It is on the primary's profile. Pick another from its profile dropdown |
| Secondant installed but not visible |
Reload the window; the registry only lists it after a reload |
| Forward button missing |
The other pane is not running — the two panes announce themselves with a heartbeat |
| Permission mode shows the wrong value |
Open the permission row; it re-reads the mode from Hermes |
| Need to see what Hermes sends over ACP |
Launch the editor with HERMES_ACP_TRACE=1; each session/update goes to the OutputChannel and to ~/.hermes/pane-mail/trace-<profile>.ndjson |
Known issues
- Thought segment heuristic — the pane uses a prefix test to decide whether a thought
chunk continues the current card or starts a new one. If a genuinely new segment opens
with the same text as the end of the previous one, it is treated as a continuation.
Cannot be fixed without the host marking segment boundaries. Very rare in practice.
- Anchor quotes are truncated — a forwarded session slice whose message ids did not
match is anchored on its opening words, clipped at a fixed length. A prefix search finds
them; a strict search for the whole quote will not.
- Long transcripts are not virtualised — every message in a tab is a live DOM node. Fine
for ordinary sessions, slow on transcripts of several thousand messages.
- Windows coverage is thin — this round ran the patch on Hermes 0.23.3, and the tray app's
sources (which it then ran from a venv of its own); the menu's venv pre-flight and install
window, its two login entries, the notes mirror's junctions and the secondant install have not
been run there yet.
FAQ
Will this be maintained? The code is split by runtime — src/host (VS Code, filesystem,
CLI, ACP), src/pane (the webview), src/shared (the message contract) — with both
directions of the protocol typed as unions, so a message added on one side fails to compile
on the other. The test suite covers the host side; the pane is bundled by esbuild.
Is this the upstream project? No. This project originated from
Rina Hermes ACP (MIT, © 2026 jove-rina)
and continues independently under its own extension identity. It is not endorsed by
upstream. Provenance is in NOTICE.
Does it work with plain VS Code? Yes, 1.85 or newer. VSCodium is what it is developed
against.
What changed in 2.x? 2.0 gave the extension a second, independent agent beside the first,
and took away the local copy of the conversation it had been keeping since the fork — the
transcript now comes from Hermes, with a small sidecar for the one case Hermes cannot cover.
2.1 added the Hermes patch and the Desktop GUI. 2.3 added projects and the permission rail.
See CHANGELOG.md for each release.
How far is this from the upstream? v1.0.0 started with image paste, theming fixes
and a font-size pill on top of upstream 0.3.2. Since then the codebase has been restructured
into host/pane/shared runtimes, the protocol is fully typed, and the features above — the
secondant, pane mail, projects, steer, history attach with role filter, the permission rail,
live card sizing, transcript reconciliation, elicitation forms, environment detection, the
Desktop GUI, i18n — are all new work. The upstream MIT notice is retained in full; see Licence
below.
Roadmap
- Time-limited approve-all — approve the next N tool calls or approve for the next M
minutes, so a steered turn doesn't need a click for every step.
- Virtualised transcripts — render a window of messages rather than all of them, so a
session with thousands of turns scrolls as smoothly as a short one.
- An agent-callable forward — let an agent propose something for the other pane, with
the same Deliver gate in front of it.
- Hermes upstream PR — contribute the ACP session catalog, hidden and title methods
back to Hermes as a proper pull request.
Licence and attribution
This project is distributed under GPL-3.0-or-later, © 2026 Emperor & Fool — full text in
LICENSE. It originated from Rina Hermes ACP, received under the MIT
licence, © 2026 jove-rina; that notice is retained verbatim in
LICENSES/MIT-jove-rina.txt as MIT requires, and the upstream
code remains available from upstream under MIT. The full split, the upstream commits this
fork is based on, and the bundled third-party licences are in NOTICE and
packaging/copyright.
Because this is a GPL work: the complete source for every distributed build is this
repository, and anyone redistributing a modified version must do so under the same licence.
Bundled components keep their own licences: @agentclientprotocol/sdk and
media/vendor/purify.min.js (DOMPurify) Apache-2.0; media/vendor/highlight.min.js and
github-dark.min.css (highlight.js) BSD-3-Clause; media/vendor/marked.min.js MIT.
Neither MIT nor the GPL grant trademark rights: the upstream name "Rina Hermes ACP", the
jove-rina name and the upstream marketplace identity are not used by this project.
The artwork is not ours, and the GPL does not cover it. The whale under media/ —
icon.png, icon.svg, icon_fullcolor.png, icon_orange.svg, icon_SECONDANT.svg — and
the activity-bar glyph activitybar.svg are designed by Magnific from Flaticon, used under
the Flaticon Free License. That licence
requires attribution, permits recolouring and derivative works, and does not permit
sublicensing or redistributing the artwork on its own. So it is excluded from the GPL grant
above: you may redistribute this extension, not the artwork separately, and you may not
relicense it.