dejavu

dejavu is a skill for Claude Code, Codex from WhiteBite/opencode-dejavu. It costs 99 tokens per session (1,122 once invoked), scanned A, original, MIT.

An error-tracking rulebook for a coding-agent add-on that watches tool calls and remembers failures across sessions. It warns or blocks when the same mistake is repeated.

In plain words
What is it for?
It helps respond to failure reminders, diagnose blocked tool calls, and improve the rules after finding the underlying cause.
Why use it?
It prevents the agent from silently retrying a command that has already failed. The guidance helps identify the cause and change the approach.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit It helps respond to failure reminders, diagnose blocked tool calls, and improve the rules after finding the underlying cause.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/whitebite/opencode-dejavu/dejavu
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add WhiteBite/opencode-dejavu --skill dejavu
Clone the repo
git clone --depth 1 https://github.com/WhiteBite/opencode-dejavu

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dejavu

README.md
[![agentmods](https://agentmods.dev/badge/skills/whitebite/opencode-dejavu/dejavu/github.svg)](https://agentmods.dev/skills/whitebite/opencode-dejavu/dejavu)
Your own site
<a href="https://agentmods.dev/skills/whitebite/opencode-dejavu/dejavu"><img src="https://agentmods.dev/badge/skills/whitebite/opencode-dejavu/dejavu/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dejavu

Your own site · 80×15
<a href="https://agentmods.dev/skills/whitebite/opencode-dejavu/dejavu"><img src="https://agentmods.dev/badge/skills/whitebite/opencode-dejavu/dejavu.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.01122
Opus 5.5 $0.00040 $0.00449
Sonnet 5.5 $0.00020 $0.00224
Haiku 4.5 $0.00010 $0.00112

Measured 1mo ago against content hash da768c8af7b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dejavu scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dejavu/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dejavu — recurring-error gates

dejavu is an OpenCode plugin that watches tool calls fail, counts recurrences across sessions, and promotes frequent failures into gates. It is your external long-term memory for mistakes: what failed before will not silently fail again.

You do not manage dejavu's detection — it is mechanical. Your job is to react correctly and to improve gate quality when you learn something.

When you get [dejavu] REMINDER

The call you were about to make has failed repeatedly in the past. The call was aborted before execution.

  1. Do not retry the identical call. That is exactly the behavior the gate exists to prevent.
  2. Read Last failure: and Correction: in the message.
  3. Diagnose the root cause (read the relevant file, check the environment, run a diagnostic command).
  4. Retry with a changed approach — a different command, fixed arguments, or a prerequisite step first.
  5. If you are confident the situation changed (e.g. you just installed the missing dependency), retry as-is — a SUCCESS clears your session from the gate's chain. On a blocking gate, a repeated failure after a reminder escalates it to a hard block within this session; a reminding gate (diagnostics/iteration commands) never blocks, it only reminds.
  6. dejavu:proceed (as a trailing COMMENT inside the call — # dejavu:proceed) bypasses the gate. Use it ONLY when the user explicitly asked you to force the operation, or you have concrete proof the gate is stale. Every override is logged; on blocking gates it is ALSO counted on the gate, and repeated overrides demote the gate (your bypasses are feedback: a gate everyone works around retires itself). If you override and the call SUCCEEDS, say so when improving the gate — that proves it stale.

When you get [dejavu] BLOCKED

You were reminded, retried, and it failed again. The gate is now hard in this session.

  • Do not attempt the same call again in any form that matches the pattern.
  • Tell the user what is blocked and why (the message contains evidence and the gate file path).
  • Choose a fundamentally different approach to reach the goal.

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +5 lines da768c8af7b5
  2. 1mo ago First seen · 49 lines · 99 tokens per session scan A a97154e68a0e

Subscribe to this mod's changes

dejavu is a skill published in the GitHub repository WhiteBite/opencode-dejavu (6 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 1,122 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.