Get Guidance Drift Tool
get-guidance-drift-toolHas this repo's agent guidance file drifted from the repo it describes? A CLAUDE.md or
AGENTS.md that lists the directories under app/Domain (or any other path) is making a
claim that decays silently — the list was right when written, the code kept moving, and
nothing fails when the two diverge. Agents read the stale list as truth, so a rotted
guidance file is worse than none: it teaches the wrong shape of the codebase with full
confidence.
For each connected repository this returns the guidance file found, when it last changed, and every directory whose listing has gone stale — how many entries the file documents, how many are actually there now, and examples of what is missing. Call it before trusting a guidance file, when onboarding an agent onto an unfamiliar repo, or when deciding whether a hand-maintained inventory should be replaced by a get-team-context call.
Only ENUMERATIONS are flagged. A file that mentions a path in passing is referencing it, not claiming an inventory, and is never reported. A directory is flagged only when the file already names several of its children (so it is holding a list) and is missing several more. Repos with no guidance file, BitBucket repos, and unreadable repos report insufficient_data — never a false drift. Archived repositories are skipped. Use get-repo-readiness for whether a guidance file exists at all; this tool judges whether the one that exists is still true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | No | Optional "owner/name" (or bare repo name) to assess a single repository instead of every repository on the team. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | Team name. | |
| rollup | Yes | Team rollup: repositories_assessed, repositories_drifted, and undocumented_entries (the total number of directory entries no guidance file mentions). | |
| repositories | Yes | Per-repository drift: repository slug, guidance_file (CLAUDE.md/AGENTS.md), last_updated date and days_since_update, status (drifted|current|insufficient_data), drifted_directories (path, documented, present, undocumented, examples), and a recommendation. Most-drifted repositories first. |