All plugins

media-carry

The last line holds the picture. If a tool printed a MEDIA:<path> line this turn (for example an image render) and the final reply forgot it, Media Carry appends that exact MEDIA: line as the reply's last line so Desktop, the phone UI and the API show the file. It never invents paths: only files a tool reported this turn that exist on disk and are fresh. Reader tools (skills, search, web, memory and similar prefixes) are ignored so quoted examples are not attached, and terminal or MCP output is carried only from Hermes' media folders or folders the user lists in media_roots. Includes a dashboard tab with carry counts, recent events and a simulated forgotten-MEDIA test. Disclosure — hooks read tool results and the final reply text; the only thing they write is counters and the last 50 events (action, reason, file basename, time; no full paths, session ids or reply text) to plugin-data/media-carry/events.json in the active profile; a path is used only when it appeared in a tool result this turn, the file exists, and its modification time is within the configured max age (default 6 hours), and terminal and MCP paths only when they resolve (symlinks included) into Hermes media folders or user-listed media_roots; the MEDIA scan is linear with paths capped at 1024 characters and results with more than 50 MEDIA: markers skipped; the dashboard overview is read-only and the test endpoint is a dry run in a TemporaryDirectory that is always removed before the response returns; no model calls, no network, no telemetry, no python_dependencies; platforms are linux and macos because MEDIA paths are absolute POSIX paths.

noblebrown-69Toolsv0.1.2Updated 2 hours ago

About

The last line holds the picture. If a tool printed a MEDIA:<path> line this turn (for example an image render) and the final reply forgot it, Media Carry appends that exact MEDIA: line as the reply's last line so Desktop, the phone UI and the API show the file. It never invents paths: only files a tool reported this turn that exist on disk and are fresh. Reader tools (skills, search, web, memory and similar prefixes) are ignored so quoted examples are not attached, and terminal or MCP output is carried only from Hermes' media folders or folders the user lists in media_roots. Includes a dashboard tab with carry counts, recent events and a simulated forgotten-MEDIA test. Disclosure — hooks read tool results and the final reply text; the only thing they write is counters and the last 50 events (action, reason, file basename, time; no full paths, session ids or reply text) to plugin-data/media-carry/events.json in the active profile; a path is used only when it appeared in a tool result this turn, the file exists, and its modification time is within the configured max age (default 6 hours), and terminal and MCP paths only when they resolve (symlinks included) into Hermes media folders or user-listed media_roots; the MEDIA scan is linear with paths capped at 1024 characters and results with more than 50 MEDIA: markers skipped; the dashboard overview is read-only and the test endpoint is a dry run in a TemporaryDirectory that is always removed before the response returns; no model calls, no network, no telemetry, no python_dependencies; platforms are linux and macos because MEDIA paths are absolute POSIX paths.

Hermes Media Carry

Hermes Media Carry — the last line holds the picture.

The last line holds the picture.

If a tool rendered an image and the model forgot to paste the MEDIA: line, Media Carry appends that exact line so the file is shown.

TOOL REPORTS IT · THE REPLY KEEPS IT · NOTHING IS INVENTED

The problem

A local model renders an image, writes a careful analysis, and ends the reply
without the MEDIA:/path/to/file.png line the tool told it to paste. Desktop,
the phone UI and the API only render a MEDIA: line that appears in the
assistant text. A tool result alone is not shown, so the picture vanishes.

The solution

Media Carry is a tiny, boring hook plugin:

  • post_tool_call records MEDIA: paths printed by tools this turn, but
    only when the file exists on disk and is fresh (default: newer than 6 hours).
  • transform_llm_output appends the newest missing path as the reply's
    last line if the model forgot it. If the reply already contains the path,
    nothing changes.
  • Reader tools are ignored (skills, read_*, search, memory, web_*,
    browser, and similar prefixes). A skill that quotes an example MEDIA: line
    must not attach a file the turn never produced.
  • Shell and MCP output is confined. A terminal or mcp_* result can name
    any file, so its MEDIA: paths are carried only when they resolve (symlinks
    and .. included) into Hermes' own media cache folders or a folder you list
    in media_roots. A command that merely prints a private image's path cannot
    post it into a shared chat.
  • Bounded scan. The MEDIA: scan is a single linear pass, paths are capped
    at 1024 characters, and a result with more than 50 MEDIA: markers is
    treated as a listing and skipped, so a huge fetched page cannot stall the
    tool loop.
  • Never invents paths. There is no guessing, no directory scan, no network
    and no model call. Pure Python stdlib.

If a turn rendered more than once, only the newest missing path is appended.

Dashboard

The Media Carry dashboard page: carry and skip counts, configuration, recent events and a simulated forgotten-MEDIA test.

Open Media Carry in the Hermes dashboard (hermes dashboard). The hooks
run in the gateway / TUI process and the dashboard in its own web process, so
the hooks write their counters to the active profile's
plugin-data/media-carry/events.json and the page reads that file:

  • Status: how many replies were carried, how many already had the line,
    how many paths were skipped (reader tool, stale file, missing file), and
    how many shell / MCP paths were outside the media folders.
  • Configuration: reader and confined prefixes, extra media folders, max
    age and pending-turn cap.
  • Recent events: basenames only — full paths stay out of the UI.
  • Controls: Refresh status and Simulate forgotten MEDIA (a dry run
    of the real hooks in a temporary folder that is always deleted; it is never
    counted). The page has no destructive actions.

Install

hermes plugins install https://github.com/noblebrown-69/hermes-media-carry --enable

Then restart the session or start a new one so the hooks are picked up.

Configuration

Settings live under plugins.entries.media-carry.settings in your profile's
config.yaml (or the Desktop Settings → Plugins → Media Carry form):

plugins:
  entries:
    media-carry:
      enabled: true
      settings:
        reader_prefixes: [skill, read_, search, session_, memory, web_, browser, fact, todo]
        confined_prefixes: [terminal, mcp_]   # [] turns the folder check off
        media_roots: []          # e.g. [~/renders] for a render script run from the shell
        max_age_seconds: 21600   # 6 hours
        max_keys: 200            # pending (session, turn) cap

Dashboard API

Mounted at /api/plugins/media-carry/ behind dashboard auth: GET /overview,
POST /test (temporary folder only, always cleaned up), GET /banner,
GET /health.

Security model

  • Hooks only read tool results and the final reply text. The only thing they
    write is plugin-data/media-carry/events.json in the active profile:
    counters plus the last 50 events (action, reason, file basename, time). No
    full paths, no session ids, no reply text.
  • terminal and mcp_* results are confined to Hermes' media cache folders
    plus media_roots; paths are resolved with realpath before the check.
  • A path is used only when it appeared in a tool result this turn, the file
    exists, and its modification time is within max_age_seconds.
  • The dashboard overview is read-only. The test endpoint is a dry run: it
    creates a file in a TemporaryDirectory, removes the directory before
    returning, and writes nothing to events.json.
  • Platforms: linux and macos (paths are absolute POSIX paths).

Develop

python3 -m unittest discover -s tests -v                     # hook tests are stdlib-only
# dashboard route tests need FastAPI (the Hermes venv has it)
scripts/scrub-check.sh
hermes plugins validate --install-deps .

License

MIT. See LICENSE.

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

More by noblebrown-69

4 plugins by noblebrown-69 in the catalog.

noblebrown-69membraneOne shared memory for all your Hermes agents, with a membrane in between. Cloud assistants drop curated notes into a folder; a fail-closed gate retains only the safe ones in one shared Hindsight bank that every profile recalls, and a filtered read-only digest flows back out. Nothing echoes. Includes a dashboard tab with status and metrics. Disclosure — Membrane reads note files from a user-chosen folder and writes processed/rejected copies, a digest and state files there; it makes HTTP calls only to the user-configured Hindsight API (default http://127.0.0.1:8888) to read banks, create the configured shared bank if missing and retain notes into it, never deleting memories or writing to any other bank; the optional API key comes from Hermes secrets or MEMBRANE_HINDSIGHT_API_KEY and is sent only to the configured Hindsight origin, with cross-origin redirects refused; it reads each profile's Hindsight config read-only to check recall wiring and never edits it; no model calls, no telemetry, no python_dependencies; scheduled syncs run only if the user installs the example systemd timer or cron entry.Communitymemorynoblebrown-69oneirosYour agent sleeps on it. Nightly proposal-only memory consolidation with morning review, receipts, and one-step rollback. No model calls. Distinct from hermes-dreaming. Disclosure — Oneiros reads the profile's memory files, session history (state.db, read-only) and memory-hygiene report files to propose memory edits; when the user enables apply it rewrites MEMORY.md/USER.md inside the active profile under Hermes' memory file lock, keeping snapshots, receipts and rollback; the optional backfill command also reads the local process list and, if you set backfill.llama_url, polls that loopback inference server so it can pause while the machine is busy; no model calls and no network beyond that loopback check.Communitymemorynoblebrown-69thought-we-wouldnt-noticeInsert a quarter, get a tiny original space-bug shooter, and a wry "thought we wouldn't notice" line. A whole-message quarter is swallowed by pre_llm_call so Hermes skips the model and replies "Thought we wouldn't notice. But we did." Hermes Desktop opens the Top Sails cabinet over the window; Esc dismisses it. The dashboard tab has the same cabinet and a Play button. Disclosure — no third-party network calls, no shell, no credentials, and no telemetry; the quarter ledger and high score are stored only under the plugin's own data directory; pre_llm_call blocks the model turn for matching messages only.CommunityDesktop app

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section