
Engram
io.github.kael-bitPublished by GitHub account kael-bitv0.10.0Updated Oct 24, 2026
Hierarchical memory for AI agents. Three-layer (buffer/working/core) with decay and promotion.
The publisher's own server: Engram
Overview
Local hierarchical memory server for AI agents with a three-layer decay and promotion model, letting an assistant store, search and resume context across a task
- What you can do
- Store and recall memories: write new entries, search by meaning or keyword, and retrieve within a token budget. Manage the memory lifecycle: three layers (buffer, working, core) with importance decay, promotion and automatic dedup and merge. Browse a self-organizing topic tree that clusters and names related memories. Recall by tag triggers before an action, such as deployment lessons. Restore session context in one call with core rules, recent changes, topic index and trigger list. Isolate memories per project with namespaces.
- When to use it
- Use it when an assistant should keep durable memory across sessions and have that memory organized, faded and deduplicated automatically. Also useful for isolating memory per project or recalling past lessons before risky actions such as deployments.
- Requirements
- Runs locally as an npm package, so Node.js and npx are needed. It connects to a local engram server addressed by ENGRAM_URL and authenticated with ENGRAM_API_KEY. Intelligent features (triage, promotion gate, merge, topic naming) need a separately configured OpenAI-compatible or Anthropic LLM endpoint and key.
Installation
In SourceWeft
- Open Engram in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
engram-rs
[CI] [License: MIT] [Rust] [GitHub stars] [Docker]
Memory engine for AI agents. Two axes: time (three-layer decay & promotion) and space (self-organizing topic tree). Important memories get promoted, noise fades, related knowledge clusters automatically.
Most agent memory is a flat store — dump everything in, keyword search to get it back. No forgetting, no organization, no lifecycle. engram-rs adds the part that makes memory actually useful: the ability to forget what doesn't matter and surface what does.
[engram demo — store, context reset, recall]
Single Rust binary, one SQLite file, zero external dependencies. No Python, no Redis, no vector DB — curl | bash and it runs. ~10 MB binary, ~100 MB RSS, single-digit ms search latency.
Quick Start
What It Does
Three-Layer Lifecycle
Inspired by the Atkinson–Shiffrin memory model, memories are managed across three layers by importance:
- Buffer: Entry point for all new memories. Temporary staging — evicted when below threshold
- Working: Promoted via consolidation. Never deleted, importance decays at different rates by kind
- Core: Promoted through LLM quality gate. Never deleted
LLM Quality Gate
Promotion isn't rule-based guesswork — an LLM evaluates each memory in context and decides whether it genuinely warrants long-term retention.
Automatic Decay
Decay is activity-driven — it only fires during active consolidation cycles, not wall-clock time. If the system is idle, memories stay intact.
Exponential decay follows the Ebbinghaus forgetting curve — fast at first, then long-tail. Memories never fully vanish (floor = 0.01), remaining retrievable under precise queries. When a memory is recalled, it gets an activation boost, strengthening frequently-used knowledge.
Algorithm Visualizations
Semantic Dedup & Merge
Two memories saying the same thing in different words? Detected and merged automatically:
Self-Organizing Topic Tree
Vector clustering groups related memories together, LLM names the clusters. No manual tagging required:
The problem this solves: vector search requires asking the right question. Topic trees let agents browse by subject — scan the directory, drill into the right branch.
Triggers
Tag a memory with trigger:deploy, and the agent can recall all deployment lessons before executing:
Session Recovery
Agent wakes up, calls GET /resume, gets full context back. No file scanning needed:
Agent reads the directory, finds relevant topics, calls POST /topic to expand on demand.
Search & Retrieval
Semantic embeddings + BM25 keyword search with CJK tokenization (jieba). IDF-weighted scoring — rare terms get boosted, common terms auto-downweighted. No stopword lists to maintain.
Background Maintenance
Fully automatic, activity-driven — no writes means the cycle is skipped:
Consolidation (every 30 minutes)
- Decay — reduce importance of unaccessed memories
- Dedup — merge near-identical memories (cosine > 0.78)
- Triage — LLM categorizes new Buffer memories
- Gate — LLM batch-evaluates promotion candidates
- Reconcile — resolve ambiguous similar pairs (results cached)
- Topic tree rebuild — re-cluster and name
Topic Distillation — when a topic grows too large (10+ memories), overlapping content is condensed into fewer, richer entries.
Namespace Isolation
Single instance, multiple projects. Use X-Namespace to isolate:
Install
Docker
LLM Configuration
engram-rs works without an LLM — keyword search and rule-based lifecycle still function. Adding an LLM unlocks intelligent features (triage, gate, merge, topic naming):
Two-tier model config — strong model for judgment, lightweight for text processing:
For AI Agents
Add to your agent's system prompt:
Integration
Works with Claude Code, Cursor, Windsurf, OpenClaw, and any MCP-compatible tool.
17 MCP tools (MCP docs) | Full HTTP API (Setup guide)
Web Dashboard
Built-in web UI at http://localhost:3917/ui for browsing memories, viewing the topic tree, and monitoring LLM usage.
Specs
License
MIT
[Image]Source: README.md at commit a9134e0
Tools
0Version history
1- v0.10.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Engram integrations

Engram
tools.engramOfficial publisher
Engram gives AI assistants a shared memory layer that persists across tools, sessions, repositories and teammates.

Engram
Published by GitHub account TushaeBXN
Local, private long-term memory for AI: verbatim, searchable, correctable. No LLM or API key.

Engram: AI memory you can edit in Obsidian
Published by GitHub account engram-app
Hosted MCP memory server that gives Claude, ChatGPT and other MCP clients shared notes they can read and write, editable in Obsidian or the web app.

Engram
Published by GitHub account devinmlowe
Engram is a local-first cognitive memory server for coding agents: it captures conversations, extracts structured knowledge, and serves hybrid recall, graph and

Engram
Published by GitHub account tstockham96
Engram gives an AI assistant a local SQLite memory vault with semantic recall, a knowledge graph, and LLM-powered consolidation.