deja-vu logo

deja-vu

Local memory layer that indexes coding-agent session logs for search and MCP recall.

Open source

deja-vu is an open-source Go binary that turns existing Claude Code, Codex, OpenCode, Cursor, Gemini CLI, Grok Build, and aider histories into searchable memory. It exposes MCP recall, optional session-start auto-recall, secret redaction, and machine-to-machine sync without a hosted service or downloaded model.

Selection advice

Choose deja-vu when the memory you need already lives in coding-agent transcripts and you want local search plus MCP recall without standing up a memory service. Choose PAXM when agents should write durable project memory across providers, or Mem0 when memory belongs inside an application you ship.

Quick comparison

deja-vu mines the session logs your coding agents already write. PAXM adapts memory writes and recall across providers, while Mem0 embeds memory inside application code.

deja-vuPAXMMem0
Best forSearching and recalling past coding-agent sessions across harnessesWriting and routing project memory across multiple agent clientsEmbedding user memory in a shipped agent product
Storage modelIndexes local harness transcripts with redacted cache and optional syncLocal SQLite plus optional routed memory providersSDK-managed memory with self-hosted and managed options
Integration styleCLI search, MCP recall, and install hooks into supported harnessesCLI, MCP tools, skills, plugins, and lifecycle hooksPython and TypeScript APIs inside application code
TradeoffStrong on retroactive session search; not a general application memory SDKBroader write/routing model with less focus on mining existing logsApplication-friendly API with more hosting and provider setup

Best for

  • coding-agent session recall
  • local-first privacy
  • cross-harness MCP memory
  • retroactive search over existing logs

Not ideal for

  • teams that need a managed memory SaaS with hosted UI
  • products that need an in-app memory SDK for end users
  • workflows that never write local coding-agent transcripts

Core concepts

session-log indexingMCP recallsession-start auto-recallsecret redactionexport/import sync

Minimal implementation shape

Install with `curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh`, run `deja install --auto`, then search with `deja "jwt refresh rotation"` or ask the agent to use MCP `recall`.

Sources