All plugins

rich-paste

Paste web pages, screenshots and Finder files into Hermes Desktop with their structure, and send each image to the model where it sits in your text. Web HTML becomes Markdown (headings, links, lists, tables, code) with its images downloaded and attached; an llm_request middleware moves each image block next to its label instead of after all the text (kimi-k3, several images per paragraph: 18/30 today, 30/30 interleaved). Also: screenshot chips placed after what you typed, Finder files and folders as Desktop blocks, TIFF/HEIC/BMP/AVIF sent as PNG, pasted audio transcribed with Hermes's own STT, Markdown preview. A select-all copy of a whole web page keeps only the article (Mozilla Readability 0.6.0, Apache-2.0, bundled and run locally with no network request), with "Restore full page" under the composer. Disclosure — network calls only to download the images of pages you paste (http/https; loopback, private, link-local and reserved addresses refused on every redirect, except DNS answers in 198.18.0.0/15 for proxy fake-ip setups; the pasted page's URL is sent as Referer; at most 50 images per paste and 20 MB each); no telemetry. Runs /usr/bin/osascript once per file paste to read file URLs on the macOS clipboard. Reads image attachments you add (hashes them, converts TIFF/HEIC/BMP/AVIF to PNG) and Desktop's saved long-paste files. Writes only under its cache folder. Pasted audio is transcribed with Hermes's own STT, which uploads it to your configured cloud STT provider when one is set (the plugin asks first). An llm_request middleware reorders the image blocks of every user message that carries its markers in the outgoing request.

ZhenningLang1Desktopv0.3.1Updated 15 days ago

About

Paste web pages, screenshots and Finder files into Hermes Desktop with their structure, and send each image to the model where it sits in your text. Web HTML becomes Markdown (headings, links, lists, tables, code) with its images downloaded and attached; an llm_request middleware moves each image block next to its label instead of after all the text (kimi-k3, several images per paragraph: 18/30 today, 30/30 interleaved). Also: screenshot chips placed after what you typed, Finder files and folders as Desktop blocks, TIFF/HEIC/BMP/AVIF sent as PNG, pasted audio transcribed with Hermes's own STT, Markdown preview. A select-all copy of a whole web page keeps only the article (Mozilla Readability 0.6.0, Apache-2.0, bundled and run locally with no network request), with "Restore full page" under the composer. Disclosure — network calls only to download the images of pages you paste (http/https; loopback, private, link-local and reserved addresses refused on every redirect, except DNS answers in 198.18.0.0/15 for proxy fake-ip setups; the pasted page's URL is sent as Referer; at most 50 images per paste and 20 MB each); no telemetry. Runs /usr/bin/osascript once per file paste to read file URLs on the macOS clipboard. Reads image attachments you add (hashes them, converts TIFF/HEIC/BMP/AVIF to PNG) and Desktop's saved long-paste files. Writes only under its cache folder. Pasted audio is transcribed with Hermes's own STT, which uploads it to your configured cloud STT provider when one is set (the plugin asks first). An llm_request middleware reorders the image blocks of every user message that carries its markers in the outgoing request.

Rich Paste for Hermes

Rich Paste for Hermes Agent

Paste a web page, a screenshot or a file into Hermes Desktop and it arrives the way you meant it:
headings, links, lists, tables and code as Markdown, and every image placed where it sits in your
text
when the message reaches the model, instead of piled up at the end.

Website: richpaste.app · 中文说明 · listed in the
Hermes plugin catalog

hermes plugins install rich-paste && hermes gateway restart

Then turn on its desktop half in Hermes Desktop (Capabilities → Plugins) and run
Reload desktop plugins. Details under Install.

Why

Hermes builds every user turn as "all the text, then all the images". When a message has a few
paragraphs, each with its own picture, the model has to guess which picture belongs to which
paragraph, and it guesses wrong. Same synthetic monitoring screenshots, asking kimi-k3 for "the CPU
reading of each machine" (5 rounds × 6 readings per scenario):

ScenarioHermes today (images at the end)Rich Paste (interleaved)
One image per paragraph30/3030/30
Several images or none in a paragraph18/3030/30

The typical miss: "2 images, 1 image, 3 images" read as "2, 2, 2". Rerun it with
bench/replay_experiment.py. This is not something a prompt or a skill can fix: the order is decided
when Hermes builds the request, so the plugin rewrites the request itself (an llm_request
middleware).

What it does

  • Web pages become Markdown. Copy part of a page in the browser and paste it into the composer.
    Pages with images in the text, tables or structured documents are converted right away, with an
    Undo below the composer. Light formatting (a few links, one list) gets a Convert to Markdown
    button instead. You can choose Smart, Always or Never automatically in settings.
  • Whole-page pastes keep the article only; the full page is one click away. Select a whole page
    (Cmd+A) and paste: navigation, author line, date, ads, related links and comments are left out and
    only the article becomes Markdown. The row below the composer says how much was removed;
    Restore full page swaps in the whole page, Undo still brings back the pasted text. A partial
    selection is never trimmed and converts exactly as in 0.2.1. The article is found locally with
    Readability, without going online. It can be turned off in settings.
  • Images on the page come along. The plugin backend downloads them to a local cache and the draft
    shows them as Markdown images. A strip above the composer lists the web images that will be sent;
    × removes one. Avatars and icons (96 px or smaller) are skipped when the page has real images.
    SVG is rasterised to PNG.
  • Screenshots keep their place. Pasting a screenshot attaches it as usual and adds a
    "Screenshot N" block right after what you have typed (Desktop's own @image: block, so it is
    selected, moved and deleted as one piece). The sent message reads [Screenshot 1] at that spot.
  • Finder files and folders, several at once. Pasted as Desktop's own file, folder and image
    blocks; files are sent as file attachments, folders as an @folder: reference, images interleave.
  • TIFF, HEIC, BMP and AVIF are sent as PNG (Raycast's clipboard history gives TIFF, which shows
    as a broken image in the chat).
  • Audio transcription. Paste an audio file and click Transcribe: Hermes's own speech-to-text
    writes > Transcript: … under the block. The first time a model has to be downloaded or audio
    has to go to a cloud service, you are asked first.
  • Preview shows how a Markdown draft will look once sent.
  • Interleaving. Right before the request goes to the model, each image block is moved after its
    label, in every user message of the request (so earlier turns go out the same way each time and
    the provider's prompt cache keeps working). Only the outgoing request changes, never the session
    history; anything unexpected passes the request through untouched. It also works in Hermes's text mode (models judged unable to see
    images), moving each image description next to its label.

The interface is in English, and in Chinese when Desktop's language is Chinese (Traditional Chinese gets the Simplified strings).

Install

hermes plugins install rich-paste            # from the plugin catalog
# or straight from this repository:
hermes plugins install ZhenningLang/rich-paste

Then:

  1. Restart the gateway (hermes gateway restart): the middleware and the image backend load with it.
  2. In Desktop, turn on the plugin's desktop half (Capabilities → Plugins, or search "Rich Paste"
    in the command palette) and run Reload desktop plugins.
  3. Settings are under Settings → Plugins → Rich Paste.

After an update, do both again (restart the gateway, reload desktop plugins). The plugin checks its
own backend: if the backend is older than the desktop half, a "restart the gateway" tip with a
button appears below the composer.

Tip: let a vision model see the original images

When Hermes decides the model cannot see images, it uses text mode: images are described in text
first. If your model can see images (kimi-k3, for example), set this in ~/.hermes/config.yaml and
the images go straight into the request, which interleaves best:

model:
  supports_vision: true

The plugin never changes your Hermes configuration.

Settings

SettingDefaultNotes
When pasting web contentSmartSmart / Always convert / Never automatically
Whole-page pastes keep the article onlyOnWhen off, a whole page converts in full, as in 0.2.1
Limit images per pasteOffWhen on: at most N images (default 10); the rest stay as links. When off, a paste still downloads at most 50 on its own; Download N more fetches the rest
Limit image sizeOffWhen on: largest size per image in MB (default 10). The backend never keeps an image over 20 MB
Delete downloaded images automaticallyOnDeletes cache folders older than the retention days, only the plugin's own dated folders. Checked when the plugin writes to the cache, at most once an hour
Keep for (days)7
Folder$HERMES_HOME/cache/rich-paste/Images go in rich-paste-cache/<date>/ under it. A folder outside your home directory is ignored by the backend
Local transcription modelFollow Hermesbase (~150 MB), small (~490 MB), turbo (~1.6 GB); local transcription only

What the plugin does on your machine (disclosure)

  • Network: the backend downloads the images of pages you paste, over http(s) only. It refuses
    loopback, private, link-local, multicast and reserved addresses, checks every redirect again,
    downloads at most 50 images per paste on its own (more only when you click Download N more)
    and at most 20 MB per image, gives each image 15 seconds in total (name lookup, redirects and
    download), and keeps only PNG, JPEG, GIF, WebP (SVG and
    AVIF are converted to PNG). A blocked hotlink (403) is retried once with the image's own site as Referer.
    Behind an HTTP(S) proxy the backend still looks up each image's host on this machine first and
    refuses it if any answer is a blocked address; only then does the proxy fetch it, and the proxy's
    own lookup is not checked. So this machine must be able to resolve host names even behind a
    proxy: if it cannot, the image stays a link and the backend reports network_error:host_not_resolved
    (network_error:proxy_not_resolved when it is the proxy's own name that does not resolve).
    With a fake-IP proxy such as Clash or Surge (which resolves every name to 198.18.x.x, allowed
    only when it comes from DNS), the proxy decides the real destination, so only addresses written
    in the URL itself can be checked. No other network calls, no telemetry.
  • Shell command: when a paste contains files, the backend runs /usr/bin/osascript once
    (3-second timeout) to read the file URLs on the macOS clipboard (public.file-url, at most 20). It
    does not read clipboard text or images.
  • Files outside the plugin's own data: at send time, a TIFF/HEIC/BMP/AVIF image attachment you
    added is read (up to 50 MB) and converted to PNG in the cache folder. The image attachments of the
    message are hashed (SHA-256, up to 50 MB each, image extensions only) so each "Screenshot N" block
    finds its own image. A long paste that Desktop saved as composer-pastes/pasted_content_*.txt is
    read (its length and first 200 characters, up to 4 MB) to find which saved paste a conversion
    replaces. Audio you choose to transcribe
    is passed to Hermes's speech-to-text (local or cloud, per your Hermes stt settings).
  • Hermes internals used: transcription calls the public transcribe_audio of Hermes's
    tools.transcription_tools and reads the stt settings through hermes_cli.config.load_config;
    if either changes, transcription reports "status unknown" and does nothing. The desktop half
    writes into the composer only through the SDK (host.composer), never by editing its DOM, and
    its CSS styles only the plugin's own elements. Restoring a copied block reads the data-ref-*
    attributes of the copied HTML on the clipboard; if Desktop changes them, that feature does nothing.
  • Pasted text is not a request: @file:, @url:, @diff written inside a pasted page get an
    invisible U+2060 after the @, so Hermes does not expand them (read a local file, fetch a URL).
    Images in a page that point at local paths (file:, /Users/…) are never read or attached.

Known limits

  • A pasted screenshot's block is added at the end of the draft: the plugin SDK can append text but
    not insert it at the caret. Paste right where you are typing, or move the block afterwards.
  • Tested on macOS only. Finder file paths come from the macOS clipboard; elsewhere, drag the file
    into the composer instead.
  • The sent label is [Screenshot 1] between two invisible U+2063 characters, and the text ends with
    the number of images sent, also invisible. Image attachments are put in label order so the k-th
    label is the k-th image. If labels and images do not add up (you removed a screenshot's
    attachment, or Hermes could not read an image), the label reads
    [Screenshot 1: attachment not found] or the images stay at the end, rather than going in the
    wrong spot. One gap remains: a screenshot is matched to its image by a fingerprint taken when
    you paste it; without one (after a plugin reload, or a screenshot over 20 MB) it is matched by
    order, so if you also removed its attachment and added another image with +, the label can
    point at that image.
  • Web content over 512 KB or 20,000 elements is not converted ("too large"). For a whole-page paste the
    512 KB limit applies to the article and the raw HTML may be up to 2 MB; a paste with more than 20,000
    elements is refused, whole page or not.
  • Telling a whole page from a partial selection is a heuristic (does the paste start and end like site
    navigation or a footer); it can be wrong on pages it has not seen. If too much went, Restore full page.
  • Automatic deletion removes cached files only; old chats that showed those images cannot show them
    after the retention period. Replies already given are not affected.
  • When Desktop talks to a remote Hermes, web images are downloaded on the remote machine.
  • A long paste (over 3,000 characters, which Desktop attaches as a .txt) is swapped for its Markdown
    when you send. If the plugin backend cannot read that attachment, or the saved Markdown was removed
    from the cache, the message goes with Desktop's plain .txt: a notice says so, and the long-paste row
    stays with the reason.
  • The send preview is a strip above the composer, not cards in the attachment bar: the plugin SDK
    has no way to add attachment cards.

Development

npm install
npm run build        # desktop/src → desktop/plugin.js (the bundle is committed)
npm test             # node --test: converter snapshots, markers, middleware, plugin glue, i18n
uv run --no-project --with pytest --with fastapi --with httpx --with pillow --with resvg-py python -m pytest tests
hermes plugins validate . --install-deps
bash verify.sh       # all of the above

tests/convert/ holds HTML excerpts of real pages and the Markdown they should become; sources and
licences are in tests/convert/SOURCES.md.

License

MIT. desktop/plugin.js bundles turndown and turndown-plugin-gfm (both MIT, © Dom Christie) and
@mozilla/readability (Apache-2.0, © 2010 Arc90 Inc and Mozilla); see NOTICE.

README from the reviewed commit a848f0e; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section