Long-term memory for AI agents that runs on your own machine, remembers where every fact came from, and keeps every user's memories apart.
Severian gives an agent a memory it can trust. It saves what was said exactly as it was said, derives short searchable memories from it, and hands the answering model a compact, cited context block for each question. It runs on SQLite out of the box (PostgreSQL + pgvector when you need it), works fully offline, and plugs into Hermes Agent, any MCP client, a CLI, an HTTP API or plain Python.
Severian on the OmniMemEval long-term-memory leaderboard (October 2026). Every other row is OmniMemEval's own published record, copied verbatim; Severian's row (†) is our run through the same public harness, answer model (gpt-4.1-mini), judge (gpt-4o-mini), prompts and metrics, not an official board entry. 🥇 marks the best score in each column; - means not run.
Configuration for the Severian row above and every Severian number below: 0.3.11, commit 4467853, board depth (top-20, no character cap), answer gpt-4.1-mini, judge gpt-4o-mini-2024-07-18. The Hermes-default comparison uses top-10 with an 8,000-character cap; the 16,000-character side test is labelled where it appears. 0.3.12 and 0.3.13 are byte-identical with their switches off, so the results stay labelled 0.3.11. Every later release (0.4.0 to 0.6.3) was checked to return byte-identical search results and context on 50 fixed benchmark queries with its new switches off.
Per-benchmark tables for every system (LoCoMo, LongMemEval, BEAM, PersonaMem v2, HaluMem), the LCM-X validation, the plan and its changes, and the limitations are in docs/benchmarks/omnimemeval-2026-10.md. Our earlier internal round against Mem0, Mnemosyne, Hindsight and Honcho (different harness and marker) is in docs/benchmarks/competitor-round-2026-10.md.
These are decisions, not omissions:
┌──────────────────────────────────────────┐ │ SOURCE INPUT │ │ text observation · attachments (multi- │ │ modal metadata: image/audio/video/file) │ └──────────────────┬───────────────────────┘ │ ▼ ┌──────────────────────────────────────────┐ │ IngestionService │ │ normalise · hash raw · source identity │ └──────────────────┬───────────────────────┘ │ ┌─────────────────────────┼─────────────────────────┐ ▼ ▼ ▼ ┌───────────────────────┐ ┌───────────────────────┐ ┌───────────────────────┐ │ CANONICAL STORE │ │ derive job queue │ │ Entity/Relation │ │ (SQLite | PostgreSQL)│──▶│ (leased, crash-safe, │──▶│ Graph (auto-populated │ │ observations │ │ idempotent) │ │ by EntityExtraction) │ │ memories │ └───────────────────────┘ └───────────────────────┘ │ entities/relations │ │ jobs · audit events │ append-only · scoped · hashed · supersede-aware └───────────────────────┘ │ ▼ ┌──────────────────────────────────────────────────────────────┐ │ DerivationService (worker drains derive/episode jobs) │ │ · dream modes exist but no production path queues them yet │ │ · policy-gated (cloud_allowed false by default) │ │ · deterministic hash OR Qwen 0.6B semantic opt-in │ │ · skips superseded observations (P0-5) │ │ · EntityExtractionService upserts entities + typed relations│ └──────────────────────────────────────────────────────────────┘ │ ├──────────────► ProjectionCoordinator │ ├──► FTS5 lexical projection (BM25) │ └──► vector projection (hash default; │ Qwen 0.6B semantic opt-in, 384-dim) │ ▼ ┌──────────────────────────────────────────────────────────────┐ │ RetrievalService (hybrid RRF fusion) │ │ · coverage abstention gate · optional salience weighting │ │ (off by default) │ │ · shared-scope read (search_shared, opt-in multi-agent) │ │ · temporal query orientation (active head first for present)│ └───────────────┬──────────────────────────────────────────────┘ │ ├──────────────► ContextAssembler (bounded, source-cited) │ ▼ ┌──────────────────────────────────────────────────────────────┐ │ GraphRetrievalService │ │ · BFS neighborhood over Entity/Relation (both directions) │ │ · temporal validity filtering (expired relations excluded) │ │ · related_memories by min graph distance │ └──────────────────────────────────────────────────────────────┘ OFFLINE MAINTENANCE SERVICES (dream modes; no production producer yet; non-destructive): ┌──────────────────────────────────────────────────────────────┐ │ ConsolidationService · Jaccard near-dup merge (>= 0.8) │ │ CurationService · salience scoring (recency + │ │ confidence; usage term inert) │ │ RetentionPolicyService· max_age/min_usage/kinds policy, │ │ evaluate + opt-in archive │ │ ContradictionScanService · report-only, never auto-resolves │ └──────────────────────────────────────────────────────────────┘ The canonical store is the only source of truth. Search indexes are projections that can be rebuilt from it at any time. Worker jobs derive memories and facts in the background, so saving stays fast. A failed job retries and then dead-letters; it never silently disappears. Retrieval runs inside one exact scope, fuses lexical and semantic results, and drops memories a newer fact has closed from the current view (they stay in history). More: architecture, memory engine, threat model.
Install from PyPI with pip install severian (or uv add severian). To work from source, you need Python 3.11+ and uv:
git clone https://github.com/Sahil-SS9/Severian.git cd severian uv sync # Save an observation in a scope uv run severian ingest \ --database data/severian.db --fts data/fts.db --vectors data/vectors.db \ --tenant acme --profile alice --collection main --agent cli --session ses-1 \ --content "Alice signed the Acme contract on Friday" \ --source '{"uri": "note://contract-1"}' # Search it (--derive processes pending jobs first; production runs `severian work`) uv run severian search \ --database data/severian.db --fts data/fts.db --vectors data/vectors.db \ --tenant acme --profile alice --collection main --agent cli --session ses-1 \ --query "contract" --derive Or run the Python example, which saves memories for two users, searches one and builds a cited context:
uv run python examples/quickstart.py Use it from Surface How Hermes Agent Drop-in memory provider: hermes plugins install severian (or copy plugins/hermes/severian/ to $HERMES_HOME/plugins/severian/), set memory.provider: severian. Tools: search, ingest, correct, forget, shared search, task progress notes. MCP full seven-tool surface over stdio for Claude Code, Codex, OpenCode and Claude Desktop: docs/integrations.md. Tools: ingest, search, get, correct, forget, task progress, shared search. Launch is fail-closed: pin --tenant-id/--profile-id (or the SEVERIAN_MCP_* pair), or pass --trusted-single-tenant on a trusted single-user host. Python severian.composition.build_bundle(...); see examples/quickstart.py HTTP uv run severian serve (dev server); client in severian.sdk.client CLI severian ingest / search / work / export / import / audit / rebuild-vectors / jobs requeue / ... (--help lists all) The MCP launch binding pins tenant and profile only; collection_id, agent_id and session_id stay caller-chosen for each tool call. Give every harness its own profile in docs/integrations.md.
Behaviour switches are environment variables, so the same code serves benchmarks, tests and production.
The recommended settings are the ones benchmarked above. PostgreSQL setup: docs/postgresql-backend.md. Day-to-day running: docs/operator-runbook.md.
Two moves carry the next round: per-person fact sheets to close the multi-hop gap, and a better rule for knowing when to answer "I don't know". Then a wider field (MemMachine, Graphiti/Zep, Letta, Cognee, LangMem, Memobase), a cloud-model check of the winning setup, and stricter marks: every in-house run re-marked by Opus, plus cost per memory, a 10x-size stress test, and a confident-wrong vs "I don't know" measure.
See CONTRIBUTING.md for the development loop and quality gates, and SECURITY.md to report a vulnerability. Release history: CHANGELOG.md. All documentation: docs/.
Both files in this release have provenance metadata.
agents hermes llm mcp memory retrieval
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 23, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Oct 25, 2026 2 release files Full provenance




