
Memtether
io.github.lanbass869-cellv0.1.0a16更新于 Oct 3, 2026
Cross-client AI memory hub: agents share one SQLite memory.db via file-level pointers.
概览
为助手提供共享的本地 SQLite 记忆库,让多个 AI 客户端读写同一份记忆。
- 功能
- MemTether 是一个本地记忆中枢,把记忆保存在一个 SQLite 文件(memory.db)中,供多个 AI 客户端共同指向。它支持记住、搜索、更正和停用记忆,并通过向量检索、FTS5 全文、字面匹配和实体图的多路召回进行查找。它还提供来源归属、双时间轴 as-of 查询、以取代而非删除的方式管理旧记忆、基于使用量的排序,以及可选的 MEMORY.md 投影用于上下文注入。
- 适用场景
- 当你在多个 AI 编程客户端之间切换、希望上下文能够延续而不是每次切换都丢失时,适合使用。它也适合希望记忆完全保存在本机、而非云端服务的用户。
- 运行要求
- 作为本地进程运行,可从 PyPI 安装(pip install memtether)或从源码安装,语义检索和 REST 服务为可选附加组件。需要 Python 和本地 SQLite 数据库文件;可选环境变量 MEM_DB 和 MEM_DEFAULT_SOURCE 用于覆盖数据库路径和默认来源归属。未声明需要账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Memtether,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Your AI agents can now share memories.
Local-first - No cloud - No API fees - One physical memory.db shared by 23+ clients
[PyPI] [Python] [CI] [License] [Stars]
Quick Start | Why MemTether | Architecture | Benchmarks | Known Limitations | 中文文档
Quick Start
mcp-name: io.github.lanbass869-cell/memtether
Try it:
Or on Windows, double-click install.bat for one-click setup.
More install options
Try it without installing:
Why MemTether
The problem
You use Claude Code for coding, Cursor for refactoring, and Windsurf for exploration. Each has its own memory. Switch tools and your AI forgets everything.
MemTether's answer is simpler than you'd expect: make them all point to the same file.
How it is different
Feature comparison
Full feature list
- Cross-client shared memory: 23 adapters (Claude Code, Cursor, Windsurf, VS Code, Zed, JetBrains, Cline, Roo Code, Kilo Code, Continue, Cody, Amazon Q, Gemini CLI, Neovim, Claude Desktop, Codex, WorkBuddy CN/Intl, CodeBuddy, ZCode, DSH, OpenClaw, Agents-Neutral)
- Source attribution: every memory knows which client wrote it
- Bi-temporal: T (when true) + T-prime (when recorded), as-of queries
- Supersession: old memories marked superseded, never deleted, full audit trail
- Q-Value: usage-based ranking (0.3 + 0.7 x q_value multiplier)
- 4-factor re-ranking: semantic (0.45) + recency (0.25) + frequency (0.05) + importance (0.10), blended 70/30 with RRF
- Deterministic scaffolds: counting/temporal/comparison/aggregation prepended to top result
- Consolidation index: 2708 topics + 315 chains + 37 standing instructions as bonus recall
- FTS5 triggers: SQLite-level full-text sync (INSERT/DELETE/UPDATE triggers)
- Hubguard: cross-process concurrent write lock + atomic write + format fallback
- Conflict detection: 89 quantified conflict patterns
- LLM auto-extraction: extract structured memories from conversation text
- Projection: auto-generates MEMORY.md (3980 char budget) for context injection
- Multi-path search: vector + FTS5 BM25 + literal + entity graph PPR, RRF fused
- Three-layer dedup: supersession-aware, content exact, tag-signature
- Low-confidence rejection: marks results when keyword empty AND vector < 0.50
- TTL expiry: expired conclusions downweighted with annotation
- Self-reference suppression: meta-discussion ranked below answers
Architecture
Tech stack
Connect Your Clients
Supported (23): Claude Code, Cursor, Windsurf, VS Code, Zed, JetBrains, Cline, Roo Code, Kilo Code, Continue, Cody, Amazon Q, Gemini CLI, Neovim, Claude Desktop, Codex, WorkBuddy (CN + Intl), CodeBuddy, ZCode, DSH, OpenClaw, Agents-Neutral
Memory Operations
Benchmarks
LongMemEval (500 questions, full run, 2026-10-02)
Per-type breakdown
Results use our own harness. Not directly comparable with mem0 reported numbers.
Test suite
Known Limitations
tether_connect detectmay falsely report "not connected" for same-source-different-path configs. Useverifyfor accurate results.- DSH
cordis.patch.ymldeep customizations cannot be safely rewritten. Useplanto preview. memory_hub(production) andmemtether(open source) are two copies. Changes need directional sync.- Semantic search requires optional deps (chromadb, onnxruntime). Without them, degrades to keyword search.
- Windows-first. macOS/Linux should work but not fully tested.
Relationship to Other Projects
- mem0: managed memory with cloud API. MemTether is for people who want everything local.
- cognee: knowledge graph + pipeline. MemTether is lightweight operational memory (SQLite, no Neo4j).
- letta (MemGPT): agent framework. MemTether works with existing agents you already use.
- engram: Go + SQLite + FTS5 + MCP. MemTether adds bi-temporal, source attribution, Q-Value, 23 adapters.
You can use MemTether alongside any of these.
License
Apache 2.0 - see LICENSE
Contributing
Issues and PRs welcome. See CONTRIBUTING.md.
Star History
来源:README.md,提交 3852976
工具
0版本历史
1- v0.1.0a16最新Oct 3, 2026


