All plugins

qdrant

Dense semantic memory for Hermes, stored in a Qdrant collection you host. Each turn becomes one point — user and assistant text verbatim, no LLM summarization step — embedded on-device at 384 dimensions with fastembed (ONNX; the default install is 206 MB of runtime dependencies with no torch, versus ~1.2 GB when sentence-transformers was a hard dependency) and recalled by cosine search with an optional session_id payload filter, so a result quotes what was actually said. Registers 7 tools: qdrant_search, qdrant_upsert, qdrant_recall, qdrant_collect, qdrant_prepare, qdrant_forget (point-targeted deletion, dry-run by default, no delete-all), and md_search (local markdown knowledge index). An optional recall-indicator display, display.level (off | summary | verbose, default off), adds latency and collection to the chat indicator at summary and one numeric line per operation to the log at verbose — numbers and identifiers only, never recalled message text or search-result snippets (the md_search line also echoes the query you searched — your own input, not recalled content); it is separate from the older top-level progress knob (off | minimal | verbose), which gates status events. sentence-transformers is selectable on GPU hosts; both backends produce identical vectors for all-MiniLM-L6-v2, so switching backends needs no re-embedding. A circuit breaker (5 consecutive I/O failures, 120 s cooldown) degrades to no new memories instead of crashing, and is_available()/check_backend()/unavailable_reason() distinguish a misconfiguration from a dead server. Optional hybrid dense+sparse RRF search (default off): one config key enables dense+BM25 RRF fusion. A fresh collection declares the sparse vector at creation and an existing dense-only store gets it added in place (Qdrant >= 1.18) with one bundled backfill command; measured +0.024 recall@10 on the LongMemEval 1,000-example benchmark. INT8 quantization is not implemented. Local embedded Qdrant mode is not supported: the provider is REST-only and needs a reachable server. Six opt-in hardening knobs (gate, temporal, rerank, entities, cascade, ledger), metadata filter operators, decay_scan.py and semantic_dedup.py scripts, hybrid dense+sparse RRF search, and display.level (off|summary|verbose) — all default off, so existing users see no change unless they opt in. Disclosure — all memory content (verbatim user and assistant turns) is stored in and read back from the Qdrant server at the configured url (default http://localhost:6333); QDRANT_API_KEY is only needed for Qdrant Cloud, is kept in .env and read through the Hermes secret scope, and is never written to config.yaml or qdrant.json. Disclosure — the only other outbound traffic is a one-time download of the embedding model weights (plus the 10 MB Qdrant/bm25 sparse model when hybrid is on, and the Xenova/ms-marco-MiniLM-L-6-v2 cross-encoder or the configured rerank_model when the rerank knob is on) from huggingface.co (fastembed falls back to storage.googleapis.com/qdrant-fastembed if that fails); embedding and reranking run on-device and no memory content goes to any other party. Disclosure — settings are stored in <HERMES_HOME>/qdrant.json (created 0600, no credentials), last-operation status in <HERMES_HOME>/qdrant-status.json, and, only when the ledger knob is on, per-memory history including the first 200 characters of each stored memory in <HERMES_HOME>/qdrant-memory-ledger.db. Disclosure — md_search returns snippets of local markdown to the model from ~/.hermes/skills, the Obsidian vault at ~/Documents/hermes_default, ~/.hermes/hermes-agent/website and any path in the md_docs_roots key of qdrant.json; its index is built only when you run scripts/md_ingest.py and lives in <base Hermes home>/state/md-search/ (shared by all profiles). Disclosure — the optional semantic tier (md_ingest.py --semantic, and md_search queries with few lexical hits) sends embedding vectors plus file-path labels and section headings, never chunk text, to a separate hermes_md_docs collection on the Qdrant server named by the QDRANT_URL env var (default http://localhost:6333, no API key), and downloads paraphrase-multilingual-MiniLM-L12-v2 from huggingface.co on first use. Disclosure — the plugin is not a server and registers no MCP server, but it is loaded in-process into every Hermes process that embeds, so each one pays its own model copy (measured ~194-211 MB per process). Disclosure — the bundled scripts/backfill_memory.py (run by hand; a dry run unless --yes) reads a profile's Hermes session database (<profile>/state.db, read-only) and copies every stored user, assistant and tool message from every session source (cli, cron, subagent, gateway), in 2,000-character chunks, into the collection at the url in qdrant.json (default http://localhost:6333); nothing reads state.db unless you run it.

kuehnberger1Memoryv0.2.0Updated 13 days ago

About

Dense semantic memory for Hermes, stored in a Qdrant collection you host. Each turn becomes one point — user and assistant text verbatim, no LLM summarization step — embedded on-device at 384 dimensions with fastembed (ONNX; the default install is 206 MB of runtime dependencies with no torch, versus ~1.2 GB when sentence-transformers was a hard dependency) and recalled by cosine search with an optional session_id payload filter, so a result quotes what was actually said. Registers 7 tools: qdrant_search, qdrant_upsert, qdrant_recall, qdrant_collect, qdrant_prepare, qdrant_forget (point-targeted deletion, dry-run by default, no delete-all), and md_search (local markdown knowledge index). An optional recall-indicator display, display.level (off | summary | verbose, default off), adds latency and collection to the chat indicator at summary and one numeric line per operation to the log at verbose — numbers and identifiers only, never recalled message text or search-result snippets (the md_search line also echoes the query you searched — your own input, not recalled content); it is separate from the older top-level progress knob (off | minimal | verbose), which gates status events. sentence-transformers is selectable on GPU hosts; both backends produce identical vectors for all-MiniLM-L6-v2, so switching backends needs no re-embedding. A circuit breaker (5 consecutive I/O failures, 120 s cooldown) degrades to no new memories instead of crashing, and is_available()/check_backend()/unavailable_reason() distinguish a misconfiguration from a dead server. Optional hybrid dense+sparse RRF search (default off): one config key enables dense+BM25 RRF fusion. A fresh collection declares the sparse vector at creation and an existing dense-only store gets it added in place (Qdrant >= 1.18) with one bundled backfill command; measured +0.024 recall@10 on the LongMemEval 1,000-example benchmark. INT8 quantization is not implemented. Local embedded Qdrant mode is not supported: the provider is REST-only and needs a reachable server. Six opt-in hardening knobs (gate, temporal, rerank, entities, cascade, ledger), metadata filter operators, decay_scan.py and semantic_dedup.py scripts, hybrid dense+sparse RRF search, and display.level (off|summary|verbose) — all default off, so existing users see no change unless they opt in. Disclosure — all memory content (verbatim user and assistant turns) is stored in and read back from the Qdrant server at the configured url (default http://localhost:6333); QDRANT_API_KEY is only needed for Qdrant Cloud, is kept in .env and read through the Hermes secret scope, and is never written to config.yaml or qdrant.json. Disclosure — the only other outbound traffic is a one-time download of the embedding model weights (plus the 10 MB Qdrant/bm25 sparse model when hybrid is on, and the Xenova/ms-marco-MiniLM-L-6-v2 cross-encoder or the configured rerank_model when the rerank knob is on) from huggingface.co (fastembed falls back to storage.googleapis.com/qdrant-fastembed if that fails); embedding and reranking run on-device and no memory content goes to any other party. Disclosure — settings are stored in <HERMES_HOME>/qdrant.json (created 0600, no credentials), last-operation status in <HERMES_HOME>/qdrant-status.json, and, only when the ledger knob is on, per-memory history including the first 200 characters of each stored memory in <HERMES_HOME>/qdrant-memory-ledger.db. Disclosure — md_search returns snippets of local markdown to the model from ~/.hermes/skills, the Obsidian vault at ~/Documents/hermes_default, ~/.hermes/hermes-agent/website and any path in the md_docs_roots key of qdrant.json; its index is built only when you run scripts/md_ingest.py and lives in <base Hermes home>/state/md-search/ (shared by all profiles). Disclosure — the optional semantic tier (md_ingest.py --semantic, and md_search queries with few lexical hits) sends embedding vectors plus file-path labels and section headings, never chunk text, to a separate hermes_md_docs collection on the Qdrant server named by the QDRANT_URL env var (default http://localhost:6333, no API key), and downloads paraphrase-multilingual-MiniLM-L12-v2 from huggingface.co on first use. Disclosure — the plugin is not a server and registers no MCP server, but it is loaded in-process into every Hermes process that embeds, so each one pays its own model copy (measured ~194-211 MB per process). Disclosure — the bundled scripts/backfill_memory.py (run by hand; a dry run unless --yes) reads a profile's Hermes session database (<profile>/state.db, read-only) and copies every stored user, assistant and tool message from every session source (cli, cron, subagent, gateway), in 2,000-character chunks, into the collection at the url in qdrant.json (default http://localhost:6333); nothing reads state.db unless you run it.

Qdrant memory provider for Hermes

Local-first, self-hostable vector memory for Hermes Agent,
backed by Qdrant. No cloud dependency, no embedding API key, no
per-query cost. Your data stays on your machine.

How it works

flowchart TD
    A["Agent turn<br/>(user + assistant)"] --> B["Local ONNX embedder<br/>384-dim, CPU-only"]
    B --> C[("Qdrant collection<br/>hermes_memories")]
    C --> D["Session-scoped recall<br/>dense vector search + session_id filter"]
    D --> E["Verbatim memories<br/>quoted, not summarized"]

    F["qdrant_search"] --> D
    G["qdrant_upsert"] --> B
    H["qdrant_recall"] --> C
    I["qdrant_collect"] --> C
    J["qdrant_prepare"] --> B
    K["qdrant_forget"] --> C
    L["md_search"] --> M[("Local markdown<br/>FTS5 + embeddings")]

What it does

Your agent's memory is a Qdrant collection you run yourself. Each turn is embedded
locally and stored as one point; recall is a dense vector search filtered by session,
so a result quotes what was actually said — there is no summarizer quietly rewriting it.

  • Dense semantic search over your conversation history.
  • Session-scoped recall — a new profile starts with empty memory.
  • Seven tools: qdrant_search, qdrant_upsert, qdrant_recall, qdrant_collect,
    qdrant_prepare, qdrant_forget, and md_search (search your local markdown).
  • Honest failure states — a bad config and a dead server are told apart, and a
    circuit breaker turns an outage into "no new memories" instead of a crash.

Install

docker run -p 6333:6333 qdrant/qdrant
hermes plugins install qdrant
hermes memory setup qdrant

Two runtime dependencies, 206 MB, no torch, no GPU, no CUDA. The default install is
CPU-only ONNX embedding at 384 dimensions.

What you get

No vendor lock-inREST-only — open your collection with curl or any HTTP tool.
No monthly costOne model download, then everything is local.
No summarizationMemories are verbatim turns. You own the conversation.
Auditableqdrant_forget is point-targeted and dry-run by default; there is no delete-all.

First memory

hermes memory setup qdrant

Then talk to your agent. Memory writes on its own; hermes memory status shows whether
the provider is connected and what it last stored.

Prefill from history you already have

A memory provider only knows what it saw, so a fresh install starts empty even
if your agent has months of conversations. One command fixes that — it reads
the profile's session database and writes every stored message into the
collection, so recall works from the first turn:

# see what it would do (writes nothing)
python scripts/backfill_memory.py --profile <name>

# do it
python scripts/backfill_memory.py --profile <name> --yes

Sessions already in the store are skipped, point ids are deterministic, and
the run is safe against a live profile (the database is opened read-only), so
re-running only fills genuine gaps. It is also the migration path between
memory providers, and the way to seed a store you are moving to a new
machine. Detail: docs/DEV.md.

Configuration

Settings live in <HERMES_HOME>/qdrant.json (created 0600, no credentials):

{
  "url": "http://localhost:6333",
  "collection": "hermes_memories",
  "vector_size": 384,
  "distance": "Cosine"
}

The API key, when you need one (Qdrant Cloud only), goes in .env as QDRANT_API_KEY —
never in a config file.

Optional: see the work happening

display.level in qdrant.json controls what the chat indicator shows:

levelwhat you see
off (default)nothing new — byte-identical to before
summary📖 qdrant · 41ms · hermes_memories — recalled 10 memories
verbosethe above, plus one numeric line per operation in the log

Numbers and identifiers only — never message text.

Optional: hybrid search (dense + BM25)

"hybrid": "on" in qdrant.json adds a 10 MB BM25 sparse vector next to the
semantic one and fuses both rankings (RRF). Off by default. A fresh collection
declares the sparse vector at creation; an existing dense-only store gets it
added in place and its old points backfilled with one command
(python scripts/migrate_hybrid.py --collection hermes_memories --yes).
Measured gain, honest limits, and a re-runnable harness: docs/HYBRID.md.

Optional: memory hardening (all default off)

Six opt-in keys, each one line in qdrant.json. Default is off for every one,
so an untouched install behaves exactly as before. hermes memory status reports
each under hardening.

KeyWhat it buys
gateSkips recall and storage for small talk — no embedding spent on "ok thanks".
temporalUnderstands "last week" / "in 2023" and spreads results across the window.
rerankCross-encoder rerank of fused candidates (rerank_model to change it).
entitiesRe-ranks by shared names and code identifiers. Heuristic, no LLM.
cascadeOrdered recall degradation, reported with its level and reason.
ledgerLocal per-point history and usage stats (retrieval counts, trust score).

qdrant_search also takes a filters argument (exact match, comparison
operators, contains, and AND/OR/NOT); the session scope is always
applied on top, so a filter narrows a search but never widens it.

Two maintenance scripts ship with the same "dry run unless you say otherwise"
rule: scripts/decay_scan.py (archive stale machine-generated points) and
scripts/semantic_dedup.py (merge near-duplicates). Neither deletes anything —
both set an archived flag that recall then honours, and both have an undo.

Where the detail lives

This file is the entry point. Everything else is in:

  • docs/DEV.md — architecture, embedder backends, the knowledge index, backups,
    the eval harness, and what is deliberately not implemented.
  • docs/HYBRID.md — hybrid search: measured numbers, the collection rule, limits.
  • CONTRIBUTING.md — ground rules, layout, and the PR checklist.
  • AGENTS.md — the decisions whose reversal costs a review round (for contributors).
  • CHANGELOG.md — what changed in each release.
  • SECURITY.md — how to report a security issue.

License

MIT

README from the reviewed commit f995c90; 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