Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Pi Deja

MCP server by vshulcz Verified · npm:@vshulcz

Pi Deja indexes the session logs that coding agents already keep on disk, so past work can be searched and recalled. It runs locally with no LLM calls and is aimed at developers who use several coding agents.

  • Score 90
  • 1.7k stars
  • 614 a week
  • MIT
  • Updated

Install Pi Deja

Built from the published package, never by AI.

claude mcp add pi-deja -- npx -y @vshulcz/pi-deja

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Pi Deja in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pi-deja block.

About

Pi Deja is a memory layer for coding agents. It reads the session logs that agents such as pi, Claude Code, Codex, Cursor and OpenCode already store on disk, and indexes them in place into a local append-only index under ~/.cache/deja. The source states that indexing and search run locally, with no LLM calls and no API key.

The index can be used from a terminal TUI, a CLI, an MCP server and lifecycle hooks. Past sessions can be recalled at session start and on each prompt. Users can hand off goals and open work between agents, recover overwritten uncommitted edits, and trace lines back to the sessions that wrote them. Credentials are redacted at index time. It suits developers who work with several coding agents and want history from before the tool was installed.

Written from the project's README and checked against it.

Tools it gives your assistant

  • deja <query>Searches all indexed agent sessions with multi-word and quoted-phrase matching.
  • deja handoffTransfers goal, constraints, touched files and open work between agents.
  • deja restoreRecovers an edit span that was replaced before a git commit.
  • 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 indexed sessions.
  • deja promoteMarks a past approach as rejected or accepted so later hits show its state.
  • deja repo addExports redacted curated notes into .deja/memory.jsonl for team sharing through git.
  • deja briefPrints a concise plain-text summary of recent sessions.
  • deja viewGenerates a standalone local HTML explorer for session history.
  • deja forgetPermanently excludes sessions from the index across rebuilds.

What you need

  • Session logs on disk from supported coding agents
  • macOS, Linux or Windows
  • Homebrew, Scoop, winget or npm, or the install script, for installation

Try asking

  • Search my past coding sessions for how we handled JWT refresh tokens.
  • Hand off the current goal and open work from Claude Code to Codex.
  • Find which agent session wrote line 42 of internal/auth/jwt.go.

Good to know

  • install.sh supports macOS and Linux only; Windows needs Scoop, winget or the zip.
  • Copilot CLI installs only the skill from the bundle unless deja install copilot-auto is run.
  • Network requests happen only for explicit update or sync commands, version checks and configured embed endpoints.

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, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Pi Deja

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

Pi Deja: common questions

Does Pi Deja send my coding sessions to a remote service?

The source says indexing and search run locally with no remote inference. Network requests occur only for explicit update or sync commands, version checks and configured embed endpoints.

Which coding agents does it read?

The source says it reads transcripts from fifty-three coding agents, including pi, Claude Code, Codex, Cursor, OpenCode and Gemini CLI.

Does it need an API key or LLM?

No. The source states that it needs no LLM or API key and reports 0 LLM calls and $0 API cost.

How do I install Pi Deja?

In Claude Code run claude mcp add pi-deja -- npx -y @vshulcz/pi-deja. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Pi Deja the official server?

Pi Deja is published by npm:@vshulcz from its verified domain in the official MCP Registry.

Is Pi Deja free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Pi Deja 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 Pi Deja?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does Pi Deja 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.

Pi Deja Install

Add to stack

Loading.