Graph-MIND

السجل الرسمي الذكاء الاصطناعي والوكلاء

Local long-term memory shared by all your AI agents, kept word for word on your own PC.

ماذا يمكنك أن تفعل مع Graph-MIND؟

  • One shared brain for every agent in your terminal. Whichever coding agent or model you
  • Remembers conversations word for word, on your own PC. Saving is a database write: no model
  • One memory across your PCs. Run graph-mind folder share, then graph-mind folder <code> on
  • Hand a memory to someone else as a file. graph-mind export FILE writes all of it;
  • Yours. No account, no cloud of its own, no telemetry. Secrets are masked before anything is
  • Teams, if you want them. Share a project's decisions and progress with teammates' AIs, never

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

PYPI package graph-mind-memory
Claude Code
claude mcp add graph-mind -- uvx graph-mind-memory==0.9.43
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "graph-mind": {
            "command": "uvx",
            "args": [
                "graph-mind-memory==0.9.43"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Graph-MIND
  2. Install
  3. Try it
  4. What it does
  5. Works with
  6. How it works
  7. Does it work?
  8. FAQ
  9. More

Graph-MIND

Your AI forgets everything when the session ends. This one remembers, and it never calls an LLM to do it.

88.8% on LongMemEval. Zero model tokens spent saving memory. Runs on your own PC.

[![][license-shield]][license-link] [![][python-shield]][python-link] [![][platform-shield]][platform-link] [![][longmemeval-shield]][benchmarks-link] [![][ci-shield]][ci-link] [![][pypi-shield]][pypi-link]

Decide something with one agent on Monday. Ask another on Wednesday. It knows.

English · 한국어

Recorded live on one PC: Claude Code (Opus 5.5, effort high) and Codex (GPT-6.1-Sol, effort high) sharing one Graph-MIND memory. Model thinking time is fast-forwarded.

Install

Windows: download Graph-MIND-Setup.cmd and double-click it, or in PowerShell:

irm https://raw.githubusercontent.com/goyohan0611-png/graph-mind/main/scripts/install.ps1 | iex

macOS / Linux:

curl -LsSf https://raw.githubusercontent.com/goyohan0611-png/graph-mind/main/scripts/install.sh | sh

No Python needed; nothing else to set up. Restart your AI apps afterwards. Already have Python? pip install graph-mind-memory && graph-mind-install. More: docs/install.md.

Connecting an MCP client by hand

After pip install graph-mind-memory:

{
  "mcpServers": {
    "graph-mind-memory": {
      "command": "python",
      "args": ["-m", "graph_mind.mcp_server"]
    }
  }
}

Claude Code: claude mcp add graph-mind-memory -- python -m graph_mind.mcp_server. This gives the tools only; graph-mind-install also saves every conversation automatically.

Try it

Work as usual for a while, then open a new session, another app, or another model and ask:

  • "Where did we leave off yesterday?"
  • "Which database did we pick for the billing service, and why?"
  • "What did you change in the auth middleware last week?"
  • "What's my dog's name?" (any fact you mentioned once, in passing)

Nothing to tag or save by hand: every turn is already stored, and the agent pulls back the few that answer the question.

What it does

  • One shared brain for every agent in your terminal. Whichever coding agent or model you run, they all read and write the same memory. Switch agents or models; the memory stays.
  • Remembers conversations word for word, on your own PC. Saving is a database write: no model call, no tokens. When a question depends on the past, the agent gets back the few thousand tokens that answer it. Korean and English.
  • One memory across your PCs. Run graph-mind folder share, then graph-mind folder <code> on the other PC (the AI tells you the command; it never moves your memory by itself, so a web page cannot either). Office network or Tailscale, over TLS, every line encrypted before it leaves a PC.
  • Hand a memory to someone else as a file. graph-mind export FILE writes all of it; --project FOLDER writes only the conversations held in that folder. They run graph-mind import FILE.
  • Yours. No account, no cloud of its own, no telemetry. Secrets are masked before anything is stored, and "delete the password I typed earlier" deletes it everywhere. docs/privacy.md
  • Teams, if you want them. Share a project's decisions and progress with teammates' AIs, never your personal memory; files stay in Slack and GitHub. docs/teams.md

Works with

The installer finds these and connects them; run it again after installing a new one.

appconversations savedhow
Claude Codeevery turnreads its transcripts
Codex CLIevery turnreads its transcripts
Cursorevery turnreads its transcripts
Copilot CLIevery turnreads its transcripts
Claude Desktop (Cowork)every turnreads its session files
Gemini CLIevery turnhooks; also adds relevant memory before each answer
OpenCodeevery turnplugin; also adds relevant memory before each answer, for any model
Claude Desktop chat, Windsurf, VS Code Copilot, Cline, LM Studiowhat the model savesMCP tools

Any other MCP client works through the tools: see the hand-written config above.

How it works

flowchart LR
    A["Claude Code · Codex · Cursor<br/>Gemini CLI · OpenCode · ..."] -- "transcripts, hooks, plugin" --> C["capture service<br/>(runs in the background)"]
    C -- "verbatim turns,<br/>secrets masked" --> S[("your memory<br/>on this PC")]
    S --> I["local search<br/>words + meaning + time"]
    A -- "a question that needs the past" --> I
    I -- "the few turns that answer it<br/>(~3k tokens)" --> A
  • Saving costs nothing. Turns are stored as they were said. No model summarises or extracts anything at write time, so nothing is lost or invented on the way in, and no tokens are spent.
  • Search runs on your PC. Word search, a multilingual embedding model (mpnet, int8; ONNX, no GPU) and when things were said are combined; the agent gets a short packet with the source turns, not a dump of history.
  • The model you already use does the thinking. Graph-MIND hands it evidence; it answers. When models get better, the answers get better without changing the memory.

Does it work?

LongMemEval is the public benchmark for long-term chat memory: 500 questions over about 50 past sessions each. Every system below got the same answer model (gpt-5-mini), the same prompt and the official gpt-4o judge; only the memory differs.

accuracymodel tokens spent saving memorytext the answer model reads
Graph-MIND88.8% (all 500)03.4k tokens
agentmemory80.4% (same 499)—~16.5k tokens
MemPalace 3.10.057.5% (40 questions)0—
Mem0 2.2.1 (open source)52.5% (40 questions)~640,000 per question—

On agentmemory's 499 Graph-MIND scored 89.0%; on the 40, 85.0%. Retrieval alone, on agentmemory's own measure (an answer session among the first 5 retrieved): Graph-MIND 98.5%, agentmemory 95.2%. These runs used the embedding model of 0.9.9 and before; on a 100-question sample the current one finds the answer session as often or more (among the first 5: 99.0% against 97.9%).

Every question, answer and verdict is in research/runs/; method, failures and how to rerun it: docs/benchmarks.md.

FAQ

Will it slow my PC down? The background service uses about 2% of one CPU core when nothing new is coming in and about 650 MB of memory, most of it the search model. A memory search takes about 20 ms (41 ms at the 95th percentile on a GitHub runner); the first one after an app starts, about 1.3 s. After an update that changes the search model, it reads the memory again once, at half pace (about an hour for 11,000 pieces).

What does it cost? Nothing. No API key and no model calls of its own; your AI app reads a packet of about 3k tokens when a question needs the past.

Does anything leave my PC? No, unless you share the memory with your own other PCs or a team. No telemetry. Secrets (API keys, passwords, card numbers...) are masked before storing.

How is this different from CLAUDE.md or an app's built-in memory? Those keep notes a model wrote, one app at a time. Graph-MIND keeps every turn as it was said and shares it across every app and model on the PC.

Korean? Yes: Korean and English conversations, and questions in either language. A Korean question about something said only in English is found most of the time, not always.

How do I remove it? graph-mind-uninstall disconnects every app and stops the service; the memory stays in ~/.graph-mind unless you add --purge.

[!NOTE] Beta. Used daily on Windows. macOS and Linux pass every test in CI but have not seen daily use yet.

More

MCP tools · See your memory in 3D (graph-mind-view) · Changelog · Security · Development: pip install -r requirements.txt, then python -m unittest discover -s tests

Contributions are welcome under the CLA. License: AGPL-3.0; a commercial license is available for products that cannot publish their changes.

[license-shield]: https://img.shields.io/badge/license-AGPL--3.0-4dc9f6?style=flat-square [license-link]: LICENSE [python-shield]: https://img.shields.io/badge/python-3.10+-7dd8f8?style=flat-square&logo=python&logoColor=white [python-link]: https://www.python.org/ [platform-shield]: https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-b0e8ff?style=flat-square [platform-link]: docs/benchmarks.md#known-limits [longmemeval-shield]: https://img.shields.io/badge/LongMemEval-88.8%25-2ea44f?style=flat-square [benchmarks-link]: docs/benchmarks.md [ci-shield]: https://img.shields.io/github/actions/workflow/status/goyohan0611-png/graph-mind/tests.yml?style=flat-square&label=tests [ci-link]: https://github.com/goyohan0611-png/graph-mind/actions/workflows/tests.yml [pypi-shield]: https://img.shields.io/pypi/v/graph-mind-memory?style=flat-square&label=pypi [pypi-link]: https://pypi.org/project/graph-mind-memory/

الأسئلة الشائعة

ما هو Graph-MIND؟

Local long-term memory shared by all your AI agents, kept word for word on your own PC.

كيف أثبّت Graph-MIND؟

يعمل على جهازك. في Claude Code: claude mcp add graph-mind -- uvx graph-mind-memory==0.9.43. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Graph-MIND إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل Graph-MIND مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.

من يصون Graph-MIND؟

ينشره goyohan0611-png. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.