Why MemMesh
Every agent framework bolts memory onto a hosted vector store and an LLM extraction call per message. That means a database to run, data leaving your machine, and a bill that scales with how much you remember.
MemMesh takes the opposite path: one binary, one file, everything local.
| MemMesh | Typical agent-memory stack |
|---|
| Runtime | One Rust binary (SQLite or Postgres) | App + external vector DB (+ search service) |
| Privacy | Data never leaves your machine | Memories shipped to a hosted store |
| Retrieval | Semantic + keyword hybrid — local embeddings, no vector DB to run | Hosted vector store |
| API calls | None — heuristic capture + a local embedding model, nothing leaves the box | An extraction/embedding call per message |
| Time model | Bi-temporal (when it happened vs when you learned it) | Flat timestamps |
| Protocol | MCP-native — works in Claude Code, Cursor, Windsurf, Codex today | Framework-specific SDK |
| License | Apache-2.0, no limits | Varies |
⚡ 60-second quickstart
# 1. Install a prebuilt binary — no Rust toolchain needed
curl -fsSL https://memmesh.ai/install.sh | sh # macOS / Linux
# Windows (PowerShell): irm https://memmesh.ai/install.ps1 | iex
# (or build from source: cargo build --release --bin memmesh)
# 2. Wire it into every AI tool on your machine — one command
memmesh install
# 3. Watch it remember (and find it by meaning, not just keywords)
memmesh observe --content "Ryan prefers pnpm over npm for all projects."
memmesh search --query "which package manager" # semantic — no shared words
# → returns the stored memory, typed and timestamped
First observe/search downloads a small local embedding model (bge-small,
~130 MB) into MemMesh's cache — once, no API key, no data egress. Semantic
search is on by default; set [embeddings] provider = "none" to run pure
keyword + recency.
memmesh install detects each supported tool, merges an MCP server block into its config (your other MCP servers are untouched), and drops the teaching skill in the right place.
| Tool | MCP config | Skill location |
|---|
| Claude Code | ~/.claude.json | ~/.claude/skills/memmesh/SKILL.md |
| Cursor | ~/.cursor/mcp.json | ~/.cursor/rules/memmesh/SKILL.md |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | (MCP tool descriptions) |
| Codex CLI | ~/.codex/config.toml | (MCP tool descriptions) |
Restart the host tool afterward so it reloads its config. Useful flags: --dry-run, --tool <id> (repeatable), --mcp-only (skip the skill), --no-hooks (skip the Claude Code auto-observe hook), --force.
🪝 Send everything — let the engine decide what to remember
You don't have to tell your agent "remember this." On Claude Code, memmesh install
also wires two hooks so memory just happens:
UserPromptSubmit → memmesh observe — every prompt is piped to the engine,
which runs its heuristic filter and keeps only the substantive bits (preferences,
decisions, facts) while dropping conversational filler. Fully local, no LLM, no egress.
SessionStart → memmesh search --format claude-context — relevant memories are
injected back into the context when a new session opens, so the agent starts already
knowing what it learned last time.
The net effect: fire the whole conversation at memory and let the engine curate it —
capture without deciding what's worth capturing, recall without asking. Wire the same
pattern into any tool that supports pre-prompt / session hooks (Codex, custom agents):
just pipe raw text to memmesh observe --json and read memmesh search --format claude-context.
Skip it with --no-hooks if you'd rather call the memory tools explicitly.
🛠️ CLI
The binary opens ~/.memmesh/memory.db by default (override with --db <path>):