deja-vu — Coding Agent Memory & Session Search
MCP server by vshulcz Community
deja-vu searches past sessions from 53 coding agents, including Claude Code, Codex and Cursor, using the transcripts already on disk. It runs locally as one Go binary with no LLM calls and no API key.
About
deja-vu indexes the session logs that coding agents already save to local JSONL and SQLite stores, such as ~/.claude, ~/.codex and Cursor state.vscdb. It builds an append-only inverted index under ~/.cache/deja, so existing history is searchable from the first day without capture daemons or API keys. Users can search through a terminal TUI, a CLI, an MCP server or lifecycle hooks.
The tool also supports cross-agent handoff, code recovery with restore and blame, decision tracking, and repository memory shared through git. Credentials are redacted at index time. The project is aimed at developers who use several coding agents and want to recover context, decisions and edits from their past sessions.
Written from the project's README and checked against it.
Tools it gives your assistant
deja <query>Multi-word and quoted-phrase search across all agent history stores, with date, harness and project filters.deja handoffTransfers goal, constraints, touched files, passed checks and open work between coding agents.deja restoreRecovers an edit span that was replaced before it was committed to git.deja blameShows which agent session wrote or replaced a given line of a file.deja audit --secretsInspects store paths, cleanup risk and leaked keys in agent history.deja promoteMarks a decision as rejected or accepted, so later search hits flag reverted approaches.deja repo addExports redacted curated notes into .deja/memory.jsonl for sharing through git.deja forgetPermanently excludes sessions from the index across rebuilds.
What you need
- A local install of a supported coding agent with session logs on disk
- macOS, Linux or Windows
- Scoop, winget or Homebrew, or the install.sh script on macOS and Linux
- Node.js for the npx install option
Try asking
- Search my past sessions for jwt refresh token handling
- Hand off the current task and open work to Codex
- Find which agent session last changed line 42 of jwt.go
Good to know
- install.sh targets macOS and Linux only and exits on Windows; use Scoop or winget there.
- Indexing and search run locally, but network requests occur for explicit update and sync commands, version checks and configured embed endpoints.
- Setting DEJA_OFFLINE=1 disables the daily release version check.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to deja-vu — Coding Agent Memory & Session Search
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
deja-vu — Coding Agent Memory & Session Search: common questions
Does deja-vu need an API key or an LLM?
No. The source says indexing and search run locally with no remote inference, 0 LLM calls and $0 API cost.
Can it search history from before I installed it?
Yes. The source says existing transcripts across all fifty-three agents are searchable immediately without capture daemons or API keys.
Does it keep secrets out of the index?
Known credential shapes such as cloud keys, bearer tokens, JWTs and PEM blocks are replaced with [redacted:<kind>] at index time.
Is deja-vu — Coding Agent Memory & Session Search the official server?
deja-vu — Coding Agent Memory & Session Search is a community project by vshulcz, not verified by a company domain.
Is deja-vu — Coding Agent Memory & Session Search free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is deja-vu — Coding Agent Memory & Session Search safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to deja-vu — Coding Agent Memory & Session Search?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does deja-vu — Coding Agent Memory & Session Search work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
