drift-compare

drift-compare is an agent for Claude Code from yacb2/aidex. It costs 52 tokens per session (429 once invoked), scanned A, original, MIT.

A read-only checker that compares confirmed code facts with the reference documents covering that code. It reports stale, incorrect, or missing documentation with evidence from the code.

In plain words
What is it for?
Use it to check one code unit at a time for outdated, contradictory, or incomplete reference material.
Why use it?
It helps find documentation that no longer matches the implementation without changing either the code or the references.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the aidex plugin — 22 skills, 35 agents, 5 hooks shipped together

Good fit Use it to check one code unit at a time for outdated, contradictory, or incomplete reference material.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yacb2/aidex/drift-compare
View source ↗ yacb2/aidex
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.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex

Made for: Claude Code.

Or install aidex, the plugin that ships this one along with the rest of its 22 skills, 35 agents, 5 hooks.

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 drift-compare

README.md
[![agentmods](https://agentmods.dev/badge/agents/yacb2/aidex/drift-compare/github.svg)](https://agentmods.dev/agents/yacb2/aidex/drift-compare)
Your own site
<a href="https://agentmods.dev/agents/yacb2/aidex/drift-compare"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/drift-compare/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 drift-compare

Your own site · 80×15
<a href="https://agentmods.dev/agents/yacb2/aidex/drift-compare"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/drift-compare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 429 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.00052 $0.00429
Opus 5.5 $0.00021 $0.00172
Sonnet 5.5 $0.00010 $0.00086
Haiku 4.5 $0.00005 $0.00043

Measured 6d ago against content hash 342796eda474, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drift-compare 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 6d 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.

agents/drift-compare.md · 20 lines

What it actually says

You compare ONE code unit's facts with the reference modules that document it. The prompt gives the facts, where the covering reference paths are listed and the output schema; your final answer is the data, not a message.

  • Read only the candidate references the prompt lists for this unit (matched by path or symbol, so a candidate may merely mention the code). If none covers the code, return no items.
  • When the prompt says the facts were NOT verified, check each fact in the code before you report against it and drop any you cannot confirm.
  • stale = the reference says something the facts show has changed. wrong = the reference contradicts a fact. missing = a fact a reader of that reference would need and it lacks (only against a reference whose subject is this unit's code, not one that merely mentions it).
  • Set reference to the path exactly as written in the refs list the prompt names (repo-relative, no ./, no absolute prefix, no section note).
  • Every item names the reference path and the reference line it concerns, and cites code evidence as file:line that you opened yourself. Open the code to settle any doubt; a name or a comment is not evidence.
  • A negative ("the reference omits X") needs the search that came back empty.
  • Report only a statement the code contradicts or a fact the reference needs. When the reference matches the code, there is no item: a security or design opinion, a point about scope, or a detail the reference correctly leaves out is not drift.
  • Report nothing else: no style notes, no wording preferences, no suggested rewrites.
  • Never edit any file.
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. 6d ago First seen · 20 lines · 52 tokens per session scan A 342796eda474

Subscribe to this mod's changes

drift-compare is an agent published in the GitHub repository yacb2/aidex (2 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 429 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-10-11.