recall — Claude Code command: what it does, how to install
recall searches your machine's past AI coding sessions across tools using the deja utility.
MIT ★ 1,645 updated 2026-10-24
.claude/commands/recall.mdWhat recall does
This command queries the deja MCP tool in recall mode using your exact search terms. It works best with precise tokens such as specific error messages, function names, file paths, or CLI flags. When a match is found but lacks detail, it follows up via context mode to pull more surrounding information.
If the deja MCP integration is not active, it executes the local fallback: deja --framed search -- "$ARGUMENTS". The output details what happened, including the date, project, tool, and final fix. If there are no hits, it reports that plainly instead of hallucinating answers.
Without either the deja CLI or its MCP tool present on the system, the command cannot run.
What it helps with
- find an exact error fix from an earlier coding session
- locate past decisions made across different AI tools
- retrieve forgotten CLI flags or helper functions
- check when and where a specific bug was solved
Example prompts for the agent
- /recall docker compose port clash
- /recall handleTokenRefresh in auth provider
- /recall vite build memory limit
How to install recall
Manually: put the files in place
.claude/commands/recall.mdCall it with /recall. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/recall.mdCall it with /prompts:recall. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/recall.prompt.mdManually: put the files in place
.gemini/commands/recall.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about recall
How to install recall in Claude Code?
Place the command file at .claude/commands/recall.md inside your repository.
What does the recall command do?
It looks through your local history of AI assistant sessions using deja and returns what was decided or fixed.
What dependencies does recall require?
You need the deja MCP tool configured or the deja executable installed in your terminal.
Source text
recall.md · MIT
--- name: recall description: Search this machine's past AI coding sessions (deja-vu) --- Search the user's own past sessions across every AI coding tool on this machine, then answer from what you find. Call the deja tool in `recall` mode with the user's words as the query — the most specific tokens win (an exact error string, a function name, a file path, a flag). If a result looks right but is too short to act on, follow up with `context` mode using a term from it. If the deja MCP tool is unavailable, fall back to the CLI: ```bash deja --framed search -- "$ARGUMENTS" ``` Answer with what actually happened in those sessions — when it was, which project and tool, what was decided or fixed. Say plainly if nothing matched rather than filling the gap from general knowledge.
© vshulcz · MIT · vshulcz/deja-vu