All plugins

librarian

Portable cross-session memory, conversation journaling, and cross-harness handoffs backed by a self-hosted or remote Librarian HTTP MCP server. Provides the 8-verb agent surface (recall, remember, flag_memory, store_handoff, list_handoffs, claim_handoff, search_references, journal), session-start primer and journal injection, automatic per-turn capture with forward-only private mode, and optional /librarian-handoff, /takeover, and /toggle-private slash commands. Stdlib-only at runtime. Disclosure — on by default, every completed turn is sent to the Librarian server you configure (POST /transcript; turn it off with auto_save: false), and the server's primer and recent journal are added to the system prompt at session start (turn the journal off with journal: false); MCP tool calls, transcript posts and journal fetches carry LIBRARIAN_AGENT_TOKEN, while GET /primer.md and /healthz are unauthenticated; all traffic goes only to that configured URL and redirects are refused. Non-secret config lives in $HERMES_HOME/librarian/config.json and per-session capture state in $HERMES_HOME/librarian-plugin/capture/ (pruned after 7 days).

JimJafarMemoryv1.54.6Updated 9 hours ago

About

Portable cross-session memory, conversation journaling, and cross-harness handoffs backed by a self-hosted or remote Librarian HTTP MCP server. Provides the 8-verb agent surface (recall, remember, flag_memory, store_handoff, list_handoffs, claim_handoff, search_references, journal), session-start primer and journal injection, automatic per-turn capture with forward-only private mode, and optional /librarian-handoff, /takeover, and /toggle-private slash commands. Stdlib-only at runtime. Disclosure — on by default, every completed turn is sent to the Librarian server you configure (POST /transcript; turn it off with auto_save: false), and the server's primer and recent journal are added to the system prompt at session start (turn the journal off with journal: false); MCP tool calls, transcript posts and journal fetches carry LIBRARIAN_AGENT_TOKEN, while GET /primer.md and /healthz are unauthenticated; all traffic goes only to that configured URL and redirects are refused. Non-secret config lives in $HERMES_HOME/librarian/config.json and per-session capture state in $HERMES_HOME/librarian-plugin/capture/ (pruned after 7 days).

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 automatic agent_id and project_key scoping.
  • 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 /transcript on 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": false in config.json (or LIBRARIAN_AUTO_SAVE=false).
  • Optional slash commands — /librarian-handoff, /takeover, and /toggle-private when 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) with LIBRARIAN_AGENT_TOKEN in the Authorization: Bearer header, plus unauthenticated GET /primer.md and GET /healthz. HTTP redirects are refused (_NoRedirect) so credentials never leak cross-origin.
  • Credentials: Reads LIBRARIAN_AGENT_TOKEN through Hermes's profile-scoped agent.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 (mode 0600; legacy $HERMES_HOME/librarian-plugin/config.json is 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 cwd for a .git entry 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 (or LIBRARIAN_AUTO_SAVE=false) to disable automatic per-turn transcript capture, "journal": false (or LIBRARIAN_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.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section