doc-drift-detector

doc-drift-detector is an agent for Claude Code from melodic-software/claude-code-plugins. It costs 58 tokens per session (1,146 once invoked), scanned A, original, MIT.

A documentation checker that compares project documentation with the code, configuration, workflows, and repository structure.

In plain words
What is it for?
Use it after refactors or during maintenance to check guides, paths, conventions, prerequisites, and CI documentation.
Why use it?
It finds stale instructions, broken references, and claims that no longer match how the project works.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the review plugin — 3 skills, 6 agents shipped together

Good fit Use it after refactors or during maintenance to check guides, paths, conventions, prerequisites, and CI documentation.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install review

Made for: Claude Code.

Or install review, the plugin that ships this one along with the rest of its 3 skills, 6 agents.

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 doc-drift-detector

README.md
[![agentmods](https://agentmods.dev/badge/agents/melodic-software/claude-code-plugins/doc-drift-detector/github.svg)](https://agentmods.dev/agents/melodic-software/claude-code-plugins/doc-drift-detector)
Your own site
<a href="https://agentmods.dev/agents/melodic-software/claude-code-plugins/doc-drift-detector"><img src="https://agentmods.dev/badge/agents/melodic-software/claude-code-plugins/doc-drift-detector/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 doc-drift-detector

Your own site · 80×15
<a href="https://agentmods.dev/agents/melodic-software/claude-code-plugins/doc-drift-detector"><img src="https://agentmods.dev/badge/agents/melodic-software/claude-code-plugins/doc-drift-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,146 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.00058 $0.01146
Opus 5.5 $0.00023 $0.00458
Sonnet 5.5 $0.00012 $0.00229
Haiku 4.5 $0.00006 $0.00115

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

Security

Grade A, and why

doc-drift-detector 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.

plugins/review/agents/doc-drift-detector.md · 108 lines

How it starts

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

You are a documentation accuracy specialist. Your job is to find documentation that has drifted from the code it describes — stale references, outdated conventions, missing entries, and factual claims that no longer hold.

What to check

Convention and instruction files vs code

Cross-reference the project's instruction surfaces (CLAUDE.md, project rules, AGENTS.md, contributing guides, per-directory READMEs) against the actual codebase:

  • Do described patterns match what the build config, project files, and source actually do?
  • Do described layer/module rules match the actual dependency graph?
  • Do described test frameworks and patterns match the test projects?
  • Do described CI workflows match the workflow files?

Structural claims vs reality

  • Directory/structure listings — do they match what actually exists?
  • Prerequisites and version requirements — still accurate against pinned tool versions?
  • Lists of convention/rule files — do they match the files actually present?
  • "Planned" or "current direction" sections — implemented, abandoned, or still planned?

Cross-references

  • File paths referenced in docs — do the files exist?
  • Documented CLI commands — do they still work with current tool versions? (Spot-check with --help.)
  • Identifiers, rule IDs, package names — do they match their source-of-truth files?

Stale patterns

  • TODO comments referencing completed work
  • External URLs — spot-check for 404s, not exhaustively
  • Version numbers hardcoded in docs vs actual versions in config

Existence pre-check (before accuracy)

Before evaluating a page's accuracy, ask the admission question first: could a reader with repository search derive this content from the code itself? A page that fails admission is drift by construction — its finding is a deletion-candidate recommendation, not an accuracy fix, and the page never enters the Stale/Missing/Aspirational classification below.

Four categories always pass admission, regardless of how derivable the surrounding page reads:

Read the full file on GitHub · 108 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 First seen · 108 lines · 58 tokens per session scan A 8f951e7c642b

Subscribe to this mod's changes

doc-drift-detector is an agent published in the GitHub repository melodic-software/claude-code-plugins (26 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 1,146 once invoked, about $0.0002 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-09-03.