Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

deja-history

Skill by sickn33

Searches this machine's past AI coding sessions across forty-three agents, including Claude Code, Codex, Cursor and Gemini CLI. It is meant to run before editing, debugging, or saying something does not exist. Everything runs locally through the deja binary.

  • Score 91
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install deja-history

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/deja-history ~/.claude/skills/deja-history

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install deja-history in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

deja-history is an agent skill that tells an AI assistant to search the local deja index before it re-derives past work. The index covers AI coding sessions from forty-three agents on the user's machine, including Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, Copilot, Aider, Cline and Kiro. The skill calls the deja MCP tool with modes such as recall, context, blame, fix, how, orient, remember and handoff. If the MCP tool is not loaded, the same index can be queried from the shell with deja recall and related read-only commands.

The skill is written for developers who work with several AI coding agents and want earlier fixes, decisions and commands to be found before the assistant repeats them. It asks the assistant to check history before a first edit, before recommending a tool, and before claiming that something on the machine is missing. Recalled transcripts are treated as reference data, not instructions.

Written from the project's SKILL.md and checked against it.

What it can do

  • recallSearches past sessions with the most specific token available, such as an error string or file path.
  • contextReturns a full digest of the best-matching session, including the code it changed.
  • blameShows prior sessions that discussed or modified a file before it is edited or deleted.
  • fixFinds commands that followed the same failing output in earlier sessions where it was resolved.
  • howLists the real commands and flags the machine has used for a build, test, deploy or script.
  • orientShows commands and files that past sessions used in the current project.
  • rememberStores one settled decision as a single self-contained fact.
  • handoffContinues another session's work by session ID or harness name.

What you need

  • The deja binary, version v0.24.0 or newer
  • deja initialized once with deja init
  • Either the deja MCP tool in the host agent or shell access
  • Local AI coding session history on the machine

Try asking

  • We hit the "database is locked" error before. How did we fix it?
  • Why does internal/store/fts.go have a custom tokenizer wrapper?
  • What build and test commands does this project actually run?

Good to know

  • Result windows are bounded, so hit counts should not be treated as a complete audit.
  • Only sessions present on the current machine are searched unless exported and imported.
  • If deja is not installed or the index is empty, history search is unavailable.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/deja-history/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE1 KB
  • SKILL.md8 KB

Alternatives to deja-history

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

deja-history: common questions

Does deja-history send my session history anywhere?

The source says recall, context, blame, fix, how and orient queries are local and read-only, and no transcript data leaves the machine.

Does it need an account or API key?

The source says no account, API key or network connection is required, because indexing and search run locally.

Can it search sessions from another computer?

Not by default. Sessions on another machine are visible only after they are exported with deja export and imported with deja import.

How do I install deja-history?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is deja-history free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is deja-history safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to deja-history?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

deja-history Install

Add to stack

Loading.