
Engram Cc
io.github.Morous-Dev由 GitHub 账号 Morous-Dev 发布v0.1.4更新于 Oct 24, 2026
Universal AI coding assistant memory — session handoff, SLM compression, and semantic retrieval.
发布方自己的服务:Engram
概览
面向 AI 编程助手的本地记忆层,记录会话事件并通过 MCP 提供交接、搜索和知识图谱上下文。
- 可以做什么
- 召回完整会话上下文,合并交接文件与跨会话工作记忆
- 对所有已捕获的会话事件进行全文搜索
- 列出最近的事件,可按类别筛选
- 遍历项目知识图谱,追踪相关文件与决策
- 通过生命周期钩子捕获会话活动,并在会话结束时本地合成交接内容
- 适用场景
- 适合长期使用 AI 编程助手、希望它在多次会话之间延续既有决策、改动文件和约定,而不是每次从零开始的场景,包括上下文压缩、文件夹改名或切换助手之后。
- 运行要求
- 以本地 stdio 进程运行,通过 npm 安装,需要 Node.js 18 或更高版本。需在项目根目录运行安装,生成项目内的 .engram-cc 目录以及助手钩子和 MCP 配置片段。本地合成层级需要共享模型目录中的 GGUF 模型和约 3 至 4 GB 内存,缺失时会回退到向量嵌入或规则提取。better-sqlite3 可能需要本机编译工具链。
安装
在 SourceWeft 中
- 打开 控制台中的 Engram Cc,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Engram Context Continuum
Universal AI session memory substrate. One install. Every AI coding assistant. Persistent context across sessions, folder renames, and tool switches.
In neuroscience, an engram is the physical trace a memory leaves in the brain. EngramCC does the same for AI — a local memory substrate that persists what your AI assistant learned, decided, and did, so the next session picks up exactly where the last one left off.
The Problem
Every AI coding session starts from zero. The assistant re-reads files it read yesterday, re-learns conventions it already knows, re-asks questions you already answered. Context compaction silently erases the session mid-work. Switch tools and all memory is gone.
EngramCC solves this at the infrastructure level — not by prompting harder, but by building a persistent memory layer that runs underneath any AI assistant.
Quick Install
Run it from the project root you want ECC to manage, or pass --project-dir <path>.
The setup CLI detects your hardware, prepares a project-local .engram-cc/ workspace, asks for a shared models directory, and generates assistant hook/MCP snippets under .engram-cc/assistant-configs/. No user-home config is modified.
Canonical MCP Install Command
For assistants that self-install MCP servers from npm, the canonical EngramCC command is:
Equivalent npm exec form:
Assistants should not guess npx @morous-dev/engram-cc mcp. Use the explicit package/bin form above.
For project-local ECC setup, the generated snippets under .engram-cc/assistant-configs/
intentionally use node <project-local build/mcp/server.js> instead. The npx --package ...
form above is for assistants that install EngramCC directly from npm without running project-local setup first.
Supported Assistants
On Windows, generated hook snippets call src/hooks/hook-runner.mjs so assistant and
project env vars are injected without brittle cmd /C quoting.
Codex-specific note: the exact prompt/tool bridge reads Codex's own session JSONL under
CODEX_HOME / ~/.codex/sessions/, but ECC still writes its state only into the project-local
.engram-cc/ directory. Because Codex does not expose a true prompt-submit injection hook,
startup context also includes a Codex turn policy that steers the assistant toward EngramCC
MCP memory on user turns when earlier context may have compacted out.
Kilo-specific note: current verified support is MCP plus the ekilo wrapper flow for
session-start / session-stop continuity. Kilo has an open request for native lifecycle hooks,
so ECC does not claim native Kilo hook parity yet.
How It Works
EngramCC runs as session middleware — lifecycle hooks capture what happens during a session, a local SLM synthesizes memory offline at session end, and an MCP server serves pre-digested context to any connected assistant.
Session Lifecycle
Tiered Context Injection
EngramCC injects context surgically, not blindly:
- Hot resume (< 30 min since last session): full handoff XML injected — complete working context, decisions, modified files, errors
- Cold start: one-sentence headline + pointer to MCP
recalltool — zero token waste on stale context
Memory Architecture
Local SLM Pipeline
EngramCC synthesizes session memory using local models first — zero external API calls for its own compaction, handoff, and retrieval support.
The setup CLI detects your hardware and selects the best available tier:
Models are stored in a shared directory chosen during engramcc setup and saved in <projectDir>/.engram-cc/config.json. Tiers auto-cascade: if no Tier 3 model is available, Tier 2 runs; if Tier 2 is unavailable, Tier 1 runs. Core memory capture is never blocked.
Stable Project Identity
EngramCC tracks projects by a stable UUID stored in .ecc-id — not by folder path. This means:
- Rename the project folder → same history
- Move it to a different drive → same history
- Re-clone from git → same history (falls back to git root commit hash)
Resolution order: .ecc-id file → git root commit hash → fresh UUIDv4 (written once, never regenerated).
Data Locations
All data is local. No network calls for core operation. No credentials, tokens, or API keys required.
MCP Tools
When connected via MCP, any assistant can query EngramCC directly:
Configuration
Override compression tier or external provider in plugin-config.yaml:
Benchmarks
The numbers below were verified against the current repo state on March 14, 2026 after the carry-forward compaction fix. They reflect what was actually run, not historical bests.
Verified Benchmark Runs
What Those Results Mean
Handoff Quality
npm run test:quality exercises the full path from session events to next-session context injection.
Total: 20/20
Real-Data Retrieval / Retention
npm run test:brutal:quick and npm run test:lifecycle:quick use public external datasets:
- WildChat-1M coding conversations
- SWE-bench GitHub issue statements
Current verified observations:
- extraction brutal calibration: PASS
- adversarial extractor traps: 15/15
- chain phase
extract → store → search → snapshot: PASS - lifecycle checkpoints: 100% / 80% / 80% / 100% FTS5 recall at cycles 25 / 50 / 75 / 100
- cycle 100 recall by source: WildChat 5/7 (71%), SWE-bench 13/13 (100%)
The two misses in the lifecycle run were low-signal terms (nothing, creator), not archive corruption.
SLM Adversarial Robustness
The adversarial suite is the hardest accuracy benchmark in the repo: code walls, stack traces, multilingual sessions, flip-flop errors, domain jargon, buried current tasks, and multi-compaction chains.
Current verified scores:
This matters because A11 used to be the real gap. It now passes after the deterministic carry-forward state was added to the compaction chain.
SLM Scale Stability
node benchmark/test-scale.mjs probes prompt growth from 128 to 985 words.
Current caveat:
- Qwen 4B had one miss at S4 (985 words) on the no-hallucination check.
Cross-Tier Compaction Retention
node benchmark/test-tier-comparison.mjs runs the same 4→20 cycle compaction stress test across all three production GGUF tiers.
At the time of this README update, the verified token savings vs raw snapshot were:
tier3: 24–26%tier3b: 16–23%tier3c: 20–28%
Multi-Compaction Marathon
node benchmark/test-compaction-marathon.mjs simulates long-running sessions across 4, 8, 12, 16, and 20 compaction cycles.
Current verified result:
- 53/53 assertions passed
- all anchor facts survived through 20 compaction cycles
Important Caveats
tier3still occasionally falls back from grammar-constrained diff-mode to prose in some runs. Correctness stayed green in the verified suites above, but the fallback still exists.- Qwen 4B is strong overall, but its current scale run is 15/16, not perfect.
- The old
A11failure is no longer the current state and should not be cited as a live weakness. benchmark/test-160k-real.mjswas not rerun after the carry-forward patch, so its older numbers are intentionally omitted from the headline claims here.
Bottom-Line Read
ECC is now strong in the places that matter most for a CLI memory substrate:
- real-data extraction and retention
- end-to-end handoff quality
- chained compaction continuity
- cross-tier SLM robustness
The retrieval layer remains the long-term safety net. The SLM layer is now good enough to carry forward session state across compactions without the old A11 collapse.
Development
Runtime requirements:
- Node.js >= 18 (all hooks, MCP server, setup CLI)
Contributor note:
- See
ADAPTER-AUTHORING.mdbefore adding or changing assistant adapters. It defines the allowed touch points, capability rules, storage rules, and current portability boundaries.
Platform Support
EngramCC runs on Windows, macOS, and Linux (x64 and ARM64).
Troubleshooting: better-sqlite3 build failure
better-sqlite3 is the only hard dependency that requires native compilation. It ships with prebuilt binaries for common platform + Node version combinations. If the prebuilt doesn't match your setup, npm falls back to compiling from source, which requires:
Windows:
macOS:
Linux (Debian/Ubuntu):
Linux (Fedora/RHEL):
If npm install fails with gyp ERR! or node-pre-gyp errors, installing the build tools above and re-running npm install will fix it.
Troubleshooting: Local SLM tier not available
The local synthesis tiers require GGUF models in the shared models directory configured for the project. If no supported Tier 3 model is present, EngramCC falls back to Tier 2 (embeddings) or Tier 1 (rule-based).
Examples:
Approximate runtime requirements:
tier3Llama 3.2 3B: ~4 GB RAMtier3bQwen3.5 4B: ~3.5 GB RAMtier3cGemma 3 4B: ~3 GB RAM
Troubleshooting: Vector store not active
The vector store uses sqlite-vec, which is an optional dependency. If it fails to load, EngramCC operates normally without vector search — all other memory tiers (episodic, semantic, working) are unaffected. To verify:
Project Structure
License
Open source: AGPL-3.0 — free to use, modify, and distribute as long as derivative works are also open source under AGPL-3.0.
Commercial: A proprietary license is available for teams that need to use EngramCC in closed-source products or hosted services without AGPL obligations. See COMMERCIAL-LICENSE.md for details.
来源:README.md,提交 3afdfb0
工具
0版本历史
1- v0.1.4最新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 驱动的记忆整合。