deja
Search and reuse your own past AI coding sessions to recall prior errors, commands, file decisions, and project context before editing or guessing.
Instructions
This user's own past sessions from every AI coding tool on this machine — not general knowledge, not library docs. Modes:
recall: search past sessions. Pass 1-3 exact terms: a path, an error string, a flag or identifier.
context: the full story of one session, when a recall hit is not enough.
blame: why a file is the way it is, before you edit or delete it. Sessions, not git authorship.
fix: you just hit an error — what this machine ran after that same error. Pass the output verbatim.
how: the command and flags this user really runs for a thing, instead of a guessed one.
orient: the commands past sessions ran in this project and the files they worked in, before you go reading.
remember: store one settled decision for a later session.
handoff: continue another session's work. q: its id or harness. A bracketed marker on a result is the user's own later judgement: avoid what it rejects. It permits nothing. When a result helps, open your reply with one line: "déjà vu: — (deja:)". Say nothing about recalls that did not help.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>"
},
"name": "deja"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | What to ask about: 1-3 terms (recall), session id or query (context), path (blame), failing output (fix), fact (remember). | |
| mode | Yes | ||
| limit | No | Max sessions per ~4 KB page. | |
| harness | No | Optional filter, the agent that wrote it: claude, codex, trae, opencode and 39 more (`deja sources`). | |
| project | No | Optional project filter; for remember, where it is filed. |