Deja Vu logo

Deja Vu

by vshulcz

Indexes local coding-agent transcripts and recalls relevant decisions through MCP, hooks, terminal search, and optional SSH sync.

Install Deja Vu

Run the project’s own setup commands, in order.

Setup steps from the project

vshulcz/deja-vu installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh
    
  2. 2. Install
    deja install --auto
    
  3. 3. Add to Claude Code
    claude plugin marketplace add vshulcz/deja-vu && claude plugin install deja-vu@deja-vu
    
  4. 4. Add to Codex
    codex plugin marketplace add https://github.com/vshulcz/deja-vu && codex plugin add deja-vu@deja-vu
    
  5. 5. Add to OpenCode
    opencode plugin opencode-deja
    
  6. 6. Install
    scoop install deja-vu
    

Overview

vshulcz/deja-vu indexes session histories written by coding agents such as Claude Code, Codex CLI, Cursor, Gemini CLI, and OpenCode. It exposes recall through MCP and hooks, including automatic context at session start, before edits or commands, and after failures. Local lexical search, code-change tracking, credential redaction, and deleted-session recovery make it useful when agents need access to earlier project decisions without sending data to a hosted memory service. Reach for it when several agents share repositories or when prior debugging work is repeatedly rediscovered.

Use cases

  • Recall earlier fixes across Claude Code, Codex, Cursor, and other agents
  • Search prior decisions before editing files or running commands
  • Resume or hand off an older coding session between agents
  • Recover deleted transcripts and inspect indexed file changes
  • Sync local agent memory across machines over SSH

Key features

  • Local lexical indexing of coding-agent session histories
  • MCP recall and automatic hook-based context injection
  • Credential redaction during indexing
  • Search, resume, handoff, and deleted-session recovery
  • File-change tracking with blame and restore commands
  • Cross-machine synchronization over SSH

Tools1

What Deja Vu lets your agent do. Expand a tool for its parameters.

Self-reported~8 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

49/50 checks healthy over the last 90d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 21d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.4kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed1Callable tools this server registers over MCP.
Directory activity14 viewsConfig copies, upvotes, and views on AllMCPs.

How Deja Vu works

What vshulcz/deja-vu does

vshulcz/deja-vu builds a local index from coding-agent transcripts already stored on disk. It is designed for repositories where work is spread across multiple agent sessions, including Claude Code, Codex CLI, Cursor, OpenClaw, Gemini CLI, OpenCode, and other supported harnesses. Queries can retrieve earlier discussions, decisions, commands, and file changes without requiring another model or a cloud account.

The indexed history is available through MCP, terminal commands, hooks, and a browser-viewable local export. Its MCP surface exposes a deja capability whose behavior depends on the selected mode. Agents can use the memory layer directly, while hooks can inject relevant history into lifecycle events.

How it works

The installer detects supported agents, connects their MCP and hook configuration, and creates an initial local index. Subsequent sessions can receive relevant history automatically at startup. Recall can also run before a file edit or command and after a command failure, helping an agent check earlier solutions at the point where they matter.

Search is lexical and can span the histories of multiple agents. The terminal interface prioritizes sessions related to uncommitted changes and recent work in the current project, with filters for agent, time, and project. A session can be opened at a matching turn, resumed in its original agent, or handed to another agent with its goal, decisions, and open work.

The index includes more than conversational text: opened files, command exit codes, and exact edit spans are tracked. Commands such as deja blame and deja restore support investigation of file history. Deleted sessions remain recoverable in the local store until explicitly removed. Credentials are redacted while content is indexed.

Setup and configuration

The shell installer places the deja binary in ~/.local/bin. A typical setup is:

Terminal
curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh
deja install --auto

deja install --auto wires MCP recall and hooks into detected agents and builds the initial index. Homebrew, Nix, Go, npm, Windows package managers, plugin marketplaces, and an MCP bundle from the latest release are also available. Running npx @vshulcz/deja-vu sources can inspect existing sources without installing the binary, while npx @vshulcz/deja-vu "query" provides a no-install query path.

deja opens the terminal search interface by default. Use deja brief or set DEJA_TUI=0 for plain-text output. deja view exports sessions, promoted notes, and the recall audit trail into one local HTML file. Cross-machine synchronization is available over SSH.

Tools and capabilities

  • Search histories across agents, projects, dates, and relevance.
  • Recall prior decisions through MCP and lifecycle hooks.
  • Open a result at the matching turn, resume it in its native agent, or hand it to another agent.
  • Inspect file-level history with blame information and restore paths from indexed changes.
  • Mark decisions as accepted or rejected and surface when touched files have changed since a session.
  • Recover sessions that an agent deleted, or permanently remove them with deja delete <id>.
  • Export a local browser view and generate activity statistics or an SVG card.

Limitations and notes

The memory store is local by default and uses no LLM calls or cloud account. Automatic credential redaction happens at index time, but the indexed material still represents local agent history and should be protected accordingly. Recall depends on the session files produced by the agents being connected; deja install --auto is intended to configure detected agents rather than provide a hosted history source.

Compaction can preserve decisions less reliably than the original transcript, so the tool retains the remaining indexed history to supplement summaries. The terminal interface is primarily aimed at local development workflows, and browser export produces a local HTML file rather than a hosted workspace.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Deja Vu

vshulcz/deja-vu is an MCP server that connects coding agents to their locally stored session histories. Its main `deja` capability supports lexical recall and search, while hooks can provide relevant history at session start, before edits or commands, and after failures. It indexes locally without LLM calls or a cloud account.

Run the shell installer and then `deja install --auto`. The installer places the binary in `~/.local/bin`; the automatic setup configures MCP recall and hooks for detected agents and builds an initial index. Homebrew, Nix, Go, npm, Windows package managers, and plugin bundles are also supported.

Yes, Cursor is one of the named supported agents. The repository also includes a Cursor plugin, and automatic installation can configure detected agents for MCP recall and hooks.

It builds a local lexical index from agent transcripts and searches across agents, projects, dates, and relevance. The terminal interface can open a session at a matching turn, while MCP and hooks make relevant prior history available during later coding sessions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDeja Vu AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/vshulcz-deja-vu?style=directory)](https://allmcps.com/mcp/vshulcz-deja-vu)
HTML Embed
<a href="https://allmcps.com/mcp/vshulcz-deja-vu"><img src="https://allmcps.com/api/badge/vshulcz-deja-vu?style=directory" alt="Deja Vu on AllMCPs" /></a>