← Back to Leaderboard
Dvshulcz

vshulcz/deja-vu

A local Go MCP server for coding-agent history, edit recovery, and handoff

Engineering Health (Methodology)
A+ · 92/100
Maintenance Activity
● Updated today
Latest Release
v0.25.3
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity20/20
DockerMCPLocal AICLISelf-Hosted
Total Stars
★ 1,728
24h Growth
+5
7d Growth
+50
Forks
193

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

vshulcz/deja-vu Star History (2026-07-13 - 2026-12-03) ALL-TIME STAR HISTORY (2026-07 – 2026-12) +1.7k in 143d · avg +12/day 1.8k 913 0 2026-07-13: ★ 12026-07-25: ★ 4662026-08-08: ★ 6012026-08-22: ★ 6482026-09-05: ★ 7682026-09-19: ★ 8592026-10-03: ★ 1,1092026-10-17: ★ 1,2222026-10-31: ★ 1,3302026-11-09: ★ 1,4712026-11-18: ★ 1,6152026-11-27: ★ 1,6832026-12-03: ★ 1,728 ★ 1.7k 07-13 09-22 12-03

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Déjà vu is a Go CLI and self-hosted MCP server that indexes the transcripts coding agents already write to local JSONL and SQLite stores. Its append-only inverted index lives under ~/.cache/deja. An append-only records.bin, token-bucket overlays, and watermarks in manifest.gob support incremental refreshes. The CLI, TUI, MCP server, and lifecycle hooks share that index rather than requiring separate history stores for each client.

The entry point is ./cmd/deja; go.mod declares Go 1.25. The root npm manifest packages the DeepSeek Harness integration via @vshulcz/deja-vu; Node 18+ is a requirement for that package, not for running the Go binary. The default deja mcp server exposes one mode-dispatched deja tool over stdio. A separate --context-search mode serves Qwen Code’s External Context MCP profile.

Key Capabilities & Differentiators

Search combines lexical matching with transcript structure and supports scoping by project, agent, date, and role. Integrations span 53 coding clients, but transcript ingestion, automatic recall, and native resume are not uniform. For example, TRAE IDE’s encrypted database is not ingested even though MCP and skills can be wired. Compaction hooks carry forward tasks, decisions, files, and verification commands; cross-agent handoff packages the goal, constraints, touched files, passed checks, and remaining work.

restore recovers overwritten code from recorded edit spans; blame ties lines to sessions, while origin maps commits or ranges and distinguishes attributed, uncertain, and unknown results. Recall payloads are capped at 4 KB. Benchmark results include 0.7–0.8 ms for in-process lookups and 88.9% hit@1 on the cleaned 470-question LongMemEval-S set. Neither figure measures end-to-end client latency or guarantees recall quality on a particular team’s history.

Trade-offs & Limitations

Native client history is simpler for single-agent work; Git remains the source of truth for committed changes. Déjà vu fills the gap between them by searching across agents and recovering uncommitted edits when those edits were recorded. It trades the centralized access of a hosted memory service for local control and retrieval that does not depend on remote inference. Coverage is bounded by what each client saves, what its reader supports, and what remains in the source store or local index.

Local storage still needs governance: the index can retain transcripts after their originals are deleted, and pattern-based redaction cannot make every transcript or note safe to share. Use policy.json to control which origins can surface in search, MCP, or automatic recall, and review .deja/memory.jsonl before committing it. MIT licensing permits commercial use, but does not settle permissions or retention obligations for indexed data.

Hardware & Deployment Guide

Start with a tagged binary or package-manager install and validate search before changing client settings. deja install --auto wires MCP and hooks into detected clients; binary-only search needs neither. The Dockerfile builds ./cmd/deja with CGO_ENABLED=0, installs sqlite in the Alpine runtime image, and defaults to deja mcp over stdio. A container needs read access to the host transcripts, and persisting its index avoids rebuilding it on each fresh container. Default retrieval needs no GPU, model server, or API key.

Local retrieval does not mean every command is offline: release checks, explicit update and SSH sync, and configured embedding endpoints can use the network. DEJA_OFFLINE=1 disables the release check; review the other paths separately for isolated deployments. Release v0.25.2 added persistent config.toml defaults and Unix-socket MCP. v0.25.3 added pre-execution plan checks against recorded project decisions and kept live rules gating opt-in.

Incremental index: Append-only records.bin, token-bucket overlays, and watermarks in manifest.gob track transcript changes.
MCP interface: The default endpoint exposes one deja tool with mode-based dispatch; recall responses are capped at 4 KB.
Edit provenance: restore, blame, and origin use recorded edit spans to recover changes and trace lines or commits back to sessions.
Context continuity: Pre-compaction hooks capture decisions, files, and verification commands for bounded recall on the next turn.
Git-backed memory: .deja/memory.jsonl stores curated, content-hashed notes with merge=union; imported notes are framed as untrusted.
Data controls: Index-time credential redaction, project and harness exclusions, and deja forget serve different retention needs.
Best For

Developers who switch between coding agents, lose context during compaction, or need to recover uncommitted work from local transcripts. Teams can also share reviewed decisions through Git without sharing raw logs.

Skip If

Native history already meets your needs, your primary client does not expose readable local transcripts, or you require one centrally managed archive of raw sessions.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerMCPLocal AICLI
npx @vshulcz/deja-vu audit --secrets               # scan local logs for expiry & leaked keys, no install
npx @vshulcz/deja-vu install --auto                # install and wire detected agents
curl -fsSL https://raw.githubusercontent.com/vshulcz/deja-vu/main/install.sh | sh && deja install --auto
claude plugin marketplace add vshulcz/deja-vu && claude plugin install deja-vu@deja-vu
codex plugin marketplace add https://github.com/vshulcz/deja-vu && codex plugin add deja-vu@deja-vu
gemini extensions install https://github.com/vshulcz/deja-vu
opencode plugin add opencode-deja

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
deja-vu ★1.7k+50GoMITA local Go MCP server for coding-agent history, edit recovery, and handoff
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
taste-skill125.3k+2.9kJavaScriptMITAn agent skill for directing company website design and checking builds in a bro
agent-skills122.5k+1.7kJavaScriptMITA modular skill pack for consistent coding-agent workflows, from spec to release

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/vshulcz/deja-vu.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

vshulcz/deja-vu Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about deja-vu

Do I need to install hooks in every coding agent?

No. The standalone binary can index and search existing local transcripts without modifying agent configuration. Connect deja mcp when a client needs on-demand recall, and add lifecycle hooks only when you want automatic context injection or post-compaction recovery. Integration support varies by client.

What hardware does it need, and what does the latency figure cover?

No GPU, VRAM allocation, or model server is required for the default lexical and structural retrieval path. Size CPU time and disk space around the volume and growth of local transcripts. The measured 0.7–0.8 ms is for in-process lookups, not first-time indexing or full MCP round trips. Optional embedding endpoints are a separate deployment choice.

Can a company self-host it, and what still needs a compliance review?

The repository is MIT-licensed, allowing commercial self-hosting and redistribution subject to preserving the required notices. That license does not grant rights to the data in transcripts. Review access and retention for source logs, cached copies of deleted sessions, and notes committed to Git. Disable optional network paths if air-gapped operation is required.

When is it a better fit than native history or Git?

Use native history when you work in one client and mainly need to resume sessions. Use Git for committed code and formal project records. Choose déjà vu when you need to search across agents, recover recorded uncommitted edits, or recall project decisions in a new session. If centralized access to raw transcripts is a requirement, assess a centralized memory service instead.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining vshulcz/deja-vu? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature vshulcz/deja-vu on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare