
Graphmem
io.github.sonic182v0.10.1更新於 Oct 8, 2026
Shared local memory for coding agents: SQLite, semantic recall, linked entities, code navigation.
概覽
為編碼代理提供共享的本機記憶儲存,用來保存專案決策,並附帶可選的程式碼導覽工具。
- 功能
- Graphmem 將專案記憶持久保存在 ~/.graphmem 下的本機 SQLite 資料庫中,支援語意檢索與實體關聯,讓代理能跨工作階段、跨工具回憶上下文。記憶依目前 Git 儲存庫或全域範圍區分,讀取時一律包含全域記憶。可選的程式碼工具可尋找符號定義、列出檔案大綱、列出匯入,並比較不同 Git 修訂之間的符號。它以 stdio 方式作為本機 MCP 伺服器執行,可被多個 MCP 用戶端共用。
- 適用情境
- 當你希望編碼代理在工作階段之間,以及在 Claude Code、Codex、OpenCode、pi 等不同用戶端之間記住慣例、決策與上下文時使用。也適合助理需要輕量、能感知 Git 的程式碼導覽且不想使用嵌入模型的情況。
- 執行需求
- 需要 Node.js 與 npm 安裝此套件;gmem 二進位檔必須在 PATH 中,gmem-install 會下載並驗證相符的 CPU 二進位檔。儲存庫範圍劃分需要 PATH 中有 git。Linux 發行版需要 glibc 2.39 與 OpenSSL 3;其他系統或 CUDA 需要從原始碼建置。資料存放在 ~/.graphmem,可透過 GRAPHMEM_HOME 變更。未宣告帳號或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Graphmem,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Graphmem
[Graphmem — Shared, local memory for coding agents]
Shared, local memory for coding agents. Keep project decisions across sessions and tools with SQLite storage, local semantic search, and linked entities. Claude Code, Codex, OpenCode, pi, and other MCP clients can share the same store.
Optional code tools find definitions, outline files, list imports, and compare symbols between Git revisions.
Install
The npm package contains launchers. gmem-install explicitly downloads and
verifies the matching CPU binary, or reuses a working native gmem on your
PATH. Package installation itself downloads no binary. After upgrading the
package, run gmem-install again; separately installed binaries are not replaced.
MCP clients that launch servers with npx can run npx -y @sonic182/graphmem mcp.
The graphmem command downloads and verifies the binary on its first run; gmem
never downloads anything on its own.
Alternatively, download your platform's archive from
GitHub Releases, verify
it against SHA256SUMS, and put the extracted executable on your PATH.
Linux releases require glibc 2.39 and OpenSSL 3. For other systems or CUDA,
build from source.
Use it with your coding agent
Plugins include MCP registration, skills, and guidance to recall context before work and save durable decisions afterward.
Claude Code and Codex need gmem and Node.js on PATH. In Codex, trust the
Graphmem hooks in /hooks and start a new thread. Pi offers binary setup on first
startup; OpenCode prints an installer command if needed.
See plugin setup and troubleshooting.
For another MCP client, configure it to launch your installed binary:
CLI
Memories default to the current Git repository; git must be on PATH.
Outside a repository, the default scope is global. Reads always include global
memories; explicitly select other projects with --scope (CLI) or scopes (MCP).
Writes are limited to the current repository and global, including updates and
deletions. The MCP list_scopes tool discovers scopes and their write permissions.
Data lives in ~/.graphmem; set GRAPHMEM_HOME to use another directory.
CLI reference · MCP tool reference
Code navigation (optional)
Release binaries include these tools; source builds need --features code.
These tools work on Git checkouts without an embedding model. They index
definitions, not call sites or references; use ast-grep for those.
Set GRAPHMEM_CODE=off to disable code tools.
Options and supported languages · Benchmark results and limitations
Configuration
No config file is required. To customize embeddings, retrieval, or code indexing,
create ~/.graphmem/config.toml. See the configuration reference.
Build
See source builds and CUDA setup.
Development
Runs formatting checks, compilation, Clippy, and tests. Design · Schema evolution
To preview the documentation site, run hugo server --source site.
See site setup.
License
MIT.
來源:README.md,提交 3eb8be2
工具
0版本歷史
1- v0.10.1最新Oct 8, 2026


