Note Stash
Sticky notes and a code stash for Hermes Desktop. Capture a thought — prose or
code — without interrupting the turn you are in, then send it to the focused
session as the next prompt. A note sent to a session that is mid-turn is queued
until that turn ends instead of being injected into it. Capture never touches
the composer or the session: a note stays inside the plugin until you explicitly
send it, put it in the composer, or copy it.
Screenshots




Requirements
- Hermes Desktop.
- Hermes
>= 0.22.7(the floor declared inplugin.yaml;ctx.filesfirst
ships in 0.22.7).
Install
- From the catalog, once listed:
hermes plugins install note-stash - From Git, in the Desktop app: Capabilities → Plugins → Install from
Git, and paste the repository URL
https://github.com/freemanconsulting/hermes-note-stash. - Manual: copy
desktop/plugin.jsto
~/.hermes/desktop-plugins/note-stash/plugin.js, then enable Note Stash in
Capabilities → Plugins.
There is no build step and no dependencies: plain ESM, loaded uncompiled.
Usage
- Capture — the status bar chip (shows the count of active notes), the
⌘K palette command "Note Stash: New note", or the default keybind
⌘⌥S on macOS / Ctrl+Alt+S elsewhere (the contributed, rebindable
actionnote-stash.new-note, category view, so it also appears in
Settings → Keybinds). The dialog has an optional title and a monospace
body (a body or an image is required to save): Tab inserts two spaces,
⌘/Ctrl+Enter saves, Esc cancels (it only asks to confirm when a draft
would be lost). Paste or drop images into it (see "Images"). - Pane — a right-side pane (320px) listing notes with title/first line,
relative time and status. Filter Active / Sent, search, and click a
row to edit it inline. The secondary actions — Put in composer, Copy,
Mark as sent, Restore, Delete — are always visible and muted,
reaching full opacity on hover or focus, so Delete is discoverable without
hovering. Per note:- Send — sends the body to the focused session as the next prompt. The
button's tooltip and accessible label name the target:
Send to "<session title>", orSend to this chatwhen the focused session
has no usable title. Disabled when there is no focused session, for a
note that is already sent or queued, and for an empty note (no body text and
no images), whose button carries the native title "Nothing to send — add
text or an image"; sending an empty note refuses silently. If the target is
mid-turn the note is queued (see "Why the busy queue"). - Put in composer — appends the body to the focused session's existing
draft (host.composer.insertText(sid, body, { mode: 'block' }), never
clobbers it) and then focuses the composer. The note stays Active with a
muted In composer badge (tooltip: "Press Enter in the chat to send. Moves
to Sent when it is sent.") until the chat sends it: pressing Enter starts a
turn with that text, which moves the note to Sent. The proof is the note text
leaving the composer draft as the turn starts, so it works on remote-gateway
connections too, where the chat's pending prompt is not visible to the plugin
(a matching pending prompt is an additional proof on a local connection); a
text deleted from the draft while the chat is idle clears the badge silently.
The badge clears silently after ten minutes, on an edit or delete, on a send
another way, or when another note is put in the composer for the same chat;
nothing is persisted, so a restart leaves the note Active. For a note with
images this is the labeled action instead of Send: it adds the text and
the images (see "Images"). - Mark as sent — on an active row, moves the note to Sent by hand (stamped
sent <time>, no target chat) and clears its In composer badge. The
fallback for a send Note Stash cannot prove: a remote gateway with no draft
surface, or a send from another app. - Copy — copies the body to the clipboard. Text only, like Put in
composer. - Delete — removes the note after a confirmation. Always available,
including for an empty note. - Restore — on a sent note, moves it back to Active (label: "Restore to
active").
- Send — sends the body to the focused session as the next prompt. The
- Send targets the session focused at click time, never the session that
was focused when the note was written. - Sent notes are kept — in the Sent filter each row shows a
sent <time>badge (e.g. "sent 5m ago") and has the Restore action.
Images
Paste or drop PNG, JPEG, GIF, WebP or BMP images into the capture dialog or a
note editor. Each image is stored as one img-<note>-<n>.txt text file holding
its data URL in the plugin's own data folder, capped at ~3 MB per image. The
editor shows thumbnails with a Remove image from this note button; a row
shows up to three with a +N count, and a missing file renders a placeholder
instead of breaking the row. Removing a thumbnail only drops it from the
editor: the file is moved to the trash when you Save, and Cancel keeps
the note's original images (only images added in that edit session are
discarded).
A note with images has Put in composer as its labeled action instead of
Send. It adds the note's text only — never its images. To add an image,
right-click it in the note (or in the editor) and choose Copy image from
Desktop's own context menu, then paste it into the composer with Cmd/Ctrl+V. An
image note with text shows the labeled button and, after the text is added, one
hint pointing you at the images; an images-only note's button is disabled with a
native hint saying the same. A plugin cannot write images to the clipboard in
Desktop — the app grants clipboard image writes only to the Skills Hub — and
Desktop's plugin SDK has no attach-file call yet, so Note Stash cannot add
images to the composer directly; it will attach them itself once
host.attachFileToComposer ships (NousResearch/hermes-agent#84209). Copy
stays text-only.
Why the busy queue
Hermes routes input sent mid-turn according to the display.busy_input_mode
setting (interrupt, queue or steer). Note Stash never sends into a running
turn whatever that setting is: it waits until the turn ends, waits a ~750 ms
settle delay, re-checks the busy flag, and then submits one note per idle
transition, FIFO per session. The next queued note waits for the next idle
transition, so a queued note's own turn has to finish first. A queued row shows
a Queued badge (tooltip: "Queued — sends when the turn ends") and a
Cancel action.
Desktop only submits to a chat that is on screen: host.composer.submit returns
false when the queued chat is not the focused one at the moment its turn ends.
That is not a failure. The note becomes Waiting, stays at the head of its
session's FIFO (later notes keep their order behind it), and sends itself once
that chat is focused again and idle — retried on a focus change, a busy change,
or a 3 s interval that runs only while a note waits. A note is marked sent only
after the chat actually starts the turn — host.composer.submit returning true
is not proof of delivery — and a just-opened chat gets ~1.5 s to settle before a
waiting note is sent. A waiting row shows a
Waiting badge (tooltip: "The chat was not on screen when its turn ended"),
a muted Sends when you open “<title>” line naming the chat from the title
cache, and Cancel. It never switches your view and never sends to another
session. A submit that fails on the immediate, not-busy Send path (the chat is
on screen, so this is a real error) still reports an error and leaves the note
active.
The queue is in memory only: queued and waiting notes revert to Active after an
app restart, so nothing auto-sends when the app comes back.
Privacy and data
- Storage. Notes are stored as
notes.json({version: 1, notes: [...]})
in the plugin's own app data folder viactx.files, written debounced
(~300 ms) and verified after each write. If that folder is unavailable, the
plugin falls back to its namespaced app storage (ctx.storage) for the rest
of the session and shows one warning naming the failure. A missing or
malformednotes.jsonis an empty store. - Images. Image files are read and written only as
img-*.txtfiles in the
plugin's own data folder, one data URL per file. They leave the plugin only as
the thumbnails it renders in its own pane; Note Stash itself never writes them
to the clipboard or anywhere else (a right-click Copy image is Desktop's
own menu acting on what you clicked). Copy writes the note text only.
Nothing else reads or sends them. - No network calls and no third-party services. The only session data the
plugin reads is the focused profile's persisted-session list, through
host.listPersistedSessions— a local read, no gateway dial — when the
focused chat changes, and every 5 s only while the focused chat has no title
yet; it also listens to the local Hermes gateway'ssession.infoevents to
pick up title changes. It uses only session ids and titles, only to label the
Send button; if that fails, the label falls back toSend to this chat. - Composer draft check. After Put in composer, the plugin reads that chat's composer draft (
host.composer.getDraft) once a second, only while the note is waiting to be sent and for at most 10 minutes, and compares it locally with the note text to tell when you sent it (the note moves to Sent). The draft is never stored or sent anywhere. - Note text leaves the plugin only when you act. Clicking Send submits
the note body as a prompt to the focused session, which then goes to your
configured model like any prompt you type. Put in composer inserts it into
that session's draft; for a note with images it adds only the text, and you
right-click an image, choose Copy image and paste it yourself. Copy
writes it to the clipboard. Nothing else sends note text anywhere. - No telemetry, no usage reporting, and no stored credentials.
- The plugin reads and writes no files outside its own data folder.
Development
npm test
test/ runs under node --test with zero npm dependencies. test/loader.mjs
installs a module-resolution hook that maps @hermes/plugin-sdk, react and
react/jsx-runtime to minimal stubs in test/stubs/, so the tests import the
real desktop/plugin.js. The pure logic — note reducers, the send-queue state
machine, persistence (de)serialization, title derivation — is exported as named
functions taking injected dependencies (submit, isBusy, timers, clock).
Covered: send-while-busy never submits and submits exactly once after
busy→idle + settle; FIFO across two queued notes waits for the second idle
transition; submit returning false holds the head note as Waiting silently and
retries on a focus change, a busy change or the 3 s interval; a submit that
returns true but never starts a turn goes back to Waiting after 8 s; a persisted
queued note loads as active; malformed/missing notes.json yields an empty
store; a refused (protected) file write falls back to ctx.storage, the notes
read back from storage, exactly one warning toast is raised, and later writes do
not re-warn; putting an image note with text in the composer inserts the text
once as a block and shows one non-error hint, with the synthetic-paste globals,
navigator.clipboard.write, ClipboardItem, host.navigate and
document.activeElement.blur all replaced by throwing functions so none is
reached — the plugin never writes the clipboard itself;
previewFor starts an untitled note's preview at its second line;
titleFromRows matches a title by session id or lineage root id;
titleUpdateFromEvent extracts a title from a session.info event. Editor image
removal: a thumbnail removal trashes nothing and Cancel leaves the note's
original image; a Save patch that drops an image trashes it exactly once; an
identical patch trashes nothing. An empty note's send submits nothing and
notifies nothing; a render smoke test checks Delete is present for active,
sent and empty rows without hover and the empty row's Send is disabled. An
i18n completeness test checks every t() key against the registered English
table, and a render smoke test registers the plugin against a fake context,
renders every contribution, and executes component effects so a missing method
called from an effect fails the test.
License
MIT — see LICENSE.
README from the reviewed commit d68727e; it updates when the author re-pins.

freemanconsulting