The Librarian — Hermes Memory Provider
A Hermes Agent Memory Provider backed by The Librarian: durable cross-session memory, conversation journaling, and cross-harness handoffs proxied to your Librarian HTTP MCP server (local or remote). Python ≥ 3.11, stdlib-only at runtime (no pip dependencies).
What you get
- The 8-verb agent surface as Hermes tools —
recall,remember,flag_memory,store_handoff,list_handoffs,claim_handoff,search_references,journal— proxied over HTTP MCP (tools/call) with automaticagent_idandproject_keyscoping. - Primer & recent journal in the system prompt — fetches the operator-editable primer (
GET /primer.md) and recent journal window (GET /journal.md?max_chars=9500) once per session. - Automatic per-turn capture — ships completed exchanges to
POST /transcripton a background worker (sync_turn/on_session_end), keyed by Hermes's session id. Honours forward-only private mode ([librarian:private=on]…[librarian:private=off]) and opts out via"auto_save": falseinconfig.json(orLIBRARIAN_AUTO_SAVE=false). - Optional slash commands —
/librarian-handoff,/takeover, and/toggle-privatewhen also enabled as a general plugin (hermes plugins enable librarian). - Fail-soft everywhere — a Librarian outage never blocks a turn; tool calls return structured JSON error envelopes and prompt hooks degrade to empty.
Install & configure
Requires a running Librarian server (see the docs).
# 1. Install from the Hermes plugin catalog
hermes plugins install librarian
# 2. Supply your agent bearer token (via Hermes profile .env or environment)
export LIBRARIAN_AGENT_TOKEN="<your-agent-token>"
# 3. Select and configure the memory provider (enter your Librarian /mcp URL)
hermes memory setup
# 4. (Optional) enable the /librarian-handoff, /takeover, and /toggle-private commands
hermes plugins enable librarian
Security & privacy disclosure
- Network calls: Communicates exclusively with the Librarian server URL you configure (
endpoint). Sends JSON-RPC 2.0 MCP calls (POST /mcp), per-turn conversation deltas (POST /transcript), and journal window reads (GET /journal.md) withLIBRARIAN_AGENT_TOKENin theAuthorization: Bearerheader, plus unauthenticatedGET /primer.mdandGET /healthz. HTTP redirects are refused (_NoRedirect) so credentials never leak cross-origin. - Credentials: Reads
LIBRARIAN_AGENT_TOKENthrough Hermes's profile-scopedagent.secret_scope.get_secret()API. Never writes the token to disk, URLs, or logs. - Local storage: Stores non-secret settings (
endpoint,agent_id,project_key,auto_save,journal,timeout_ms) in$HERMES_HOME/librarian/config.json(mode0600; legacy$HERMES_HOME/librarian-plugin/config.jsonis auto-migrated on read) and per-session capture sequence / private-mode markers in$HERMES_HOME/librarian-plugin/capture/(automatically pruned after 7 days). - Filesystem & processes: Walks ancestor directories of
cwdfor a.gitentry to derive a repository label for journal entries. Runs no shell commands, starts no background daemons, and contains no self-updater. - Telemetry: None.
- Opt-outs: Set
"auto_save": false(orLIBRARIAN_AUTO_SAVE=false) to disable automatic per-turn transcript capture,"journal": false(orLIBRARIAN_JOURNAL=off) to omit the journal window from the system prompt, or emit[librarian:private=on](or run/toggle-private) to suppress memory writes and transcript capture for sensitive turns.
README from the reviewed commit 80c0902; it updates when the author re-pins.

JimJafar