
Engram
io.github.kael-bit由 GitHub 账号 kael-bit 发布v0.10.0更新于 Oct 24, 2026
Hierarchical memory for AI agents. Three-layer (buffer/working/core) with decay and promotion.
发布方自己的服务:Engram
概览
为 AI 助手提供分层长期记忆的本地服务器,具备三层衰减与晋升机制,让助手能存储、搜索并在开场时恢复上下文。
- 可以做什么
- 存储与唤回记忆:写入新记忆、按语义或关键词搜索,并按令牌预算取回结果。管理记忆生命周期:三层(缓冲、工作、核心)按重要度衰减与晋升,并自动去重与合并。浏览主题树:由向量聚类与 LLM 命名,可先扫目录再展开特定主题。按标签触发:用 trigger 标签在动作前取回相关教训。会话恢复:一次取回核心规则、近期变动、主题索引与触发清单。用命名空间隔离不同项目的记忆。
- 适用场景
- 适合希望助手在多次会话之间保留长期记忆,并自动整理、淡忘与合并重复内容的使用者。若需要跨项目隔离记忆,或想在部署等风险操作前自动唤回相关经验,也值得加入。
- 运行要求
- 以 npm 包在本机运行,需要 Node.js 与 npx。需连接本机的 engram 服务器,用 ENGRAM_URL 指定地址、用 ENGRAM_API_KEY 验证。若要启用智能功能(分类、晋升判断、合并、主题命名),需另行配置兼容的 LLM 端点与密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Engram,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
[图片]来源:README.md,提交 a9134e0
工具
0版本历史
1- v0.10.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Engram 集成

Engram
tools.engram官方发布者
Engram 为 AI 助手提供跨工具、会话、代码仓库和团队成员共享的持久记忆层。

Engram
由 GitHub 账号 TushaeBXN 发布
面向AI的本地私密长期记忆:逐字保存、可搜索、可更正。无需LLM或API密钥。AI 翻译

Engram: AI memory you can edit in Obsidian
由 GitHub 账号 engram-app 发布
托管式 MCP 记忆服务器,让 Claude、ChatGPT 等 MCP 客户端共享可读写的笔记,并可在 Obsidian 或网页应用中编辑。

Engram
由 GitHub 账号 devinmlowe 发布
Engram 是面向编码代理的本地优先认知记忆服务器:捕获对话、提取结构化知识,并提供混合检索、知识图谱与记忆管理。

Engram
由 GitHub 账号 tstockham96 发布
Engram 为 AI 助手提供本地 SQLite 记忆库,支持语义检索、知识图谱和由 LLM 驱动的记忆整合。