AI product Open source

deja-vu

deja-vu is a local memory and search layer for AI coding agents. Its Go binary indexes session histories already stored on a machine by Claude Code, Codex, Cursor, and other supported agents, including sessions recorded before installation, without using an LLM or embeddings. It provides natural-language and direct search, session inspection, context retrieval, JSON output, redaction, usage statistics, and MCP-based cross-agent recall; the index strips keys and tokens as it is built and can synchronize append-only memory between machines over SSH.

View repository Visit site Mentioned in 1 video ↓

Overview

Recall can be injected automatically at session start and before prompts, file edits, or commands, and a post-command hook can retrieve what followed a matching failure when the agent supports those hooks. It also indexes files opened during each turn, executed commands and exit statuses, and exact spans replaced by edits, rather than only conversation text. Decisions can be marked as accepted or rejected with notes, and results can report when indexed files have changed since a session. The repository reports sub-millisecond lookups over 5 GB of history, with benchmark harnesses for LongMemEval-S and LoCoMo.

The project is distributed as a local binary with installation options including a shell script, Homebrew, Go, npm, Scoop, release archives, and agent-specific plugin or MCP bundles. Its optional installation wiring configures supported agents for MCP and session-start recall.

What deja-vu is used for

2 uses taken from transcripts — each links to the moment in the video.

  • A local command-line memory layer that indexes coding-agent histories and makes past work searchable. It supports direct search, MCP recall, automatic memory injection, secret redaction, usage statistics, sanitized digests, and synchronization between machines.

  • Indexes local coding-agent conversation histories into a searchable memory layer, supports direct search and MCP recall, automatically feeds relevant memory into sessions, redacts secrets, and synchronizes memory between machines.

Videos mentioning deja-vu

1 in the library.