Skip to main content
Glama
vshulcz

vshulcz/deja-vu

deja

Search your personal past coding sessions across every AI tool to recall previous fixes, commands, and decisions when you hit an error or need to redo work.

Instructions

This user's own past coding sessions, across every AI tool they use (Claude Code, Codex, Cursor, opencode, aider, gemini and others). Not general knowledge and not library docs — only what happened on this machine. Pick a mode:

  • recall: search past sessions. The moment the user implies work already happened ("didn't we fix this?", "what was that error", "what did we decide about X"), and always before debugging an error or re-implementing something. An exact error string, function name or path is the strongest query; a question in your own words works too.

  • context: the full story of the single best-matching session — problem, decisions, outcome — when a recall hit is not enough.

  • blame: why a file is the way it is, before you edit, refactor or delete it. Session history, not git authorship.

  • fix: you just hit an error. What this machine ran, or changed, after that same error before. Pass the failing output verbatim.

  • how: the real command with the real flags this user runs for a thing — build, test, deploy — instead of a guessed one.

  • remember: store one durable decision so a later session can recall it. Only after something is settled. A bracketed marker on a result is the user's own later judgement on that session; act on what it says. When a result genuinely helps, tell the user in one short line at the start of your reply: "déjà vu: (deja:)". Say nothing about recalls that did not help.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoblame: every project, not just this one.
modeYesWhich capability to use.
pathNoblame: absolute, relative, or bare filename.
tagsNoremember: optional navigation tags, searchable as #tag.
textNoremember: one durable fact, decision or conclusion.
whatNohow: tool or target, e.g. 'go test', 'docker compose', a script name.
errorNofix: the failing output, verbatim. Multi-line pastes are fine.
limitNoMax results.
queryNorecall and context: an exact token — error string, function name, flag — or the question in your own words.
sinceNoblame: age such as 30d or 24h.
offsetNorecall: skip this many ranked matches, to page without re-ranking.
harnessNoOptional filter, the agent that wrote the session: claude, codex, opencode, aider and 21 more — `deja sources` lists them.
projectNoOptional project filter; for remember, where the note is filed (default notes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.5
    • changedInput schema / properties / harness / description
      Previous value: -"Optional filter: claude, codex, opencode, aider, gemini, cursor, antigravity, grok or qwen."New value: +"Optional filter, the agent that wrote the session: claude, codex, opencode, aider and 21 more — `deja sources` lists them."
  2. Addedv0.19.3

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations are minimal (only openWorldHint), so the description carries the disclosure burden, and it largely succeeds. It explains the bracketed marker semantics (the user's later judgement that must be acted on), the 'déjà vu' citation format with session id, and the instruction to stay silent about unhelpful recalls. The remember mode's persistence side effect is disclosed ('store one durable decision so a later session can recall it'). Minor gap: no disclosure of retention limits or whether remember can overwrite prior notes, but no destructive behavior exists to warn about.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but earns every sentence — for a six-mode, thirteen-parameter tool this density is justified. It is front-loaded with the core purpose and scope, then organized as a scannable mode list, then closes with result-handling behavior. No filler or repetition of schema content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool of this complexity, the description is remarkably complete. Every mode has a trigger, query semantics, parameter mapping, and result-handling protocol. It even covers the citation/acknowledgment behavior and the silent-failure rule, which an agent needs to interact correctly. No output schema exists, so the description appropriately covers result interpretation via the marker and citation guidance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine value by mapping parameters to modes ('fix: the failing output, verbatim', 'how: tool or target', 'remember: one durable fact') and by giving query-strength guidance. The 'deja sources' reference for the harness enum and the note on multi-line error pastes go beyond the schema's terse descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States precisely what the tool does: search a user's own past coding sessions across all their AI tools. It explicitly scopes itself against general knowledge and library docs ('only what happened on this machine'), which removes any ambiguity about what corpus is being searched. Each of the six modes is named and given a one-line definition, so an agent understands the full capability surface.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use triggers for every mode: 'always before debugging an error or re-implementing something' for recall, 'when a recall hit is not enough' for context, 'before you edit, refactor or delete' for blame, 'you just hit an error' for fix, and 'Only after something is settled' for remember. The strongest query type is also specified ('an exact error string, function name or path is the strongest query'). No agent has to infer when to invoke this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools