deja-vu
Lets your AI agent search the saved session history of your coding agents so it stops repeating past debugging.
1.4k stars on GitHubby vshulczLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add deja-vu -- npx -y @vshulcz/deja-vu mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Have we dealt with jwt refresh rotation before?
Which session changed this line in auth.go, and why?
What it is
deja-vu indexes the session histories that 43 coding agents already save to disk, such as Claude Code, Codex and Cursor. It then hands relevant past sessions back to your agent over MCP and hooks. It runs locally as one Go binary with no LLM calls.
What it can do
deja recall: bring back relevant past sessionsdeja ctx: get context from historydeja blame: trace a file line back to the session that changed itdeja restore: restore a file path from historydeja promote: mark a decision as accepted or rejecteddeja repo add: share chosen decisions in the repositorydeja view: export history to one local HTML file
When to use
- βΊWhen you fixed a bug in one agent and want another agent to remember the fix.
- βΊWhen a context compaction made your agent forget decisions or commands.
- βΊWhen you want teammates' agents to recall decisions stored in the repository.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
memos-memory-guideTeaches your agent to search your past conversations and shared team memory when you refer to earlier chats, your preferences, or past decisions.memory-searchLets your agent search past conversations and decisions by meaning, keyword or code symbol, so earlier context can be recalled across sessions.memory-searchLets your agent search its saved session history in a SQLite database for patterns across sessions, such as repeated errors or past commands.Frequently asked questions
Is it free and open source?
Yes. The project uses an open license file and needs no cloud account.
Does it send my data anywhere?
The readme says it is local and private by default, with zero LLM calls and automatic credential redaction at index time.
Which agents does it work with?
43 agents, including Claude Code, Codex, Cursor, OpenCode, Gemini CLI and OpenClaw.
Does it work on Windows?
Yes, through Scoop, winget or a release zip. The install script itself is for macOS and Linux.
How long does setup take?
The readme says the initial index takes about 10 seconds after deja install --auto.
Can I try it without installing?
Yes, with npx @vshulcz/deja-vu sources.
If it does not work
- βΊRun deja doctor to see which agents are wired; binary-only setups show config missing, which is expected.
- βΊOn Windows the shell install script exits with unsupported OS; use Scoop or winget instead.
- βΊOpen a new agent session after deja install so the hooks and MCP config load.
5 new skills a week. 1 minute to read.