
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 驅動的記憶整併。