Graphmem

io.github.sonic182v0.10.1Updated Oct 8, 2026

Shared local memory for coding agents: SQLite, semantic recall, linked entities, code navigation.

VerifiedSTDIODesktop onlyDeveloper ToolsKnowledge & Memory

Overview

AI-generated overview

Gives coding agents a shared local memory store for project decisions, plus optional code navigation tools.

What it does
Graphmem stores durable project memories in a local SQLite database under ~/.graphmem, with semantic search and linked entities so agents can recall context across sessions and tools. Memories are scoped to the current Git repository or to global, and reads always include global memories. Optional code tools find symbol definitions, outline files, list imports, and compare symbols between Git revisions. It runs as a local MCP server over stdio and can be shared by several MCP clients.
When to use it
Use it when you want coding agents to remember conventions, decisions, and context between sessions and across different clients such as Claude Code, Codex, OpenCode, or pi. It is also useful when an assistant needs lightweight, Git-aware code navigation without an embedding model.
Requirements
Node.js and npm for the package; the gmem binary must be on PATH, and gmem-install downloads and verifies the matching CPU binary. Git must be on PATH for repository scoping. Linux releases need glibc 2.39 and OpenSSL 3; other systems or CUDA require a source build. Data lives in ~/.graphmem, configurable via GRAPHMEM_HOME. No accounts or API keys are declared.
Before you install
The installer downloads a platform binary from GitHub Releases, so network access and trust in that source are required. Writes, updates, and deletions are limited to the current repository and global scope, but they still modify stored memory data. Code tools can be disabled with GRAPHMEM_CODE=off. No credentials or payments are declared.

Installation

In SourceWeft

  1. Open Graphmem in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Graphmem

[CI]

[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

sh
npm install --global @sonic182/graphmemgmem-installgmem version

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.

AgentInstall
Claude Codeclaude plugin marketplace add sonic182/graphmem, then claude plugin install graphmem@graphmem
Codexcodex plugin marketplace add sonic182/graphmem, then codex plugin add graphmem@graphmem
OpenCodeopencode plugin @sonic182/graphmem --global
pipi install npm:@sonic182/graphmem

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:

json
{  "mcpServers": {    "graphmem": {      "command": "/absolute/path/to/gmem",      "args": ["mcp"]    }  }}

CLI

sh
gmem remember "Use nextest for integration tests" \  --type convention --scope repo:/absolute/path/to/projectgmem search "integration tests"gmem tuigmem mcp

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.

MCP toolPurpose
find_symbolFind a definition and its source range
code_outlineList a file's definitions and nesting
code_importsList declared imports
code_diffCompare symbols between Git revisions
sh
gmem code find CodeServicegmem code outline src/application/code.rsgmem code imports src/application/code.rsgmem code diff origin/master

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

sh
just verify

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.

Source: README.md at commit 3eb8be2

Tools

0
Tool metadata has not been indexed yet.

Version history

1
  1. v0.10.1LatestOct 8, 2026