Claude Code memory mechanisms

19 systems in the claude code memory mechanisms category of the AI Agent Infrastructure Landscape, grouped by maturity tier.

Tier 1 — battle-tested (7)

  • Anthropic Auto Dream REM-style sub-agent memory consolidation

    Background sub-agent in Claude Code that periodically scans ~/.claude/projects/<project>/memory/ + recent JSONL transcripts via grep, prunes stale notes, deduplicates, resolves contradictions, converts relative dates to absolute timestam…

  • Claude Code auto-memory Per-project file directory

    Persistent file-based memory at ~/.claude/projects/<project>/memory/ with a MEMORY.md index plus typed memory files (user / feedback / project / reference). Loaded into context across sessions.

  • claude-mem Episodic / session-log compression

    Hooks into Claude Code's session lifecycle; compresses tool outputs into ~500-token observations via Claude's agent SDK. SQLite + FTS5 with optional Chroma vector. "Endless Mode" compresses in-flight to extend session length. Captures wh…

  • codebase-memory-mcp (DeusData) Tree-sitter knowledge-graph MCP for code

    High-performance MCP server building persistent code knowledge graphs via AST. 155 languages via vendored tree-sitter; SQLite + WAL; single static binary; zero runtime deps. Knowledge graph: Project/Package/File/Module/Class/Function/Met…

  • Graphiti MCP Server (Zep) Temporal KG with bi-temporal edges

    Tracks how facts change over time; maintains provenance; supports prescribed and learned ontology. Bi-temporal edges (when known vs when valid). Only server that distinguishes "fact learned" from "fact true."

  • Mem0 MCP (official) Hybrid vector + graph via cloud API

    Mem0's managed cloud API exposed as MCP tools. Semantic search + CRUD on memories scoped by user / agent / session. Cloud-hosted MCP endpoint — no local infrastructure required.

  • Official MCP Memory server KG-based persistent memory MCP

    Knowledge-graph-based persistent memory MCP server — the canonical reference implementation. npx -y @modelcontextprotocol/server-memory ; configurable via MEMORY_FILE_PATH .

Tier 2 — production-ready (12)

  • claude-brain Memvid → Claude Code plugin

    Claude Code plugin packaging of Memvid (see Dedicated memory layers). Wraps the Memvid .mv2 single-file store as a slash-command-installable plugin so per-project memory becomes a git-committable file inside the repo.

  • Claude-CursorMemoryMCP PostgreSQL + pgvector with RBAC

    FastAPI server. RBAC + API-key auth, encryption, backup/recovery, embedding pipeline with deduplication. Only server in this list with role-based access control over pgvector.

  • claude-supermemory Team-scope memory plugin

    Wraps Supermemory cloud API. Team memory shared across project members, separate from personal memories. Auto-capture on session end; per-repo config.

  • Cognee MCP Multi-layer KG with rule extraction

    "Cognify" extracts entities and relationships into a structured graph. Saves interaction patterns as coding rules; uses both vector and graph DBs. Bundled in Cognee v0.3.5+.

  • engram Static Go binary, agent-agnostic

    SQLite + FTS5; agent decides what to save (not firehose capture). Single Go binary, no CGO, no Node/Python/Docker dependencies. HTTP API + MCP + CLI + TUI; optional cloud sync with local-source-of-truth.

  • Hindsight MCP Four-network episodic memory

    World (facts), Experiences (agent actions), Opinion (beliefs with confidence scores), Observation (mental models). Entity resolution ("Alice" and "my coworker Alice" same node). Mimics human recall topology.

  • local-memory-mcp SQLite + FTS5 with decision-tracking

    SQLite + FTS5 + BM25 ranking. Stores learnings, decisions with reasoning and alternatives , entities, observations. Loads context from last 3 sessions. Only server that captures why a decision was made + alternatives considered.

  • mcp-knowledge-graph Stable local fork of official MCP memory

    KG-based local fork of @modelcontextprotocol/server-memory . Avoids ephemeral npx installs; supports named databases for topic scoping; user-controlled memory path. Drop-in for teams that want the official KG model without npx churn.

  • mcp-memory (Puliczek) Cloudflare-native vector memory

    Embeddings via @cf/baai/bge-m3 ; Vectorize + D1; per-user namespace isolation. Runs entirely on Cloudflare Workers — no separate server.

  • mcp-memory-service (doobidoo) KG + vector hybrid + autonomous consolidation

    SQLite-Vec default, Cloudflare hybrid for production. Typed edges (causes, fixes, contradicts). Autonomous consolidation compresses old memories. SSE real-time notifications + D3.js visualisation dashboard. Agent-pipeline focused (LangGr…

  • OpenMemory MCP Local Postgres + Qdrant cross-tool memory

    Local-first self-hosted Mem0 variant. Shared memory layer bridges Claude Desktop, Cursor, and Windsurf in one session. All data stays on-machine. Docker Compose self-host.

  • Superpowers episodic-memory plugin MCP semantic search over conversations

    Claude Code plugin that indexes prior conversations at session end and exposes search/show tools via MCP. Distributed via obra/superpowers-marketplace ; install with /plugin install episodic-memory@superpowers-marketplace .