memtomem v0.3.12 · memtomem-stm v0.1.41 · Apache 2.0

AI That Never Forgets —
Memory Infrastructure for Agents

Stop re-explaining your project to your AI every session. memtomem turns your notes, docs, and code into a searchable memory that any MCP-compatible agent can use — across sessions, across agents, all on your machine.

$ uv tool install 'memtomem[all]'
9Core MCP Tools
10Compression Strategies
4Default STM Tools
Prove the basics, then choose one next task
Start with local LTM only. Connect an AI client or add STM after storage and search work.
Why Do Agents Forget?
Tool integration (MCP), safety (Guardrails), and observability (Langfuse) are mature — but the memory layer still has no standard.
01

No Memory Between Sessions

All context is lost when a session ends. Architecture decisions, coding patterns, and debugging history must be re-explained every time.

02

Memory Silos Between Agents

Knowledge from Claude Code can't be carried over to Cursor. Each agent is trapped in its own isolated memory silo.

03

Limitations of Existing Solutions

Current memory systems only work when agents explicitly search, are locked to specific runtimes, and offer only a single LTM layer.

memtomem Solves This
Applying the cognitive science working-memory / long-term memory model to agents. Short-term compression and long-term search as independent MCP servers.

Searchable Long-Term Memory

Index your notes, docs, and code with mm index, then find them with hybrid search — BM25 keyword and dense-vector semantic search fused via RRF, so exact identifiers and meaning-based queries both land. Markdown, code, and structured files are chunked by structure, and re-indexing only re-embeds the chunks that changed.

Memory Across Sessions & Agents

Memory doesn't vanish when a session ends. Namespaces route searches between agent-specific and shared scopes; they are not access-control boundaries. The session workflow lets Claude Code, Cursor, and Codex continue from one memory store.

Context Gateway

Keep master skills, commands, and subagents in the .memtomem/ Store. Preview and Pull runtime copies into the Store, then Push the reviewed Store version to selected runtimes. Copy or move artifacts across projects and tiers, or operate across registered projects in one batch.

Proactive Surfacing

Your agent doesn't have to ask. STM observes the MCP calls it proxies and surfaces relevant memories at the right moment. Each surfaced memory carries an id, so your agent can rate or invalidate individual items.

Token-Aware Compression

Responses from MCP tools routed through STM can be compressed before they reach your agent. When a response exceeds the context budget, one of 10 strategies is selected by content type. Actual savings depend on the response and configured retention limits.

Local-First & Private

SQLite storage and local ONNX inference need no GPU or cloud account. Optional Ollama, OpenAI-compatible, Cohere, and Langfuse integrations can contact configured services. Local files use restrictive permissions, and credential-shaped content is filtered at cache, index, and share boundaries.

Two-Layer Architecture
STM proxy and LTM server connected via MCP, transparently providing surfacing and compression to agents.
Core AI Runtimes / Others
Claude Code
Codex CLI
Antigravity CLI
Other MCP clients
MCP
memtomem-stm
STM Proxy
CLEAN → COMPRESS → SURFACE
Surfacing
MCP
memtomem
LTM Server
9 core MCP Tools
Upstream MCP Servers
filesystem, GitHub, …
Core Runtimes & Compatibility
Optimized for the main CLI runtimes, while staying MCP-native for the rest.
Claude Code
Codex CLI
Antigravity CLI
Other MCP clients
Framework adapters
Continue by outcome
Each guide ends with a visible result, a verification step, and a recovery or rollback path.

Get Started Now

No GPU is required. The default path stays local; external providers remain optional.