MemoMind: A Local Knowledge-Graph Memory Layer for Claude Code
Give your AI agent a brain that remembers. Local memory system for Claude Code — 100% private, GPU-accelerated, zero cloud dependency.
At a glance
- What is it?
- MemoMind is a fully local, GPU-accelerated memory system that persists context for AI coding agents across sessions using PostgreSQL, pgvector, and a knowledge graph. It replaces the static CLAUDE.md approach with automatic fact extraction and hybrid search, at the cost of a heavier infrastructure dependency.
- Who is it for?
- MemoMind is the right choice for engineers who run Claude Code daily on a machine capable of hosting PostgreSQL with pgvector and a GPU-accelerated embedding model, and who find the static CLAUDE.md approach breaking down beyond 200 lines of project context. It is the wrong choice for teams that share a remote coding environment, need a reproducible setup across machines without a Postgres instance, or want a solution with a published open-source license.
- Can I use it commercially?
- Not without permission. GitHub finds no licence file in the repository, and without a licence all rights are reserved by default: you may read the code but not reuse it. Check the README, or ask the authors, before using it.
- Is it still maintained?
- Yes. The repository last received commits 55 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on September 27, 2026, and from our analysis. They are not legal advice.
Editorial analysis
The Problem with Session Amnesia in AI Coding Agents
Claude Code and similar agents start each session without knowledge of previous conversations. A developer who has spent time explaining their architecture, naming conventions, and technical decisions has to repeat that context every morning. The built-in solution, a CLAUDE.md file loaded at session start, works for static project rules but becomes expensive in tokens and fragile in structure once it exceeds roughly 200 lines. It also has no retrieval layer: the entire file is injected whether or not any given session needs the information it holds.
MemoMind targets exactly this gap. It sits between the agent and a local database, automatically extracting facts from conversations and storing them in a PostgreSQL knowledge graph with pgvector embeddings. When a new session starts, the agent queries only the memories relevant to the current task rather than loading everything.
Architecture: PostgreSQL, pgvector, and a Knowledge Graph
The storage layer is PostgreSQL extended with pgvector for embedding-based similarity search. On top of that, MemoMind builds a knowledge graph with named entities, temporal relationships, and source links. Every stored memory records where it came from, so a fact extracted from a ChatGPT conversation or a DayLife activity log can be traced back to its original source.
Retrieval uses what the README describes as a 4-way hybrid search. The system can match by keyword (20 to 33 ms in the production instance documented in the README), by semantic similarity using embeddings (235 to 430 ms), and through the graph relationships. A `reflect` operation synthesizes insights across all stored memories rather than returning individual records.
The production numbers reported in the README are from the author's own instance: 50,100+ memory nodes, 2,900,000+ knowledge links, 4,600+ named entities, 541 imported AI chats, and a database size of roughly 500 MB after nine years of data and 5,500+ daily activity entries. These figures illustrate the scale the system is designed to handle, not a baseline you should expect on day one.
The repository includes a Model Context Protocol (MCP) server, which is how Claude Code connects to the memory layer. The agent calls `retain` to store a fact and `recall` to query the graph, and the README shows this as happening automatically during a session without the developer needing to invoke it manually.
Installing MemoMind and Running a First Session
The repository provides an `install.sh` script for setup. The top-level file list also includes `memomind.service`, which suggests a systemd service for Linux, `start-memomind.bat` and `start-memomind.vbs` for Windows, and `keep-wsl-alive.vbs` for WSL persistence. The exact installation steps beyond running `install.sh` are not documented in the truncated README, so the full procedure should be verified in the repository.
For the MCP integration, Claude Code picks up the server when it is registered in the project or user-level Claude Code configuration. The MCP endpoint is how the agent calls `retain` and `recall` at runtime.
Importing existing conversation history requires the companion tools listed in the README. Exporting ChatGPT conversations uses the `chatgpt-exporter` repository; Gemini conversations use `gemini-exporter`. The resulting files are fed to `import_ai_chats.py`:
python import_ai_chats.pyLife activity data from the DayLife app imports through `import_daylife.py`. The `dashboard.py` script starts a local web dashboard at a configurable port, offering a knowledge graph view, a timeline view, type filters, and an add-memory interface.
python dashboard.pyThe repository also contains `backup-memomind.py` and `restore_backup.py`, which suggests the author treats periodic snapshots as a necessary part of operating the system.
How MemoMind Differs from CLAUDE.md and MEMORY.md
The README draws a direct comparison with Claude Code's built-in CLAUDE.md and MEMORY.md approach. The core distinction is that CLAUDE.md loads its entire content into context on every session, costs tokens proportionally to file size, and requires the developer to write and maintain rules manually. MemoMind extracts facts automatically using an LLM step and loads only what is relevant to the current session through retrieval.
The knowledge graph adds a layer the flat-file approach cannot provide: entity linking and temporal relationships. A memory like "user switched from Redis to Memcached due to memory constraints last week" carries the entity references and a timestamp, making it queryable by both the subject and the time period. A CLAUDE.md entry would be a static line with no relational context.
The README explicitly describes the two as complementary rather than competing. CLAUDE.md remains appropriate for static project rules that always apply. MemoMind handles the accumulating dynamic knowledge that would bloat a markdown file.
Real Limitations and Cases Where It Is the Wrong Tool
MemoMind requires a local PostgreSQL instance with pgvector installed, an embedding model that benefits from GPU acceleration, and a persistent service process. This infrastructure footprint is significant compared to dropping a markdown file in a project directory. On a shared CI runner, a remote VM accessed over SSH without a database, or a machine without a discrete GPU, the setup cost or the latency of CPU-only embedding may outweigh the benefit.
The license is listed as unknown in the repository metadata. The repository itself does not appear to contain a LICENSE file visible in the top-level listing. Using MemoMind in a commercial or team context without a confirmed license is a legal uncertainty that teams should resolve before depending on it.
The repository has no GitHub releases. Version management and upgrade paths are managed through git directly, which means there is no stable release channel and breaking changes between commits are possible without a migration guide.
Semantic recall at 235 to 430 ms is measurably slower than loading a short CLAUDE.md file. For a session that makes many small memory lookups, the latency adds up.
Comparing MemoMind with mem0
mem0 is an open-source memory layer that also targets AI agents and supports multiple storage backends including vector databases. The primary architectural difference is deployment model: mem0 is designed to work both as a self-hosted service and through a managed cloud API, while MemoMind is explicitly local-only with no cloud dependency as a design goal. If data residency is the priority, MemoMind's architecture keeps all data on the local machine by construction. If cross-machine access or a managed service is required, mem0's cloud option covers that case while MemoMind does not. The knowledge graph structure in MemoMind, with explicit entity linking and a `reflect` synthesis operation, is a differentiator not present in mem0's default vector-store approach.
Maintenance Status and Package Dependencies
The last push to the repository was on 2026-08-07, which is within six months of the current date. The repository has no published releases, so changes accumulate on the master branch. The `package.json` lists Node.js dependencies including Playwright 1.58.2, React 19.2.4, and pptxgenjs 4.0.1, which serve the dashboard and reporting features. The Python requirements are not fully documented in the visible repository files, though the presence of `install.sh` suggests an automated dependency setup.
Because the project has no license file, contributors and adopters should check directly with the author before incorporating it into any product or redistributing modified versions.
Editorial conclusion
MemoMind is the right choice for engineers who run Claude Code daily on a machine capable of hosting PostgreSQL with pgvector and a GPU-accelerated embedding model, and who find the static CLAUDE.md approach breaking down beyond 200 lines of project context. It is the wrong choice for teams that share a remote coding environment, need a reproducible setup across machines without a Postgres instance, or want a solution with a published open-source license. Before adopting it, verify that your PostgreSQL build includes pgvector, confirm the install.sh target OS, and run a small import of your actual conversation history to measure whether semantic recall latency stays within an acceptable range for your workflow.
Frequently asked questions
Does MemoMind require a GPU to function?
The README describes MemoMind as GPU-accelerated, and production latency numbers assume GPU-based embedding. The README does not document a CPU-only fallback configuration, so running without a GPU may affect embedding speed.
Can MemoMind be used with AI agents other than Claude Code?
MemoMind exposes a Model Context Protocol server, which any MCP-compatible agent can connect to. The README focuses on Claude Code as the primary integration, but the MCP interface is a standard protocol.
What happens to MemoMind data if PostgreSQL is lost or corrupted?
The repository includes backup-memomind.py and restore_backup.py scripts, indicating that the author expects periodic backups to be part of normal operation. The README does not document automatic backup scheduling.
Is MemoMind open source?
The repository is publicly available on GitHub, but the license is not listed in the repository metadata and no LICENSE file is visible in the top-level directory listing. The README does not state a license.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/24kchengye-memomind)