Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

deja-vu — Coding Agent Memory & Session Search

Latest version: v0.25.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
MCP server Transport: stdio Publisher: vshulcz
1,658 Stars
187 Forks
3 Versions
Go Repo language

Scan summary

deja-vu — Coding Agent Memory & Session Search was last scanned on 24 Nov 2026 at version 0.25.1. Risk score 60 of 100 (medium). High-severity rules fired.

  • Releases: 3 versions, all published within 6 days (19–24 Nov 2026).
  • Findings: 2 rules fired in version 0.25.1 (8 instances: 6 high, 2 medium). The score describes this version only.
  • MCP server: Runs over stdio.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.25.1 LATEST 24 Nov 2026 2 rules fired
0.25.0 21 Nov 2026 No rules fired
0.24.3 19 Nov 2026 2 rules fired

Rules fired in 0.25.1: 2

Findings

6 High 2 Medium

Findings for v0.25.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Instructs fetching and running remote code

The skill's instructions or bundled files tell the agent to download content from a remote location and run it. This pattern can be used to change behavior after a review, but it also appears in legitimate installers. Check the source.

HIGH

A bundled script writes to a persistence or credential location

MEDIUM
Checking access…

🔒 Create a free account to see all 8 findings with descriptions and instance counts

The score describes 0.25.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

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
$ deja "jwt refresh token"             # lexical + structural search across 52 coding agents
$ deja handoff --to codex              # transfer goal, decisions & open work across agents
$ deja restore internal/auth/jwt.go    # recover an edit span replaced before git commit
$ deja blame internal/auth/jwt.go:42   # trace which agent session wrote or replaced a line
$ deja audit                           # inspect store paths, cleanup risk & index health

Overview

Coding agents already persist transcripts to local JSONL and SQLite stores (~/.claude, ~/.codex, Cursor state.vscdb, OpenCode, Gemini CLI, Hermes, and the remaining supported harnesses). deja indexes those transcripts in place into an append-only inverted index under ~/.cache/deja and exposes history through a terminal TUI, CLI, MCP server, and lifecycle hooks.

  • Works retroactively from day one. Existing transcripts across all fifty-two agents are searchable immediately without capture daemons or API keys.
  • Survives /compact and context resets. Captures pre-compaction tasks, settled decisions, files, and verification commands and injects a bounded recovery packet on the next turn (details).
  • Cross-agent handoff (deja handoff). Transfers goal, standing constraints, touched files, passed checks, and open work between harnesses.
  • Code recovery and attribution (deja restore, deja blame, deja origin). Indexes recorded edit spans, opened files, and exit-coded shell commands to recover clobbered uncommitted changes and map commits/lines back to agent sessions.
  • Decision lifecycle and staleness tracking. deja promote <id> --state rejected flags reverted approaches on later hits (--state accepted takes the mark back); search warns when referenced workspace files changed after the session.
  • Team repository memory. deja repo add exports redacted curated notes into .deja/memory.jsonl with merge=union git merge semantics (details).
  • Incremental indexing & redaction. Append-only records.bin, token bucket overlays, and watermarked manifest.gob keep repeat freshness checks to ~50 ms and index footprint at ~4% on multi-GB stores; credentials are stripped at index time (architecture, privacy).

Interactive search

Running deja without arguments opens a terminal search over uncommitted-change sessions and project history (deja brief prints a plain-text summary; deja view generates a standalone local HTML explorer — live demo).

  • Navigate: ↑↓ selects a session, ↵ opens at the match, / searches within a transcript, ] / [ step turns, ^s toggles relevance/date sort (deja search --sort date).
  • Filter: prefix by agent (codex:), time (today, yesterday, week, month), or project (in:<project>).
  • Act: r resumes in the native harness; o hands off to another agent; tab switches between current project, all projects, and Deleted transcripts retained in the index (R restores, D deletes, ? shows bindings).

Install

install.sh installs the binary to ~/.local/bin; deja install --auto wires MCP recall and hooks into detected agents and builds the initial index (~10 s).

Alternative installers: brew install deja-vu, mise use -g aqua:vshulcz/deja-vu, nix run github:numtide/llm-agents.nix#deja-vu, go install github.com/vshulcz/deja-vu/cmd/deja@latest, or npx @vshulcz/deja-vu "query" to run without installing. Desktop MCP clients can open the signed .mcpb bundle from the latest release.

Codex CLI, opencode, Claude Code, Qwen, and OpenClaw also accept native marketplace/registry installs (alongside cursor-plugin/ for Cursor and antigravity-plugin/ for Antigravity; Copilot CLI installs only the skill from the bundle — run deja install copilot-auto for hooks and MCP):

codex plugin marketplace add https://github.com/vshulcz/deja-vu && codex plugin add deja-vu@deja-vu
opencode plugin add opencode-deja
claude plugin marketplace add vshulcz/deja-vu && claude plugin install deja-vu@deja-vu

install.sh targets macOS and Linux and exits with unsupported OS on Windows. On Windows, install via Scoop or winget, or extract deja-vu_<version>_windows_amd64.zip from the latest release onto PATH:

scoop install deja-vu
winget install vshulcz.deja-vu

Using the binary alone for indexing, search, show, ctx, and blame works with no harness wiring; running deja install to wire MCP and hooks is optional. Without wiring, deja doctor reports detected MCP targets as config missing or not-wired. deja warmup also installs ~/.agents/skills/deja-search/SKILL.md (skills/deja-search/SKILL.md) for harnesses that rely on CLI skills instead of MCP. deja install --all configures MCP without session-start hooks; see the agent setup guide.

Install also writes user-level guidance for the harnesses it detects: Claude Code, Codex, opencode, Gemini CLI, Antigravity, Qwen, Kimi Code, pi, Senpi, Copilot, VS Code Copilot Chat, Goose, OpenClaw, Hermes, Roo Code, omp, Amp, prime-agent, DeepSeek Harness, Continue, Crush, CodeBuddy Code, WorkBuddy, Zed, TRAE CLI, TRAE IDE, Muse Code, CodeWhale, ZCode and Junie each get it in their own guidance file (or under the configured XDG_CONFIG_HOME). Re-run rewrites deja's skill or marked block without changing surrounding user content. Use deja install --all --no-guidance to opt out; Grok Build, Devin CLI and Ante get the shared skill in ~/.agents/skills, which is what they read; the ~/.grok/GROK.md written beside it is for the unrelated community CLI that shares that directory. Cursor has no user-level instructions file, so it gets the shared skill in ~/.agents/skills — one of the four places Cursor reads skills from — read only when something looks relevant rather than every session. Kilo Code, gajae-code, Kimchi, Command Code, Cherry Studio and Reasonix get the skill, MiniMax Code gets it inside the plugin package, and Kiro the skill and a steering file, from their own install target.

Memory in the repository

To share vetted project decisions and dead ends through git, promote candidates from any local agent history into .deja/memory.jsonl:

$ deja repo candidates
4cd7e7bb9c rejected Reverted the retry with jitter: it broke idempotency because the sender re-signs each attempt with a new delivery id.  (session s1, claude 2026-08-03)
$ deja repo add 4cd7e7bb9c
added 1 entry to .deja/memory.jsonl
nothing is committed: review with `git diff .deja/` and commit it like code

Entries are redacted on write (secret matches are rejected), stored as sorted content-hashed JSON lines, and paired with merge=union in .deja/.gitattributes so parallel branch additions merge cleanly. Cloned repositories load these entries under untrusted framing ({"activations":{"auto":{"repo":false}}} in policy.json disables hook injection). See the repo memory guide.

In GitHub Actions, run deja directly in CI without a separate install step:

- uses: vshulcz/deja-vu@main
  with:
    args: audit --fail-on-secrets

Privacy

Indexing and search run locally with no remote inference. Network requests occur only for explicit deja update / deja sync ssh, deja doctor version checks, configured deja embed endpoints, and a daily release version check (DEJA_OFFLINE=1 or DEJA_NO_UPDATE_NOTICE=1 disables it).

Known credential shapes (cloud/provider keys, bearer tokens, JWTs, PEM/PGP blocks, credential URLs, CLI password flags, high-entropy assignments) are replaced at index time with [redacted:<kind>] while leaving surrounding text searchable. deja secrets [--scrub] scans and optionally rewrites credentials inside source transcripts (backing up originals). deja forget permanently excludes sessions across rebuilds, and ~/.config/deja/exclude filters projects or whole harnesses (harness:opencode). See docs/SECURITY-MODEL.md.

CLI & MCP

$ deja "jwt refresh token"
[claude] api        · Jul 8 · 8f31c0a9 — 2 matches
  login started failing after refresh token rotation; jwt kid mismatch in tests
  fixed by reloading jwks cache after rotateKey and adding a clock-skew test
[codex]  web        · Jul 1 · b77d91e2 — 1 match
  refresh token cookie needed SameSite=Lax in local callback flow
Command Purpose
deja <query> Multi-word AND + quoted-phrase search across all stores; falls back to word forms/close spellings when exact matches miss (code finds opencode). Supports --sort date, --harness, --project, --since, --role.
deja / deja brief Launch interactive TUI search, or print a concise non-interactive summary.
deja wip Reconstruct active task, settled points, edited files, and last command from the latest session here.
deja blame <path>[:line] List sessions that discussed or modified a file, or attribute a line via git commit + recorded edit spans (--attribution, --json, --git-note).
deja origin [rev\|range] Map commits or ranges to originating agent sessions and user turns (attributed, uncertain, unknown).
deja review [rev\|range] Surface prior sessions and curated notes for files touched in a working tree diff or commit range.
deja files <topic> Reverse lookup: files modified in sessions matching a topic.
deja how <tool> Observed command invocations and flags run previously in this environment.
deja fix <error> Recorded remediation commands that succeeded after the same failure output (never destructive actions).
deja friction Errors recurring across 3+ sessions by harness.
Command Purpose
deja ctx <query> Markdown digest with changed code spans, formatted for prompt injection.
deja recall <words> Same ~4 KB scoped snippet page returned by the MCP recall mode (DEJA_RECALL_GLOBAL=1 removes project bias).
deja resume <id> Reopen a session in its native agent (--app opens Codex desktop).
deja restore <path> Recover an uncommitted old_string edit span replaced by an agent without overwriting automatically.
deja promote <id> Promote a transcript conclusion to a curated note (--state accepted\|rejected\|superseded, --repo for .deja/notes.jsonl).
deja share <id> Export a redacted session digest for sharing.
deja sync export\|import\|ssh Watermarked, idempotent append-only history sync between machines.
deja repo candidates\|add Curate sanitized repository notes into .deja/memory.jsonl.
deja view / deja stats Generate a local standalone HTML explorer (deja view), audit history telemetry, or export profile heatmaps (deja stats --card, PNG converter).
deja secrets [--scrub] Report or scrub secret matches in source transcripts.
deja rules [sync\|candidates] Sync standing rules from ~/.config/deja/rules.md or inspect correction turns.
deja audit [--json] Inspect retention settings, purged sessions, recoverable spans, and hook/MCP wiring.
deja doctor [--deep] / deja mcp Verify store parity and run the stdio (--http for Streamable HTTP) MCP server.

Reference: CLI commands · JSON schema.

MCP tools

deja mcp exposes one tool, deja, multiplexed on mode (477 schema tokens/turn; legacy six-tool names remain accepted on tools/call for older configs). deja mcp --context-search serves a single context_search tool for Qwen Code's External Context MCP Profile v1 (details).

Tool Arguments Returns
deja mode, q, harness?, project?, limit? Mode-specific bounded payload below.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.vshulcz/claude-codex-cursor-agent-memory-deja-vu

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229