
Mnemograph
io.github.tm42由 GitHub 帳號 tm42 發布v0.5.1更新於 Oct 24, 2026
Event-sourced knowledge graph memory for AI coding agents with semantic search
概覽
為編碼助理提供持久的事件溯源知識圖譜記憶,支援語意搜尋、分支與類似 git 的歷史紀錄。
- 可以做什麼
- Mnemograph 將實體、關係與觀察記錄保存在本機知識圖譜中,讓助理能跨工作階段記住決策、模式與經驗。工具包含用於儲存與檢索的 remember 與 recall、工作階段生命週期輔助工具、分支與合併操作、重複偵測與合併等圖譜維護功能,以及檢視、比對、回溯與還原歷史狀態的時間旅行工具。recall 預設回傳人類可讀的散文格式,並提供淺、中、深三種檢索深度。
- 適用情境
- 當助理需要在多次編碼工作階段之間保留專案知識時使用,例如架構決策、反覆出現的模式與注意事項。它適合透過儲存庫共享記憶的多專案或團隊情境,以及需要隔離分支或學習稽核紀錄的工作流程。
- 執行需求
- 以 PyPI 套件透過 stdio 在本機執行,通常以 uvx 啟動,因此需要 Python 工具鏈。需設定 MEMORY_PATH 指向記憶目錄,支援專案本機、全域與自訂路徑。未宣告身分驗證。版本歷史依賴 git。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mnemograph,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Mnemograph
A persistent, event-sourced knowledge graph for AI coding agents. Unlike simple key-value memory, Mnemograph captures entities, relations, and observations — enabling semantic search, tiered context retrieval, and git-based version control of your AI's memory.
Works with: Claude Code, opencode, codex CLI, Zed, Continue.dev, and any MCP-compatible agent.
Why Mnemograph?
AI coding sessions are ephemeral. Mnemograph gives your AI partner persistent memory that:
- Survives across sessions — decisions, patterns, learnings persist
- Supports semantic search — find relevant context by meaning, not just keywords
- Provides tiered retrieval — shallow summaries to deep subgraphs based on need
- Versions like code — branch, commit, diff, revert your knowledge graph
- Enables collaboration — share memory repos across users or projects
Memory Scope: Local vs Global
Before using mnemograph, decide where to store memory:
Important: Agents should ask the user which scope to use when first setting up mnemograph for a project. This affects where knowledge is stored and whether it's shared across projects.
Quick Start
Option 1: Let Claude Code install it
Give Claude Code this repo URL and ask it to set up mnemograph:
Or point Claude to the setup instructions directly:
Option 2: Manual installation
Option 3: Other MCP Clients
Each MCP client has a different configuration format. See UNIVERSAL_MCP_COMPATIBILITY.md for copy-paste configs for:
- opencode —
~/.config/opencode/opencode.json - Codex CLI —
~/.codex/config.yaml - Zed —
~/.config/zed/settings.json - Continue.dev —
~/.continue/config.json
The key environment variable is MEMORY_PATH — set it to where you want the knowledge graph stored.
Option 4: Install from source
Usage
MCP Tools (used by any agent)
Mnemograph exposes these tools via MCP:
Core Operations:
Session Lifecycle:
Branching (Parallel Workstreams):
Graph Maintenance:
Time Travel:
Edge Weights:
Recall: Prose vs Graph Format
The recall tool returns context in prose format by default — human-readable text that agents can consume directly without parsing JSON:
Depth levels:
shallow— Quick summary: entity counts, recent activity, gotchasmedium— Semantic search + 1-hop neighbors (~2000 tokens)deep— Multi-hop traversal from focus entities (~5000 tokens)
Gotcha extraction: Observations prefixed with Gotcha:, Warning:, Note:, or Important: are automatically extracted into a dedicated section.
CLI Tools
mnemograph — Unified CLI for all memory operations:
Running from anywhere (without activating the venv):
Graph Visualization — Interactive D3.js viewer:
- Layout algorithms: Force-directed, Radial (hubs at center), Clustered (by component)
- Color modes: By entity type, connected component, or degree centrality
- Edge weight slider: Filter connections by strength
- Live refresh:
--watchmode with Refresh button for real-time updates
Architecture
Event sourcing means all changes are recorded as immutable events in SQLite. The current state is computed by replaying events. This enables:
- Full history of all changes
- Revert any operation
- Branch/merge knowledge graphs
- Audit trail of what Claude learned and when
Two-layer versioning:
mnemograph vcs revert— fine-grained, undo specific events via compensating eventsmnemograph rewind/mnemograph restore— coarse-grained, git-level or timestamp-based restore
Branching
Branches let you work on isolated knowledge without affecting the main graph. Perfect for:
- Exploratory work — try approaches without polluting shared knowledge
- Feature-specific context — "feature/auth-refactor" keeps auth decisions separate
- Multiple projects — switch context between different codebases
Creating and Using Branches
How Branching Works
- Main branch always exists, contains shared knowledge
- Feature branches inherit from main but additions stay isolated
- Automatic filtering —
recall,search, etc. only see current branch + main - Merge copies branch entities/relations into target branch
- Delete cleans up after merge (or abandons exploratory work)
Branch Naming Conventions
Entity Types
Topic Convention
Use topic entities as entry points for browsing related knowledge:
Standard topics:
topic/projects— Project entitiestopic/decisions— Architectural decisionstopic/patterns— Patterns and practicestopic/learnings— Key discoveriestopic/questions— Open questions
This makes it easy to query "what decisions have we made?" by exploring topic/decisions.
Development
Based On
Mnemograph builds on MCP server-memory — Anthropic's official memory server
License
MIT
來源:README.md,提交 4136ad7
工具
0版本歷史
1- v0.5.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分