Hermes, Make it Smart!
Session categorization, tagging and renaming to access all your sessions — faster than it takes to press 3 clicks.
A Hermes Desktop plugin that turns hundreds of undifferentiated chat sessions into a
browsable, faceted catalog — and gives every session a name that actually means something.
Bring your own AI
The plugin's housekeeping can run on its own engine with its own key, separate from the agent:
tab 5 · BYO AI takes the engine, model, endpoint and key, stores them in the plugin's data
directory with mode 600, and never shows the key back. Anything leaving the machine is redacted
first. With nothing configured the batch refuses to run rather than spending the agent's budget.
See docs/FEATURES.md.
The problem
After a few months of daily work, a Hermes install accumulates hundreds of sessions.
They are called Chat, Session 2026-10-28, or the title of whatever sentence happened
to be first. Finding "that session where I debugged the DNS records" means scrolling.
Search helps only if you remember a word. It does not answer:
- How many sessions did I spend on my VPS this quarter?
- What did I actually do across the eleven sessions about the same subject?
- Which of my topics got the most of my time?
An agent that forgets the shape of your work is an agent you have to re-brief every day.
What it does
- Indexes every session from every Hermes profile into its own read-only index —
all of them, titled or not. A session with no canonical title is not skipped: it
gets a number after the last one in use. Importing is not a filter. - Classifies each one — subject, maker, context, intention, theme, year — using a
host-agnostic pure module plus a language model. Empty fields are allowed and are
never filled with the previous schema's leftovers. - Renames them into one canonical, sortable, telegraphic format (below), writing
through the host's public title API. - Presents them as a facet catalog: filters with live counts, a LAST USED activity
filter block at the top of the panel, a synonym-aware search, a detail pane, and a map of
where a word appears across the archive. - Unifies historical sessions that share a subject, so the
MMMordinal tells you
at a glance that eleven sessions were one continuous piece of work.
Filter by Last Used (last post timestamp)
The first filter block in the left panel is LAST USED, positioned above Pending and Subject
across every filterable tab. It classifies sessions by the timestamp of their last active post
(MAX(messages.timestamp) with active = 1 in state.db, falling back to last_activity_at and
started_at only if a session has no messages):
| Option | Window / Rule |
|---|---|
Up to 8 Hours | 0 <= age <= 8 h |
8 - 16 Hours | 8 < age <= 16 h |
16 - 24 Hours | 16 < age <= 24 h |
24 Hours | Consolidated 0 <= age <= 24 h (exact sum of the first three buckets) |
24 - 48 Hours | 24 < age <= 48 h |
Today | Local calendar date of last post equals today |
Yesterday | Local calendar date of last post equals yesterday |
Getting in without the mouse
The catalogue is one ⌘K away, and it can be fed the text you are already looking at:
| Path | What it does |
|---|---|
| ⌘K → Search in Make It Smart | Opens the catalogue with the cursor already in the search box. It shows the live keybind as its hint. |
⌘⌥S (mod+alt+s) | Searches the selected text, wherever it is selected — the chat transcript, a report, a mail. With nothing selected it just opens and focuses. Rebindable in Settings → Keybinds → Navigation. |
#/smart?q=CyberPanel | Deep link: the page mounts already searching that term. #/smart?focus=1 opens without a query. |
Both entry points are plugin-side contributions (palette and keybinds areas): no Hermes core
code is patched, so they survive app updates. Hermes' own session search box is deliberately
not touched — it keeps searching sessions; the plugin searches its catalogue (nine axes,
facet counts, cost and hours).
The paper trail
Everything the project produced while the algorithm was being decided — plans,
reports, evaluation sets and the CSVs the renames came from — is in
reports/, with an index that says what each file is and
whether it still rules or is history.
The naming format
NNN [Subject] MMM [Iq1] [Iq2] Description · Verb
| Part | Question it answers | Example |
|---|---|---|
NNN | global sequence, never reused | 748 |
[Subject] | what the session is about | [Air 2S] |
MMM | which one of the series — the ordinal, outside the bracket | 003 |
[Iq1] | who/what is the real protagonist | [DJI] |
[Iq2] | what kind of work | [Ebay] |
Description | everything the three previous fields could not say | Compare the Fly More bundle |
· Verb | the action taken, as an appendix | · Comparar |
The ordinal stays outside the bracket on purpose: inside, a reader takes
Air 2S 003 for the subject's name instead of its counter. There is no date —
the date is a column and a filter, and repeating it spends six characters of a
hundred to say something the table already says.
The result reads like a telegram. Three fields carry a complete idea:
748 [Air 2S] 003 [DJI] [Ebay] Compare the Fly More bundle · Comparar
Change the marketplace and the same shape still works:
812 [Trace Minerals] 001 [Dr. Berg] [Amazon] Evaluate the supplement facts · Analizar
That is the core insight of this project: subject + two axes is enough to express a
complete idea, if each field answers exactly one question.
The full rules live in docs/ALGORITHM.md.
Install
docs/USER-GUIDE.md — the order that matters: back up,
define the topics, feed the cheat sheet, run a dry run, correct,
apply. The plugin is worth exactly what the names you have taught it are worth.
git clone https://github.com/tesla963/hermes-make-it-smart
cd hermes-make-it-smart
# 1. build the index the window reads (Python, reads state.db read-only)
~/.hermes/hermes-agent/scripts/run-in-hermes-env python3 tools/build_index.py
# 2. copy the plugin where Hermes Desktop looks for it
mkdir -p ~/.hermes/desktop-plugins/hermes-make-it-smart
cp desktop/plugin.js ~/.hermes/desktop-plugins/hermes-make-it-smart/
# 3. restart Hermes Desktop, then open "Make It Smart" in the sidebar
The plugin never touches state.db: step 1 reads it and writes one JSON file to
~/.hermes/plugin-data/make-it-smart/index.json, and the window only paints
that file. Re-run step 1 (or press Refresh DB) whenever you want new sessions
in the catalogue.
Two names, on purpose
The manifest name and the data-directory name are different, and that is by design:
| What | Value | Where it comes from |
|---|---|---|
| Install / catalog name | hermes-make-it-smart | plugin.yaml → name: — this is the folder hermes plugins install creates |
| Internal data id | make-it-smart | core/paths.py → PLUGIN, and desktop/plugin.js → ID — this is the folder under plugin-data/ |
So an install from the catalog puts the code in
~/.hermes/desktop-plugins/hermes-make-it-smart/ while its data stays in
~/.hermes/plugin-data/make-it-smart/. Both are correct; see
docs/DATA-PATHS.md for the full map. Changing either name
orphans the existing index, so neither is renamed.
Verify without the app
node tests/test_plugin.mjs # 22 checks: shape, register(), first render, helpers
python3 tests/test_invariants.py # 11 checks on the naming rules
The plugin smoke test loads the real desktop/plugin.js against the real React
and renders a frame, so a bad import or a syntax error fails here instead of
showing a white screen.
Host-agnostic by design
The classifier is host-agnostic: a pure module that turns session records into facets.
The Hermes adapter is one implementation; the interface is documented for other hosts.
core/ Python, zero imports from Hermes
taxonomy.py topics (iq4), platforms, IT families
prompt.py the classifier system prompt
normalize.py subject extraction, MMM ordinals, telegram mode
classify.py LLM + deterministic rules
adapters/
hermes.py SessionDB, state.db, write-through-title-API
desktop/
plugin.js the catalog UI on the Desktop SDK
core/ never imports hermes_state. The boundary is a single normalized record:
SessionRecord = {
"id": str, "title": str, "title_source": str,
"created_at": str, "messages": list[str],
"cost_usd": float, "hours": float,
"tokens": int, "posts": int,
}
Any host that can produce that record can use the classifier. Porting is a new adapter,
not a rewrite. See docs/ARCHITECTURE.md.
Writes go through the host API — always
This plugin never opens state.db to write. Renaming goes through SessionDB:
from hermes_state import SessionDB
db = SessionDB()
db.set_session_title(session_id, title) # 'user' provenance, always wins
That single call gives us, for free:
- Provenance ladder —
derived (0) < llm (1) < user (2). A user-set title is never
overwritten by an automatic one. - Atomic compare-and-swap — read and write happen in one transaction, so a rename
racing the title generator loses instead of clobbering. - Duplicate resolution — a compressed ancestor, an archived Bot Chat, or an abandoned
empty session holding the same title is released; only a genuine conflict raises. - Sanitizing — control, zero-width, bidi and lone-surrogate characters stripped, and
the hard 100-character limit enforced. - Bot Chat protection — the canonical Bot Chat's name is its identity.
Reads are read-only (mode=ro) and therefore safe to run while Hermes is working.
Why this needs a plugin, not a prompt or a skill
A skill can advise. This plugin has to:
- open twelve SQLite databases and build an index,
- call a model per session and reconcile the result with deterministic rules,
- write titles back through the host's transactional API,
- and paint a native, faceted UI that reads and filters 900 rows without lag.
None of that is expressible as a prompt.
Installation
# 1. install the plugin (the panel, the ten agent tools and the indexer)
hermes plugins install https://github.com/tesla963/hermes-make-it-smart --enable
# 2. build the index the panel paints — this is what names your sessions
cd ~/.hermes/plugins/hermes-make-it-smart
~/.hermes/hermes-agent/scripts/run-in-hermes-env python3 tools/build_index.py
# 3. restart Hermes Desktop and open "Make It Smart" in the sidebar
hermes plugins install downloads the whole repository — plugin.yaml, tools/, core/,
desktop/plugin.js — into ~/.hermes/plugins/hermes-make-it-smart/; Electron copies the panel
from there into its own folder when the plugin is enabled, so nothing has to be copied by hand.
Step 2 is not optional: the panel only paints index.json. Installed without it, the window
opens but shows your sessions with the names Hermes gave them, unclassified — the plugin looks
broken when it is only unindexed. From then on you can re-run that command, or just ask Hermes
"reindex the plugin catalogue" (the cellar_index tool does the same thing).
Requires Hermes Agent with plugin support. Python 3.11+.
Upgrading from 0.26.x or older
Nothing to do by hand. The panel reads both key sets, so tag0…tag9 data keeps painting
correctly after the upgrade, and the first reindex migrates it: tools/build_index.py calls
tools/migrate_axes.py before rebuilding, which copies the old files to
~/.hermes/plugin-data/make-it-smart/backups/, renames the keys to iq0…iq9, stamps
"schema": 2 and rewrites them atomically. Running it twice is harmless — the second pass
reports already-current.
Disclosure
-
Reads every profile's
state.dbin read-only mode (mode=ro) to build its index. It never
reads~/.hermes/auth.jsonor any host credential store, and it does not modify anything while
indexing.
Transparency, in one paragraph. With BYO AI off, not a single character leaves your machine:
classification runs locally. With it on and the consent box ticked, the plugin sends up to 600
characters per turn of your messages —no attachments or URLs, sensitive values redacted— to the
endpoint you configure. The description it produces is stored in your local database. Nothing else travels. -
Classifies locally by default (zero network calls).
cellar_index(op="classify")runs the
deterministic local protocol (core/actors.py+core/intent.py+fallback_facets) with
use_llm=falseby default. -
Sends redacted excerpts only with explicit opt-in. No session text ever leaves the machine
unless you (1) configure your own endpoint and model in tab 5 · BYO AI and put the API key in
Hermes' own store — Plugins → Settings → BYO AI API key, kept in the profile's.envas
MMS_API_KEY; the plugin reads it withagent.secret_scope.get_secretand never writes it to
its own files —, (2) explicitly check the
consent box (allow_send_excerpts: true, off by default), and (3) request LLM classification
(use_llm=true) or runtools/batch_describe.py. When enabled, sampled user turns (up to 600
chars per turn, cleaned of attachments and URLs, and passed throughredact_sensitive_text) are
sent solely to the endpointbase_urlyou configured inbyo-ai.json. -
Writes session titles only when you press Rename (or confirm
cellar_rename/cellar_tag),
throughSessionDB, with a timestamped backup taken first. -
Never edits
config.yaml, never disables the host's own title generator, and leaves
no state behind if removed.
License
MIT — see LICENSE.
The MIT license was chosen deliberately: this is a tool meant to be copied, forked and
built upon by anyone who keeps a long-running Hermes. The documentation in docs/ is
part of the deliverable, not an afterthought — if our reasoning is not written down, it
cannot be reused.
Credits
This plugin was built by two people and reviewed by a third who read the code and argued
with it:
| the owner | The product, the naming algorithm and every decision about what the plugin should do. |
| the assistant (Hermes Agent) | Implementation, measurement and the documentation in docs/. |
| Antigravity | Critical code review of the migration and restore paths. It found a real bug — the restore button undid itself — and the fixes it prompted are recorded in CHANGELOG.md. |
Panama, 2026.
README from the reviewed commit f06d4ec; it updates when the author re-pins.

tesla963