All plugins

membrane

One 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.

noblebrown-69Memoryv0.1.3Updated 3 hours ago

About

One 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.

๐Ÿซง Hermes Membrane

Hermes Membrane โ€” one shared memory, a membrane in between.

One shared memory. A membrane in between.

Your cloud assistants and your local Hermes agents learn from each other, and nothing sensitive gets through.

CURATED IN ยท FILTERED BOTH WAYS ยท ONE SHARED BANK ยท NOTHING ECHOES

The problem

You make a decision with a cloud assistant in the morning: Grok, Claude,
Cursor, ChatGPT, whichever you had open. By the afternoon your local Hermes
agents are still working from yesterday. Copying notes by hand doesn't
scale, and wiring a cloud assistant straight into your agents' memory is how
secrets, health details and half-finished drafts leak into places they
should never be.

The solution

Membrane puts one small, strict layer between the two worlds: a synced
folder on one side, one shared Hindsight
bank on the other.

  • In. A cloud assistant writes a short Markdown note into the synced
    folder. Membrane runs a fail-closed sensitivity gate, dedups the note by
    SHA-256 and retains it into one shared Hindsight bank.
  • Recall. Every Hermes agent reads that bank natively at recall time
    through the Hindsight Hermes plugin's recall_additional_banks. Agents keep
    writing only to their own banks.
  • Out. Membrane exports a compact, re-filtered, anti-echo-tagged digest
    (hermes-digest/latest.md) that cloud assistants can read even when the
    local machine is asleep.

No model calls. No dependencies (pure Python stdlib). It can only ever write
one bank.

How Hermes Membrane flows: cloud assistants write notes to a synced folder, Membrane gates them into one shared Hindsight bank that every Hermes agent recalls, and a re-filtered digest flows back out.

Text version: cloud assistant โ†’ inbox/ โ†’ Membrane gate (reject โ†’ rejected/ + reason) โ†’ shared Hindsight bank โ†’ every Hermes agent via recall_additional_banks; shared bank โ†’ Membrane re-filter โ†’ hermes-digest/latest.md โ†’ cloud assistants (read-only, never re-ingested). Diagram source: assets/architecture.svg.

Dashboard

The Membrane dashboard page: Hindsight status, shared bank fact count, recall wiring across profiles, folder counts, rejections by rule and digest freshness.

Open Membrane in the Hermes dashboard (hermes dashboard) for a live
view of the bridge:

  • Status: Hindsight reachability and API version, shared bank fact count,
    digest freshness and last sync.
  • Recall wiring: which profiles recall the shared bank (โœ“ / โœ•),
    any profile writing into it as its own bank, and the exact keys to merge.
  • Metrics: inbox / processed / rejected counts, rejections broken down
    by rule, digest line and fact counts.
  • Controls: Refresh status and Dry run (ingest + export with
    nothing moved, retained or written). The page has no destructive actions.

Install

hermes plugins install https://github.com/noblebrown-69/hermes-membrane --enable
hermes plugins config membrane        # or edit config.yaml (below)
hermes membrane check                 # server reachable? recall wired?

You need a running Hindsight server and the Hindsight Hermes memory plugin
(2.0.0 or newer for recall_additional_banks).

Quickstart

1. Hermes side (once)

Settings live under plugins.entries.membrane.settings in your profile's
config.yaml (or the Desktop Settings โ†’ Plugins โ†’ Membrane form):

plugins:
  entries:
    membrane:
      settings:
        base_dir: ~/Shared-Memory          # any synced folder
        shared_bank: shared-memory         # the ONLY bank Membrane writes
        hindsight_url: http://127.0.0.1:8888
        export_banks: []                   # optional read-only banks for the digest

Then let every agent recall the shared bank. Merge these two keys into each
profile's Hindsight plugin config ($HERMES_HOME/hindsight/config.json):

{
  "recall_additional_banks": ["shared-memory"],
  "recall_max_tokens_mode": "split"
}

Keep each agent's own bank_id as it is: agents write their own bank and only
read the shared one. membrane_check_hindsight (or hermes membrane check --all-profiles) tells you which profiles still need the two lines.

Schedule a sync (pick one):

# systemd user timer (see examples/systemd/)
cp examples/systemd/membrane-sync.* ~/.config/systemd/user/
systemctl --user daemon-reload && systemctl --user enable --now membrane-sync.timer

# or cron (see examples/cron/crontab.example)
*/15 * * * * python3 /path/to/hermes-membrane/membrane-cli.py sync >> ~/.membrane-sync.log 2>&1

Or just ask an agent: "run membrane_ingest, then membrane_export_digest".

2. Cloud assistant side (once per assistant)

Give the assistant access to the synced folder, then paste
companion-skill/SKILL.md into it as a skill,
custom instruction or project rule. It tells the assistant three things:

  1. Where: write notes to ~/Shared-Memory/inbox/, read
    ~/Shared-Memory/hermes-digest/latest.md.
  2. When to write: after a durable decision, system change or research
    finding. Short Markdown, optional frontmatter, never secrets or private data.
  3. Never echo: never copy the digest (or lines from it) back into the inbox.

A note looks like this:

---
author: cloud-assistant
as_of: 2030-01-02T09:00:00Z
sensitivity: P0
---

Switched the nightly backup to 02:00 local and kept 14 daily snapshots.

3. Making it two-way (cloud assistant setup)

Membrane handles both directions on disk:

  • In: membrane_ingest takes new notes from inbox/ and puts them into the shared Hindsight bank.
  • Out: membrane_export_digest writes Hermes's recent memory to hermes-digest/latest.md.

Membrane runs locally, so it can't write into a cloud assistant's own memory.
For a full round trip, set up the cloud assistant to do its half:

DirectionWhat the cloud assistant does
Write to HermesDrop curated Markdown notes into inbox/, on demand or from a routine. Membrane picks them up on its next ingest run.
Read from HermesRead hermes-digest/latest.md when it needs context. Optionally, a light scheduled routine can read it after Membrane's export and save genuinely new, durable facts to the assistant's own memory.

Reading on demand is usually enough. Whichever you choose, the digest is
read-only: never copy hermes-digest/latest.md, or lines from it, back into
inbox/. If that happens, Membrane rejects it as echo-loop.

Tools

ToolWhat it doesWrites
membrane_ingestScan inbox/, fail-closed gate, SHA-256 dedup, async retain into the shared bank. dry_run supported.shared bank, processed/, rejected/, state/
membrane_export_digestRe-filter recent memories from the shared bank (+ read-only export_banks) into an anti-echo-tagged hermes-digest/latest.md. dry_run supported.hermes-digest/, state/
membrane_statusInbox/processed/rejected counts, last runs, shared bank fact count, digest freshness.nothing
membrane_check_hindsightServer reachability + whether this profile (or all_profiles) recalls the shared bank; prints the exact keys to add.nothing

Chat and CLI

SurfaceCommands
Chat/membrane status ยท /membrane check [--all-profiles] ยท /membrane ingest [--dry-run] ยท /membrane export [--dry-run] ยท /membrane sync [--dry-run]
CLIhermes membrane <ingest|export|sync|status|check> [--dry-run] [--json]
Timers / cronpython3 membrane-cli.py <command> [--base-dir DIR] [--bank ID] [--hindsight-url URL] [--export-bank ID] [--all-profiles]

Exit codes: 0 ok, 1 needs attention (a retain failed, a check found a
problem), 2 config error.

Dashboard API

Mounted at /api/plugins/membrane/ behind dashboard auth: GET /overview,
POST /dry-run (writes nothing), GET /banner, GET /health.

Security model

Membrane is built to fail closed. A note that cannot be proven safe does not
cross.

  • Sensitivity gate on both directions. Ingest and export both run the
    scanner: echo-loop, secrets (key/token assignments, provider token
    shapes, private keys, JWTs), medical, financial, pii-contact,
    job-search, private-draft. Add your own rules with
    extra_block_patterns: ["codename=project\\s+bluebird"]. Optional
    categories can be disabled; echo-loop and secrets never can. A bad
    custom regex is a config error, not a silent pass.
  • Rejections explain themselves. A rejected note moves to rejected/
    with a <name>.reason.txt sidecar naming the rule. Nothing rejected is ever
    retained.
  • Strict bank isolation. The Hindsight client is bound to the single
    configured shared bank. It refuses to create or write any other bank, reads
    only the shared bank plus your explicit export_banks, and has no delete
    surface at all.
  • Anti-echo. Every digest carries source: hindsight and
    tag: membrane-digest. A digest dropped back into the inbox is rejected, and
    so is a note that copies a single digest line (line hashes are remembered).
  • Path safety. Symlinks in the inbox are rejected (the link is moved, its
    target is never read). Sub-folders that are symlinks or resolve outside the
    shared folder stop the run. Files are opened with O_NOFOLLOW, capped at
    max_file_bytes (256 KiB default) and must be UTF-8.
  • Atomic, locked writes. Digest and state files are written to a temp file
    and renamed. A per-folder lock stops a timer and an agent racing each other.
  • P0 / P1 labels. Notes are labelled P0 (shareable) or P1 (internal:
    local paths, private IPs, "internal only"). A P0 claim on text with
    internal hints is raised to P1; anything other than P0/P1 is rejected.

Disclosure. Membrane reads and writes only inside base_dir. It makes
HTTP calls only to your configured hindsight_url (list banks, create the one
shared bank, async retain into it, list memories of the shared and
allowlisted banks, /health, /version). membrane_check_hindsight reads the
Hindsight Hermes plugin's config.json for the active profile (and, with
all_profiles, each profile under the same Hermes root) and returns only bank
ids and recall settings, never credentials. The optional Hindsight API key is
read through Hermes's secret scope (MEMBRANE_HINDSIGHT_API_KEY) and is only
ever sent to that origin: a redirect to another scheme, host or port is
refused, never followed. No model
calls, no shell, no telemetry, no background process of its own. The
dashboard page reads the same data through /api/plugins/membrane/ and
offers no destructive actions.

Configuration

KeyDefaultMeaning
base_dir~/Shared-MemorySynced folder with inbox/ processed/ rejected/ hermes-digest/ state/
shared_bankshared-memoryThe only writable bank
hindsight_urlhttp://127.0.0.1:8888Hindsight API
hindsight_api_keyunsetOptional bearer token (secret)
export_banks[]Read-only banks added to the digest
digest_lookback_days14How far back the digest looks
per_bank_limit12Digest lines per bank
digest_max_lines200Hard cap on digest length
max_file_bytes262144Largest inbox note accepted
source_labelcloud-assistantAuthor tag when a note has none
extra_block_patterns[]Extra fail-closed rules, name=regex
disabled_categories[]Optional categories to switch off

Every key can also be set with an environment variable (MEMBRANE_BASE_DIR,
MEMBRANE_SHARED_BANK, โ€ฆ), which is handy for the systemd/cron examples.
Order, later wins: defaults, environment, the profile's plugin settings, CLI
flags. Profile settings beat the environment so that one gateway serving
several profiles never applies the launch profile's env to the others.

Layout

plugin.yaml            manifest (tools, settings form)
__init__.py            register(): tools, /membrane, hermes membrane
membrane-cli.py        standalone entry point for timers and cron (hyphenated: never importable)
hermes_membrane/       stdlib core: scanner, client, bridge, config, tools, cli
dashboard/             dashboard page (manifest, dist/index.js, dist/style.css, plugin_api.py)
companion-skill/       SKILL.md for cloud assistants
examples/              systemd timer + service, crontab, Hermes cron prompt
assets/                banner, architecture diagram, dashboard screenshot
tests/                 unittest suite (runs under pytest too)

Develop

python3 -m unittest discover -s tests -v     # dashboard route tests need FastAPI (the Hermes venv has it)
./scripts/scrub-check.sh                     # no secrets / home paths in tracked files
hermes plugins validate --install-deps .

License

MIT. See LICENSE.

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

More by noblebrown-69

4 plugins by noblebrown-69 in the catalog.

noblebrown-69media-carryThe 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.Communitytoolsnoblebrown-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