Skip to main content

Graph-MIND

Local-first memory for AI coding assistants. Verbatim storage, on your own PC: 88.8% on LongMemEval with zero model calls at write time.

Switch models; keep the memory.


What it is

Graph-MIND records every conversation you have with Claude Code, Codex and Claude Desktop, word for word, in a store on your own PC. When a question depends on the past, the model you are using calls Graph-MIND over MCP and gets back a few thousand tokens of the conversations that answer it.

  • Nothing is summarised or rewritten. Saving is a database write. No model call, no tokens.
  • Search is hybrid. Your words are embedded on your PC (multilingual MiniLM, no API) and fused with keyword search. Korean and English both work.
  • Capture is automatic. A background service reads each app's local transcripts, masks secrets, stores the turns and embeds them as they arrive.
  • One memory across your PCs. One sentence to the AI on the first PC, one command on the others (see below).
  • Nothing leaves your machines. There is no cloud, no account and no telemetry.

Benchmarks

All numbers below come from files in this repository: the pre-registrations, each question's answer, and the judge's verdict on it, under runs/. The method is in REPORT.md, including the failures and the corrections.

LongMemEval_S: answer accuracy, 500 questions. The answer model is gpt-5-mini; the judge is the official gpt-4o-2024-08-06.

accuracy model tokens at write time packet read per question
All 500 questions 88.8% (444/500) 0 3.4k tokens
The 380 never used for tuning 86.8% (330/380) 0 3.4k tokens

Head to head: same 40 questions, same answer model, prompt and judge. The run was pre-registered with code hashes; nobody had tuned on these questions.

system accuracy model tokens at write time, per question
Graph-MIND (shipped path, earlier 20-item packet) 85.0% 0
MemPalace 3.10.0 57.5% 0
Mem0 2.2.1 (open source, latest on PyPI) 52.5% ~640k

Graph-MIND's lead over both is significant (exact McNemar p = 0.002 and 0.003).

Reading other published numbers. They measure different things, so they do not compare directly with the tables above:

  • MemPalace's 96.6% is retrieval recall (R@5): is the right session among the five returned? This table measures whether the final answer is correct.
  • Mem0's 94.4% is its managed cloud platform, which includes proprietary components. The open source package tested here is a different system.
  • Mastra (94.87%), Emergence (86%), Supermemory (85.2%) and Zep (71.2%) report their own setups and answer models. They were not reproduced here.

As far as we know, everything above 85% on that list runs a model over your conversations when it saves them. Graph-MIND does not.


Install

Requires Python 3.10+ (64-bit). Windows, macOS or Linux. Hosting a brain that other PCs join needs Python 3.12 or older on that one PC (its Postgres helper, pgserver, has no newer build yet); everything else, joining included, works on 3.13 and 3.14 too.

pip install graph-mind-memory
graph-mind-install

or from source:

git clone https://github.com/goyohan0611-png/graph-mind.git
cd graph-mind
python install.py

The installer:

  • installs the packages (PyTorch CPU is the large one, about 2 GB);
  • registers the MCP server with every app it finds: Claude Code, Claude Desktop (including the Microsoft Store build) and Codex;
  • starts the capture service at login (Windows Startup folder, a macOS LaunchAgent, or an XDG autostart entry on Linux);
  • downloads the embedding model.

Then restart your AI apps. The server is also listed in the MCP Registry as io.github.goyohan0611-png/graph-mind. Running the installer again is safe. Run it again if you move the folder.


What it captures

app captured
Codex: terminal, VS Code, ChatGPT desktop's work mode every turn
Claude Code: terminal, VS Code, Claude desktop's Code tab every turn
Claude desktop: Cowork every turn
Claude desktop: chat what the model saves with brain_remember

Before anything is stored, these are masked: API keys, tokens from GitHub, AWS, Google and Slack, private keys, and passwords inside URLs.


MCP tools

tool what it does
brain_context a bounded packet of the memories and conversation turns that answer a request
brain_recall inspect memories and captured turns directly
brain_remember save a sourced memory (secrets masked)
brain_associate recall from a vague cue
brain_timeline everything about one thing, oldest first, with replaced entries marked
brain_folder show or choose where the memory lives; share it with other PCs
brain_index bring an imported backlog up to date
conversation_recall search the captured turns themselves
code_activity what changed in a project, file or symbol, and when
memory_record record a development event or decision
project_status current state of a project
resume_project everything needed to pick a project back up
explain_decision a decision, its reason and its history

One memory across PCs

On the PC that holds the memory, tell its AI:

"Let my other PCs use this memory."

It replies with a connection code (gm1.…). On each other PC:

graph-mind-install --join gm1.…     # or: python install.py --join gm1.…

The memory then lives in a Postgres server on the first PC, which Graph-MIND sets up itself. Other PCs reach it over the local network in the office, or over Tailscale from anywhere. Each connection tries the addresses in turn and uses the first that answers.

Other PCs log in with a generated password, as a role that can reach only the memory database. The Windows firewall rule admits only the local network and Tailscale. The code contains the password: do not post it publicly.

A synced folder also works. Tell the AI "use my Google Drive's Graph-MIND folder as my memory" on each PC.


Reproducing the benchmarks

  1. Download longmemeval_s_cleaned.json from LongMemEval into external/longmemeval/.
  2. Set OPENAI_API_KEY for the answer model and the judge.
  3. Run the commands in REPORT.md §10.

A full 500-question run costs about US$3.

Tests

python -m unittest discover -p "test_*.py"

Known limits

  • Daily use on Windows only so far. macOS and Linux pass the tests in CI but have not seen real use.
  • Capture follows each app's transcript format, which is not a public interface. An app update can stop capture until Graph-MIND is updated.
  • Multi-session questions are the weakest type at 80%. These are questions that count or combine facts across many conversations.
  • The repository still holds the research-phase experiments next to the product (see Repository layout); the installed package carries only the 21 product modules.

The full list is in REPORT.md §9.

Repository layout

files
Product (what pip install graph-mind-memory installs) graph_mind_mcp_server.py (MCP server), automatic_capture*.py (capture service), install.py, brain_log.py (sharing across PCs), local_brain.py / conversation_memory.py / coding_memory.py / development_memory.py (stores), semantic_recall.py / local_embedder.py / vector_cache.py / embedding_warmup.py (search), and their helpers
Benchmarks product_answer_eval.py, official_judge_v073.py, rival_mem0.py, rival_mempalace.py, rival_clean_prereg.py, and the result files under runs/
Research phase the other modules: earlier extraction pipelines and analyses that REPORT.md cites
Tests test_*.py

Contributing

Issues and pull requests are welcome. Contributions are accepted under the CLA, which keeps the dual license possible.

License

AGPL-3.0. Anyone running a modified Graph-MIND as a network service, such as the memory behind a support chatbot, must publish that source. A commercial license is available for products that cannot.

Metadata

Release files for graph-mind-memory 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graph-mind-memory 0.1.2
File Size Uploaded
graph_mind_memory-0.1.2.tar.gz 99.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graph-mind-memory 0.1.2
File Interpreter ABI Platform
graph_mind_memory-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 207.4 kB

Release files / graph_mind_memory-0.1.2.tar.gz

Download URL graph_mind_memory-0.1.2.tar.gz
Size 99.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9410d460fcae8a291677d4377205c431221a060bfb42ea3ab1a5b84201f9e28e
BLAKE2b-256 checksum
How to use checksums
711c9e6d612b86c487f2d91292234e690a39b30235613d95ec887bd270a5e075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / graph_mind_memory-0.1.2-py3-none-any.whl

Download URL graph_mind_memory-0.1.2-py3-none-any.whl
Size 107.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2898bfe5cc18da0a6667ca615745338ad3d13d9a21776ba3237839affd2e75b9
BLAKE2b-256 checksum
How to use checksums
f844dfeea12670bd087400b63ff733ba1d1064d0afc52a5a93b629944dc303c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page