
Memtomem
io.github.memtomem由 GitHub 帳號 memtomem 發布v0.7.7更新於 Nov 8, 2026
Long-term memory for AI coding agents, kept as Markdown you own. Runs locally.
概覽
為 AI 程式開發助理提供本機長期記憶,記憶以你自己擁有的 Markdown 檔案保存,可透過 MCP 工具與命令列檢索。
- 可以做什麼
- 新增、建立索引並搜尋以純 Markdown 檔案保存的記憶,支援關鍵字與向量混合檢索
- 召回與更新已存筆記、查看狀態,並透過單一工具轉送其他記憶操作
- 執行 handoff、brief、update 工作流程,在工作階段之間與不同程式開發助理之間傳遞專案記憶
- 在本機 Web 介面瀏覽與維護記憶,包括標籤、時間軸與重複偵測
- 匯出與匯入記憶包,並在多個代理之間共用記憶
- 適用情境
- 適合跨工作階段或跨工具(如 Claude Code、Codex CLI、Cursor、OpenCode)使用程式開發助理,並希望決策、修正與偏好保存在可閱讀、可版控的檔案中的人。也適合需要留在本機的個人知識庫。
- 執行需求
- 以 stdio 本機程序執行,通常用 uv 或 pipx 安裝(Python),也可用 uvx 隨需啟動。初始化時透過互動式設定選擇記憶目錄並註冊 MCP 伺服器。選用元件提供 ONNX 向量模型、韓語斷詞器與 Web 介面;也可改用 Ollama 或 OpenAI 的向量服務。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Memtomem,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
memtomem
Long-term memory for AI coding agents, kept as Markdown you own. Core usage is hook-free by default: memory changes happen only when you or your agent call memtomem.
[PyPI] [Downloads] [GitHub stars] [License: Apache 2.0]
🧪 Beta — the nine core MCP tools, the
mmCLI, and the format of your memory and config files change only with anUpgradingnote in the CHANGELOG. Features marked experimental can change without one; see Stability. Feedback is welcome: Issues · Discussions.
The session loop
Three plugin workflows carry a project's memory from one session to the next, and from one coding agent to another.
Illustrative output — agent wording and results vary.
handoff save writes one Markdown record into the project's own .memtomem/memories.local; brief only reads; update saves decisions, bug fixes, and preferences as separate items. All three run only when you invoke them, and nothing runs in the background. The Project workflows guide has each one's modes, checks, and host-specific names.
Why memtomem?
- Your files stay yours. Memories are plain
.mdfiles you can read, edit, and version. The search index is rebuilt from them, day-file namespaces included; tag edits and working state live only in the database (what a rebuild restores). - Explicit by default. Memory operations run on your CLI or MCP calls (
mm add,mem_add,mem_index). Optional client hooks are separate, removable integrations, not a hidden runtime default. - One store, many tools. Claude Code, Codex CLI, OpenCode, Kimi Code, and Antigravity share one local store, and any MCP client can search it. memtomem-stm is a separate, optional proxy that surfaces memories proactively.
Quick Start
1. Install
[all] bundles ONNX dense embeddings, the Korean tokenizer, the code chunker, and the Web UI (about 340 MB installed, before any model download). The Ollama and OpenAI embedding providers need no extra. A smaller install is under Other install options below.
2. Setup
The interactive picker starts with three presets — Minimal (BM25, no downloads), English (Recommended) (ONNX multilingual-e5-small + auto-discover providers), Korean-optimized (ONNX multilingual-e5-small + kiwipiepy tokenizer); no preset turns on a reranker — plus an Advanced entry that opens the full 10-step wizard. Preset paths only ask about the memory directory and MCP registration; everything else is set from the preset.
Choose Minimal for the fastest no-download first proof and rerun mm init later to add semantic search. For automation, mm init --non-interactive picks the minimal preset without prompts. See Embeddings for the model and provider matrix. The presets keep embedding on your machine; choosing OpenAI embeddings, a cloud LLM, or the Cohere reranker sends note text to that service (What leaves your machine).
3. Verify a complete memory round trip
The last command should return the sentence you just added. mm add writes to your user memory directory and indexes the entry immediately, so this works without an existing notes directory or a connected editor. To bring existing notes into the same index, run mm index /path/to/your/notes.
4. Connect your coding agent
Install the plugin for your tool — Claude Code, Codex CLI, OpenCode, Kimi Code, Antigravity, or Cursor — then, in the project you work on, register the memory tier the session loop writes to:
Start a new session and run the brief workflow: /memtomem:brief in Claude Code, and the name each other host uses is in the Project workflows guide. The Claude Code & Codex CLI plugin quickstart (한국어) walks through plugin installation and a first memory save-and-search round trip in 10–15 minutes. For Windsurf, Claude Desktop, Gemini CLI, other MCP clients, and registering Cursor by hand instead of through the plugin, see MCP Client Setup; from any client, asking it to call the mem_status tool confirms the connection.
5. Open the Web UI (optional)
mm web shows the polished page set. mm web --dev (or MEMTOMEM_WEB__MODE=dev) adds maintainer pages such as Sessions, Working Memory, and Health Report.
Other install options
Minimal (no bundled model, about 50 MB):
Opt in later per feature: uv tool install --reinstall 'memtomem[onnx,web]' (see the extras table). List every extra you want to keep, because --reinstall replaces the whole set. A plain mm upgrade keeps the extras it detects from the current install, but an explicit mm upgrade --extras list must name the complete set too.
Project-scoped (per-project isolation):
No install (uvx on demand):
Troubleshooting the install
mm --versionshows an older version than the latest release right after installing:uvis likely serving cached PyPI metadata. Re-run withuv tool install 'memtomem[all]' --refresh, or clear the cache first withuv cache clean memtomem. To upgrade an existing uv tool install, usemm upgraderather than re-runninguv tool install; see the CLI reference for what it preserves and stops.mm: command not found:uv tool installdrops the shim into~/.local/bin, which is not on$PATHin fresh shells on macOS/Linux. Runuv tool update-shell, then open a new shell and re-runmm --version.- Duplicate tools after upgrading the Claude plugin: re-check
/mcpafter reloading. The plugin launchesmemtomem[onnx]==0.7.6. A manual registration whose launch differs — base-onlymemtomem, or the ONNX launch pinned to an earlier release — no longer matches for deduplication. Confirm the manual entry's name and scope, then align its launch command with the plugin or remove the redundant registration. - Indexing vs. discovery (Claude Code): provider memory folders that setup auto-discovers (such as
~/.claude/projects/*/memory/) are added to the search index. That is separate from the Web UI's opt-in Context Gateway scan of~/.claude/projects/, which discovers project roots for Skills, Commands, and Subagents; see Configuration → Context Gateway.
What else is inside
Stability
memtomem is beta (0.x). The nine core MCP tools, the mm CLI, and the format of your memory files and config files change only with an Upgrading note in the CHANGELOG, and behind a deprecation window where one is possible. Other features are supported — maintained, with their changes recorded in the CHANGELOG — without that guarantee.
These are experimental — their behaviour, output, or format can still change or go away without a window, because a decision that shapes them is still open or an LLM writes what they produce:
- Multi-agent memory —
mem_agent_register,mem_agent_search,mem_agent_share, and per-agent session scopes (mem_session_startwithagent_id). Open decisions: #1477, #1478. - Memory export and import bundles —
mem_export/mem_importand the Web export/import. How a backup made before 0.7.0 (bundle v1–v3) that holds project memories should be restored is still open. - LLM-written output — anything memtomem's configured LLM (
MEMTOMEM_LLM__ENABLED=true) writes: LLM auto-tagging and entity extraction,strategy="llm"query expansion, LLM consolidation and policy summaries, session auto-summaries, source summaries (indexing.auto_summarize), and contextual chunk enrichment (indexing.enrich_chunk_context). The rule-based modes beside them are supported. - Claude projects scan in the Context Gateway (
MEMTOMEM_CONTEXT_GATEWAY__EXPERIMENTAL_CLAUDE_PROJECTS_SCAN). - Antigravity CLI plugin (
packages/memtomem-antigravity-plugin/). - Cursor plugin (
packages/memtomem-cursor-plugin/).
Works with
Documentation
Hosted at memtomem.com and available as Markdown in this repo.
Contributing
See CONTRIBUTING.md for setup instructions and the contributor guide. New here? Start with an issue labelled good first issue.
License
Apache License 2.0. Contributions are accepted under the terms of the Contributor License Agreement.
來源:README.md,提交 b51ac3d
工具
0版本歷史
15- v0.7.6Nov 7, 2026
- v0.7.5Nov 5, 2026
- v0.7.4Nov 4, 2026
- v0.7.3Nov 3, 2026
- v0.7.2Nov 1, 2026
- v0.7.1Oct 31, 2026
- v0.7.0Oct 29, 2026
- v0.6.12Oct 25, 2026
- v0.6.10Oct 24, 2026
- v0.6.9Oct 19, 2026
- v0.6.8Oct 8, 2026
- v0.6.7Oct 5, 2026
- v0.6.6Oct 2, 2026
- v0.6.5Sep 26, 2026
- v0.6.4Sep 20, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
