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
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | blame: every project, not just this one. | |
| mode | Yes | Which capability to use. | |
| path | No | blame: absolute, relative, or bare filename. | |
| tags | No | remember: optional navigation tags, searchable as #tag. | |
| text | No | remember: one durable fact, decision or conclusion. | |
| what | No | how: tool or target, e.g. 'go test', 'docker compose', a script name. | |
| error | No | fix: the failing output, verbatim. Multi-line pastes are fine. | |
| limit | No | Max results. | |
| query | No | recall and context: an exact token — error string, function name, flag — or the question in your own words. | |
| since | No | blame: age such as 30d or 24h. | |
| offset | No | recall: skip this many ranked matches, to page without re-ranking. | |
| harness | No | Optional filter, the agent that wrote the session: claude, codex, opencode, aider and 21 more — `deja sources` lists them. | |
| project | No | Optional project filter; for remember, where the note is filed (default notes). |