24kchengYe/MemoMind

★ 611⑂ 0

Give your AI agent a brain that remembers. Local memory system for Claude Code — 100% private, GPU-accelerated, zero cloud dependency.

About 24kchengYe/MemoMind

24kchengYe/MemoMind is an open-source project on GitHub, mainly written in Python. Give your AI agent a brain that remembers. Local memory system for Claude Code — 100% private, GPU-accelerated, zero cloud dependency. It currently holds 611 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Agent Memory board.

GitHub Repository Details

Repository 24kchengYe/MemoMind · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Visitors

🧠 MemoMind

Give your AI agent a brain that remembers.

A fully local, GPU-accelerated memory system for AI coding agents. Start building your digital twin's memory today — portable, evolving, and ready to migrate when a better system comes along.

License: MIT MseeP Verified Platform PostgreSQL MCP-blue) CUDA

English | 中文

---

Two Kinds of AI Memory

AI memory has two audiences — the machine and the human. Most tools only address one:

| | For the AI (what it knows) | For the Human (what you can review) | |---|---|---| | Goal | AI remembers preferences, decisions, context across sessions | You browse, search, and manage conversation history | | Problem solved | "Why does it keep forgetting my coding style?" | "What did we discuss last Tuesday?" |

MemoMind handles the AI side — it gives your coding agent persistent, structured, intelligent memory. For the human side, see Recall (our companion project for conversation history management).

Use both together for the complete experience.

---

The Problem

You've spent thousands of hours with AI — but it remembers nothing.

The problem isn't intelligence — GPT-5, Claude, Gemini are brilliant. The problem is amnesia. Every session is a blank slate. Every AI is an isolated silo. Your years of digital life produce zero compounding value.

What if your AI could remember everything? Not just this session — but every conversation you've ever had, every decision you've made, every day you've lived?

Why Not Just Use CLAUDE.md?

Claude Code already has CLAUDE.md and MEMORY.md. But they have fundamental limitations:

| | Claude Code Built-in | MemoMind | |---|---|---| | Storage | Plain Markdown files | PostgreSQL + pgvector + knowledge graph | | Extraction | Manual — you write rules yourself | Automatic — LLM extracts facts from conversations | | Retrieval | Full file loaded into context every time (wastes tokens) | 4-way hybrid search, only relevant memories recalled | | Cross-session | Static rules; append-only notes | Dynamic knowledge graph with entity linking + temporal relationships | | Reasoning | No — just loads text | reflect synthesizes insights across all memories | | Scalability | Breaks down at ~200 lines (context bloat) | Handles thousands of memories efficiently |

They're complementary, not competing. CLAUDE.md is great for static project rules ("use tabs, not spaces"). MemoMind handles the dynamic knowledge that accumulates over time ("user tried Redis caching last week but switched to Memcached due to memory constraints").

The Solution

MemoMind gives your AI a persistent, local, intelligent brain. Not a chat log — a living knowledge graph that grows with every interaction, every imported conversation, every day of your life.

| | Without MemoMind | With MemoMind | |---|---|---| | Session start | Blank slate, zero context | Recalls your preferences, past decisions, project context | | 500 ChatGPT conversations | Scattered across browser tabs, unsearchable | Unified knowledge graph, every fact extracted and linked | | 3 years of daily activities | Trapped in your planner app | Searchable timeline — AI knows your patterns and history | | Cross-AI knowledge | ChatGPT doesn't know what you told Gemini | All conversations merged into one memory | | Decision tracking | Lost when chat window closes | Stored as structured facts with source tracing | | Cross-session reasoning | Impossible | reflect synthesizes insights across all memories | | Privacy | Cloud-based, fragmented | 100% local — nothing leaves your machine |

You: "Let's use FastAPI instead of Express for this project"

Claude Code internally: → retain("Project migrating from Express to FastAPI") # auto-stores

Next week, new session: → recall("project tech stack") # auto-retrieves → "Based on your previous decision, I'll use FastAPI..."

You don't do anything — the AI handles it all.

📊 Real Numbers from Production Use

| Metric | Value | |--------|-------| | Memory nodes | 50,100+ | | Knowledge links | 2,900,000+ | | Named entities | 4,600+ | | Time span | 2017 – present (9 years) | | AI chats imported | 541 (ChatGPT + Gemini) | | Life events imported | 5,500+ (2,400+ days) | | Knowledge Vault docs | 13,400+ (NoteDiscovery) | | Database size | ~500 MB | | Keyword search | 20–33ms | | Semantic recall | 235–430ms | | Daily LLM cost | < $0.01 |

---

🎬 Dashboard

https://github.com/24kchengYe/MemoMind/blob/HEAD/MemoMind Dashboard — memory stream with metrics, filters, and search
Knowledge Graph Timeline View
https://github.com/24kchengYe/MemoMind/blob/HEAD/Entity relationship graph with hover tooltips https://github.com/24kchengYe/MemoMind/blob/HEAD/Memories organized by date
Type Filters Add Memory
https://github.com/24kchengYe/MemoMind/blob/HEAD/Filter by observation type https://github.com/24kchengYe/MemoMind/blob/HEAD/Manual memory creation modal

---

💬 Import & Trace Your AI Conversations

One-click import your ChatGPT and Gemini conversation history into the knowledge graph — then trace any memory back to the original conversation.

Export your conversations using our companion tools, then import them into MemoMind. Every extracted memory links back to its source — click the 💬 icon on any memory card to view the full original conversation.

AI Memory Timeline (2,000+ memories) Original Conversation Tracing
https://github.com/24kchengYe/MemoMind/blob/HEAD/Timeline view of AI conversation memories across months https://github.com/24kchengYe/MemoMind/blob/HEAD/Click 💬 to view the original ChatGPT/Gemini conversation

Companion tools for conversation export:

📅 Visualize Your Life with DayLife

Import your daily activities from DayLife — every event becomes a searchable, AI-analyzable memory. Smart daily sync catches up automatically even if your computer was off for days.

Life Timeline in MemoMind (6,000+ events) DayLife App — Your Daily Planner
https://github.com/24kchengYe/MemoMind/blob/HEAD/Years of daily activities visualized as a searchable timeline https://github.com/24kchengYe/MemoMind/blob/HEAD/DayLife calendar view with daily activities and categories

Import once with import_daylife.py, then the daily sync keeps it updated forever. Combined with DayLife's CSV import feature, you can one-click visualize your entire life history — every plan, every achievement, every habit pattern — all searchable by AI.

---

How It Compares

| Feature | MemoMind | Mem0 | Graphiti/Zep | Letta | Cognee | Hindsight | |---------|----------|------|--------------|-------|--------|-----------| | GitHub Stars | — | 51K | 24K / 4K | 22K | 15K | 7K | | Funding | Self-funded | $24M (YC) | — | $10M | $7.5M | $3.5M | | Architecture | KG + pgvector | Vector + Graph | Temporal KG | Agent OS | ECL + KG | 4-network | | Retrieval | 4-way hybrid | Semantic + graph | Sem+BM25+graph | Agent-driven | 14 modes | 4 parallel | | Knowledge Graph | Built-in (pgvector) | Pro only ($249/mo) | Core (Neo4j) | No | Yes | Yes | | Temporal | Native | No | Bi-temporal | No | Partial | Yes | | Privacy | 100% local | Cloud default | Cloud/BYOC | Self-host opt | Local/Cloud | Local | | GPU Accel | Local CUDA | No | No | No | No | No | | LongMemEval | — | 49% | — | — | — | 91.4% | | Cost | $0.30/mo | Free–$249/mo | Free–$475/mo | Free–$200/mo | Free–$200/mo | Free (OSS) |

MemoMind vs MemOS: MemOS is a general-purpose memory operating system for LLM agents, with multi-modal support (text + images + tool traces) and OpenClaw/MoltBot plugin integration. MemoMind is purpose-built for MCP-based coding agents with deeper retrieval (4-way hybrid vs 2-way), built-in reasoning (reflect), and zero-infrastructure GPU-accelerated local embeddings. Choose based on your agent ecosystem: MCP agents → MemoMind, OpenClaw/general agents → MemOS.

---

Key Features

Use Cases

---

Architecture

https://github.com/24kchengYe/MemoMind/blob/HEAD/MemoMind System Architecture

Three Core Operations

https://github.com/24kchengYe/MemoMind/blob/HEAD/Retain, Recall, Reflect Operations

| Operation | What It Does | When AI Calls It | |-----------|-------------|------------------| | retain | Extract facts from conversation, store in vector DB | After learning something new about you | | recall | 4-way hybrid search (semantic + BM25 + graph + temporal) | Before responding, to check relevant history | | reflect | Deep reasoning across all memories | For complex questions requiring synthesis |

Memory Types

MemoMind organizes knowledge into four biomimetic memory pathways — modeled after how human memory actually works:

| Type | What It Captures | Example | How It's Used | |------|-----------------|---------|---------------| | World | Objective facts about the user and environment | "User prefers Python over R" | Shapes recommendations and defaults | | Experience | Events the agent participated in | "Last session we debugged the auth module" | Provides continuity across sessions | | Observation | Patterns auto-synthesized from behavior | "User consistently uses functional style" | Refines understanding over time | | Mental Model | Learned understanding of complex topics | "This codebase follows hexagonal architecture with ports and adapters" | Enables deeper reasoning about project context |

Unlike flat key-value stores, these types form a knowledge graph — entities are linked by relationships, creating retrieval pathways that go far beyond simple keyword matching.

Memory Evolution

Observations don't just accumulate — they evolve. The consolidation engine automatically merges, updates, and refines observations as new facts arrive:

https://github.com/24kchengYe/MemoMind/blob/HEAD/Memory Evolution Through Consolidation

Each memory bank has a configurable mission that controls how the consolidation engine synthesizes observations — from simple detail tracking to structured task-level experience records with procedures, lessons learned, and user preferences.

---

Quick Start

Prerequisites

Option A: Windows Native (Recommended for Windows users)

Runs entirely on Windows — no WSL, no virtual machines. Most stable option.

Step 1 — Clone and set up Python venv

git clone https://github.com/24kchengYe/MemoMind.git
python -m venv D:\pythonPycharms\memomind-env

Step 2 — Install dependencies

# Install hindsight-api (skip uvloop — Windows doesn't support it)
pip install hindsight-api-slim --no-deps
pip install pg0-embedded sentence-transformers torch --index-url https://download.pytorch.org/whl/cu124

Install remaining deps (see requirements-win.txt or install all from hindsight-api-slim metadata)

Step 3 — Set up PostgreSQL 17 + pgvector

# Download PG 17 portable: https://www.enterprisedb.com/download-postgresql-binaries

Extract to e.g. D:\memomind-pg\pgsql\

Initialize and start:

pg_ctl initdb -D D:\memomind-pg\data -U hindsight -A trust pg_ctl start -D D:\memomind-pg\data -o "-p 5433"

Build and install pgvector (requires Visual Studio Build Tools):

git clone https://github.com/pgvector/pgvector.git

In VS Developer Command Prompt:

set PGROOT=D:\memomind-pg\pgsql nmake /F Makefile.win && nmake /F Makefile.win install

Create database with vector extension:

createdb -h localhost -p 5433 -U hindsight hindsight psql -h localhost -p 5433 -U hindsight -d hindsight -c "CREATE EXTENSION vector;"

Step 4 — Configure and start

# Edit serve.py — set LLM_API_KEY, LLM_BASE_URL, LLM_MODEL

Apply patches:

python patch_hindsight.py

Start the server:

python serve.py # API at http://localhost:19999 pythonw dashboard.py # Dashboard at http://localhost:9999

Step 5 — Register MCP in Claude Code

claude mcp add --scope user --transport stdio memomind \
  -- D:\memomind-env\Scripts\python.exe D:\memomind-env\mcp_stdio.py

Step 6 — (Optional) Auto-start on boot

# Create a Windows Scheduled Task, or copy to Startup:
copy start-memomind.vbs "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\"

Option B: WSL2 / Linux (Recommended for Linux users)

Uses WSL2 on Windows or runs natively on Linux. Leverages systemd for service management.

Step 1 — Clone and install

git clone https://github.com/24kchengYe/MemoMind.git

On Linux or inside WSL:

cd MemoMind sudo bash install.sh

Step 2 — Configure your LLM API key

sudo nano /opt/memomind-env/serve.py

Set LLM_API_KEY, LLM_BASE_URL, LLM_MODEL (see "Supported LLM Providers" below)

Step 3 — Start the service

sudo systemctl start memomind

Step 4 — Register MCP in Claude Code

# From Windows (if using WSL):
claude mcp add --scope user --transport stdio memomind \
  -- wsl -d Ubuntu -u memomind -e //opt/memomind-env/mcp-entry.sh

From Linux (native):

claude mcp add --scope user --transport stdio memomind \ -- /opt/memomind-env/bin/python3 /opt/memomind-env/mcp_stdio.py

Step 5 — (Optional) Auto-start & Dashboard

# WSL auto-start (run from Windows):
copy keep-wsl-alive.vbs "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\"

Dashboard (run from Windows, or Linux with GUI):

pythonw dashboard.py # Opens at http://localhost:9999

Verify (both options)

curl http://localhost:19999/health

→ {"status":"healthy","database":"connected"}

Supported LLM Providers

The LLM is only used for fact extraction (not for chatting). MemoMind supports any OpenAI-compatible API. Two deployment modes:

Mode A: China Direct (no proxy needed) — Recommended for China users

Use a domestic OpenAI-compatible API gateway. No VPN, no proxy, no extra configuration:

| Provider | Base URL | Recommended Model | Notes | |----------|---------|-------------------|-------| | MindCraft | https://api.mindcraft.com.cn/v1 | deepseek-chat, qwen-flash | 200+ models, pay-per-use | | DeepSeek | https://api.deepseek.com/v1 | deepseek-chat | Official DeepSeek API | | SiliconFlow | https://api.siliconflow.cn/v1 | Various open-source models | Free tier available |

# In serve.py — just set these three lines:
LLM_API_KEY = "your-api-key"
LLM_BASE_URL = "https://api.mindcraft.com.cn/v1"
LLM_MODEL = "deepseek-chat"
NEEDS_PROXY = False  # No proxy needed

Mode B: International APIs (proxy required)

For OpenRouter, OpenAI, Anthropic, etc. Requires a proxy bridge (proxy-bridge.py) to route WSL traffic through your Windows proxy:

| Provider | Base URL | Recommended Model | |----------|---------|-------------------| | OpenRouter | https://openrouter.ai/api/v1 | qwen/qwen3.5-9b ($0.05/1M tokens) | | OpenAI | https://api.openai.com/v1 | gpt-4.1-nano | | Groq | https://api.groq.com/openai/v1 | llama-3.3-70b-versatile (ultra-fast) |

# In serve.py:
LLM_API_KEY = "sk-..."
LLM_BASE_URL = "https://openrouter.ai/api/v1"
LLM_MODEL = "qwen/qwen3.5-9b"
NEEDS_PROXY = True  # Routes through proxy-bridge.py → Clash
Proxy bridge setup (for Mode B only)

MemoMind includes proxy-bridge.py — a lightweight TCP forwarder that runs on Windows and bridges WSL to your local proxy (e.g., Clash):

# Start the bridge (binds 0.0.0.0:12080 → 127.0.0.1:2080)
pythonw proxy-bridge.py

WSL can now reach your proxy via {Windows_IP}:12080

This is automatically configured in serve.py when NEEDS_PROXY = True

To auto-start, uncomment the proxy-bridge line in keep-wsl-alive.vbs.

Also supported (any OpenAI-compatible API)

Ollama (fully local, no API key needed), Groq, LM Studio, and more. For non-OpenAI-compatible providers (Anthropic, Gemini), set llm_provider in serve.py to "anthropic" or "gemini".

Integration Options

MemoMind can be integrated in multiple ways beyond MCP:

Option 1: MCP (Recommended for Claude Code)

Zero-code setup — Claude Code automatically calls retain / recall / reflect via MCP protocol. See Quick Start above.

Option 2: Python SDK

pip install hindsight-client  # Install the client library
from hindsight_client import HindsightClient

client = HindsightClient(base_url="http://localhost:8888")

Store a memory

client.retain("default", "User prefers FastAPI over Express for new projects")

Recall relevant memories

results = client.recall("default", "What framework should I use?") for memory in results: print(memory.text, memory.relevance_score)

Deep reflection across all memories

insight = client.reflect("default", "What patterns do you see in my tech choices?") print(insight)

Option 3: REST API

# Health check
curl http://localhost:8888/health

List memories

curl http://localhost:8888/v1/default/banks/default/memories/list

Recall (semantic search)

curl -X POST http://localhost:8888/v1/default/banks/default/memories/recall \ -H "Content-Type: application/json" \ -d '{"query": "user preferences", "max_tokens": 4096}'

Reflect

curl -X POST http://localhost:8888/v1/default/banks/default/reflect \ -H "Content-Type: application/json" \ -d '{"query": "Summarize what you know about this user"}'

Per-User Memory Isolation

Use separate memory banks to isolate memories per user, project, or context:

# Create a bank per user
client.create_bank("user-alice", name="Alice's Memories")
client.create_bank("user-bob", name="Bob's Memories")

Each user's memories are completely isolated

client.retain("user-alice", "Alice prefers dark mode and Vim keybindings") client.retain("user-bob", "Bob uses VS Code with default settings")

Recall only searches within the specified bank

alice_prefs = client.recall("user-alice", "editor preferences")

→ Only returns Alice's preferences, not Bob's

Backup & Export — Future-Proof Your Digital Twin

AI memory systems will keep evolving — today it's MemoMind, tomorrow it could be something better from OpenAI, Anthropic, or

GitHub Stars & Activity

611Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars611
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

mem0ai / mem0

Python★ 65,719⑂ 0
2

volcengine / OpenViking

Python★ 38,212⑂ 0
3

topoteretes / cognee

Python★ 30,864⑂ 0
4

MemoriLabs / Memori

Python★ 16,866⑂ 0
5

NevaMind-AI / memU

Python★ 14,418⑂ 0
6

EverMind-AI / EverOS

Python★ 13,094⑂ 0
7

plastic-labs / honcho

Python★ 7,274⑂ 0
8

FlowElement-xinliuyuansu / m_flow

Python★ 4,507⑂ 0

More AI Rankings