All plugins

limbic

Local long-term memory for Hermes agents: facts and preferences stay on your machine in one SQLite file with bundled embedding and natural language inference (NLI) models, decaying and reconsolidating organically with use and abstaining rather than guessing. No LLM calls. Disclosures Network: ~1.0GB of pinned, sha256-verified ONNX models download from huggingface.co on first session start (Arctic 2.0 L int8 ~570MB; MiniLMv2 NLI ~430MB). Optional spaCy models pip-install ~14.5MB from spaCy's GitHub releases — version not hash-pinned. Local files: everything lives under HERMES_HOME (limbic.db, backup VACUUM snapshots) except the model cache ~/.cache/limbic, which is pruned at every model load — files not in the pinned manifest are deleted, so never point cache_dir at a shared folder. Memories at trust zero are deleted. forget: user-scoped two-step (list candidates, pick one) that appends a hash-only receipt (sha256, length, user id, fact id) to limbic.db.deletions.jsonl beside the database. Agent surface is exactly remember, recall, forget — no shell commands, no background services, no stored credentials, no telemetry.

dyiapanis23Memoryv0.9.5Updated 12 days ago

About

Local long-term memory for Hermes agents: facts and preferences stay on your machine in one SQLite file with bundled embedding and natural language inference (NLI) models, decaying and reconsolidating organically with use and abstaining rather than guessing. No LLM calls.

Disclosures

  • Network: ~1.0GB of pinned, sha256-verified ONNX models download from huggingface.co on first session start (Arctic 2.0 L int8 ~570MB; MiniLMv2 NLI ~430MB). Optional spaCy models pip-install ~14.5MB from spaCy's GitHub releases — version not hash-pinned.
  • Local files: everything lives under HERMES_HOME (limbic.db, backup VACUUM snapshots) except the model cache ~/.cache/limbic, which is pruned at every model load — files not in the pinned manifest are deleted, so never point cache_dir at a shared folder. Memories at trust zero are deleted.
  • forget: user-scoped two-step (list candidates, pick one) that appends a hash-only receipt (sha256, length, user id, fact id) to limbic.db.deletions.jsonl beside the database.
  • Agent surface is exactly remember, recall, forget — no shell commands, no background services, no stored credentials, no telemetry.

LIMBIC — Self-Organising Memory for AI Agents

Self-Organising Memory for AI Agents

Version 0.9.5
Author: D Yiapanis · License: PolyForm Noncommercial 1.0.0 (source-available; commercial use requires a separate license)

Limbic is a self-organising local memory system for AI agents. It stores facts, learns which ones matter through interaction, and surfaces the right context at the right time — without ever calling an LLM. Designed for Hermes Agent and implements the upstream MemoryProvider ABC.


How It Works

Limbic is inspired by the brain's limbic system:

  • Hippocampus (encoding) — remember() embeds, checks interference, and stores
  • Amygdala (salience) — trust scoring, self-tunes from use
  • Thalamus (retrieval) — recall() searches and gates by relevance
  • Atrophy — memories superseded, contradicted and unused fade and are progressively forgotten.

The agent sees three tools (remember, recall, forget). The operator sees one file (limbic.db). Everything inside is self-organising.

What it does:

  • New memories start quiet and become easier to recall the more they're used
  • Similar memories compete — newer ones supersede older ones, older ones can block similar new ones
  • Novel facts get a trust boost; familiar ones don't
  • Corrections update trust without ever editing the stored fact
  • Use keeps a memory alive, recall resets its decay clock, and reinforcement lifts its trust, so what matters rises while what does not fades.
  • A background sweep removes memories that have faded beyond recall.
  • If nothing relevant exists for a query, recall says so (no_confident_match) rather than guessing
  • Relevance thresholds and decay rates tune themselves from use
  • Maturity is handled atomically by SQLite triggers

Research foundations: HippoRAG (NeurIPS 2024), Human-Inspired Memory Architecture (Microsoft 2026), StructMemEval, HEMA — see SPEC.md for details.


Quick Start

Platforms: Linux, macOS and Windows, CI-tested on all three. On Windows the model cache lives at %USERPROFILE%\.cache\limbic, and cross-process lock files are a POSIX feature — absent there, so the store initialises lock-free (WAL mode still protects the single-writer, single-user case). All dependencies ship prebuilt wheels for all three platforms; nothing to compile. One interpreter requirement: sqlite-vec loads through SQLite's loadable-extension API, so the Python must be built with --enable-loadable-sqlite-extensions — Hermes ships such a build, as do most Linux distributions, but python.org's macOS installers do not.

1 — Install from the Hermes catalog:

hermes plugin install limbic
hermes limbic setup   # pre-downloads the ~1GB ONNX models with progress

First remember() also triggers the same download lazily — Downloading models… appears in chat — but setup pre-warms with a bar so the first use is instant.

2 — Enable (if not using the catalog installer) — in ~/.hermes/profiles/<name>/config.yaml:

memory:
  provider: limbic            # activates Limbic as the memory provider
  memory_enabled: false       # disables the built-in MEMORY.md store
  user_profile_enabled: false # disables the built-in USER.md store

3 — Verify:

hermes limbic status        # shows storage, embedding, entity_extraction

The agent now has remember(content) and recall(query). No indexing, no server. setup already enables entity extraction (English) — no extra step for single-language use.

Multilingual defaults to English (en). To add more:

hermes limbic languages              # lists available, marks current with *
hermes limbic languages --set it     # saves + auto-downloads with progress
hermes limbic languages --set en,it  # multiple — lowest common set for multi-user

When no model is present, status shows entity_extraction: disabled and memory still works; the next remember() will prompt Downloading models… in chat. Single config nlp.languages covers all users in the profile.

Config file limbic.yaml is optional (defaults in Configuration).


Configuration

Each profile has a limbic.yaml that sets environmental bounds. The system adapts within these limits:

storage:
  provider: sqlite

embedding:
  provider: local              # bundled ONNX model — no endpoint, no external server
  model: Snowflake/snowflake-arctic-embed-l-v2.0   # bundled — leave as shipped; upgrades handle model changes via the embedder stamp
  dims: 1024                   # bundled — matches the shipped model; do not change

nlp:
  languages: [en]               # spaCy models for entity extraction (en, fr, el, …)

context_budget: 20              # ceiling on facts surfaced per turn
fragment_gate_chars: 60         # remember() rejects content below BOTH fragment gates
fragment_gate_words: 3

Adaptive parameters (decay half-life, relevance floor) are not static knobs — the trust engine tunes them in limbic_params.json.

If recall is poor, adjust in this order:

  • Too much noise in context? Lower context_budget (fewer facts surfaced per turn)
  • Facts fading too fast? Decay half-life is adaptive: it lengthens for facts that keep being retrieved — steady recall traffic on the important facts keeps them alive
  • System not learning? Feed it more experiences — write volume is the input the adaptivity learns from
  • Wrong content surfacing? Check stats/status for stale embeddings or an atrophy backlog; reindex if the embedder stamp is stale

When a plugin upgrade changes the bundled embedder, reindexing is
required.
Limbic ships its embedding model, and the store records which
embedder produced its vectors (the embedder stamp). If an upgrade ships a
different bundled model, status and stats report stale_embedder: true,
retrieval quality is degraded, and one command realigns the store (run on the
host where Hermes is installed — the script imports Hermes core):

python3 ~/.hermes/plugins/limbic/reindex.py --agent <profile-name>
python3 ~/.hermes/plugins/limbic/reindex.py --all          # every profile

Multi-User Mode

How isolated should memory be? Pick the weakest boundary that solves your problem:

  • Separate Hermes profiles — hard isolation, different DBs and agents. Use for different products, tenants, or users who must never share context.
  • One profile + users.yaml — one agent, one store, a separate memory bucket per user: what you store and recall is always attributed to the person speaking. The manifest adds display names and guardian semantics (a guardian may write into a ward's scope; others may not) — and its shape is the same whether there are two users or twenty.

Without the manifest the same isolation still happens: every platform account that talks to the agent gets its own bucket, keyed by their full platform ID (@alice:hs1 ≠ @alice42:evil.org; a single user simply sees one bucket). Adding the manifest later is purely additive — buckets resolve per user_id, never per configuration edit.

Enable multi-user mode by copying the shipped example next to the plugin code
(or set users_manifest: in limbic.yaml to any path):

cp ~/.hermes/plugins/limbic/users.yaml.example \
   ~/.hermes/plugins/limbic/users.yaml
# users.yaml — identity only; limbic reads display_name, scope,
# platform_ids, guardians. Roles are ignored here (see access-control).
users:
  alice:
    display_name: Alice
    scope: adult
    platform_ids:
      matrix: "@alice:example.org"
      telegram: "123456789"
    guardians: []
  bob:
    display_name: Bob
    scope: child
    guardians: [alice]
    platform_ids:
      matrix: "@bob:example.org"

Nouns defined:

  • platform_ids — every chat-platform account that belongs to one person;
    all of them resolve to the same memory bucket
  • scope — a coarse audience tag carried by the memory record (e.g. adult,
    child). It labels records injected into context; it is not an access
    control and does not gate tools by itself
  • guardians — other users who may write into this user's scope (e.g. a
    parent for a child); everyone else stays in their own bucket

The file is deployment-private (gitignored); users.yaml.example ships in
its place. Per-profile overrides: $HERMES_HOME/users.yaml beats the plugin
directory copy. Other plugins may read the same manifest for their own
identity needs (workspace delivery routing, credential prefixes) — it is the
one identity file in the stack.


Operator Functions

For the human running Hermes (hermes limbic ...):

hermes limbic forget <user_id>          # right to be forgotten
hermes limbic forget-fact <fact_id> --user <user_id>   # remove a single wrong fact
hermes limbic export <user_id>          # data export (lists fact IDs)
hermes limbic seed <user_id> <content>  # inject facts without conversation
hermes limbic reindex                   # re-embed all facts with bundled model
hermes limbic stats [user_id]           # per-user or aggregate metrics
hermes limbic status [user_id]          # atrophy candidates, storage health

Deleting or correcting a wrong fact

When a memory is wrong, the fix depends on why it is wrong. Two paths,
by intent:

  • The fact was wrong from the start (a misheard name, a bad extraction):
    remove it by ID — hermes limbic export <user_id> lists fact IDs,
    hermes limbic forget-fact <fact_id> --user <user_id> deletes it (the
    ownership check refuses another user's fact). Every deletion, on every
    path, writes a hash-only tombstone receipt — proof of what was removed,
    never a copy of the content itself.
  • The world changed (a newer value supersedes an old one): just store the
    correction. Write-time NLI links the pair, the old fact's trust is
    penalised, and recall prefers the correction whenever both are relevant
    to the query. The fade is still gradual — trust dynamics and maturation
    (~a week at the default curve) — but the correction wins from the day
    it is stored, not after the week.

License

License

PolyForm Noncommercial 1.0.0. Free for personal, research, educational, and noncommercial use. Commercial use requires a separate license.


Architecture

See SPEC.md for the full architecture — data model, lifecycle mechanisms, trust adaptation, retrieval pipeline, atrophy, and roadmap. See FAQ.md for common follow-up questions.

Hardware Requirements

Hermes Agent runs at 1 GB RAM / 1 CPU / 500 MB disk. Limbic adds:

  • RAM (per profile): ~700 MB resident once the memory is active — each profile loads its own ONNX embedder session; sessions are not shared across profiles. The NLI cross-encoder loads lazily on the first contradiction check and adds to that.
  • Disk (shared): ~1 GB model cache, downloaded once for ALL profiles (Arctic int8 ~570 MB + NLI ~430 MB). The English NER pipeline ships inside the plugin (~15 MB, no download). Per profile, the only growth is limbic.db — a few MB per 1,000 memories.
  • CPU (shared): 2 cores recommended. Embedding is ~17–19 ms int8 ONNX on CPU (measured on a minimalist non-GPU server); the NLI gate runs at write time only. No GPU.

See SPEC.md §Performance budget / §Scale projections for measured numbers.

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

More by dyiapanis

4 plugins by dyiapanis in the catalog.

dyiapanismediaragLocal, offline semantic search across your documents, notes, images, audio and subtitles: one index you query by meaning from Hermes or any MCP client, with snippets, timestamps and thumbnails from PDFs, Office files, photos and recordings. Disclosure — Downloads about 480 MB of EmbeddingGemma-2 ONNX model weights from Hugging Face at a pinned revision on first setup; offline after that. Reads the folders you point it at, outside the plugin directory. Runs pandoc, pdftotext, ffmpeg and curl from PATH; ffmpeg samples video files at 0.5 frames per second (first 240 frames) into its local cache to index them. Fetches the http(s) URLs you add, from public hosts only, re-checked on every redirect. Runs source adapters as local subprocesses; the optional Raindrop and Notion adapters send RAINDROP_API_TOKEN to Raindrop's API and NOTION_TOKEN to api.notion.com. With MEDIARAG_AUTO_BOOTSTRAP=1, the standalone MCP launcher installs its Python environment from PyPI, about 1.7 GB.Communitytools7dyiapanistabellaRead, create and convert documents — .docx, .xlsx, .pptx, .pdf, .odt, .ods, .odp — from structured JSON or HTML/CSS, with OCR for scanned files. Disclosures Shells out to pandoc for conversion, a TeX engine for PDF output, and tesseract for OCR. Re-execs into its own dependency venv, bootstrapped from PyPI on first run. Optional self-host HTTP server; a bearer token is generated into the plugin data directory on first run. Reads and writes only the filesystem paths you pass. Runs entirely locally: no network calls, no telemetry.Communitytools6dyiapanispass-secretspass (password-store) secret source: resolves secrets from a local, GPG-encrypted, git-tracked password store into environment variables at startup, as a first-class SecretSource beside the built-in Bitwarden and 1Password sources. Disclosure — When enabled, shells out to the local pass binary (10 s per entry) for every .gpg entry under the configured store subdirs and injects each as an env var that by default overrides .env and shell values; when enabled, also adds a ~900-char system-prompt note about secret resolution; registers a pre_gateway_dispatch hook that consumes !secret//secret messages before gateway auth and, only for senders listed in the plugin's chat_allowed_users setting (empty = off), writes the value into the pass store with pass insert -f (a shared/ entry becomes an env var in every agent at next start); no network.Communitytools1

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section