When running in Codex or ChatGPT Work, first read Codex integration.
In Claude Code or Cowork, read ${CLAUDE_PLUGIN_ROOT}/docs/claude.md first.
When the user asks to detect drift across all designs or a set of READMEs, the
goal is to identify all instances where the codebase has diverged or failed to
implement the specifications described by those designs or READMEs.
is provided. If not provided, ask the user to specify the target directory.
proposed changes, and specific filenames/symbols mentioned.
source tree. If paths aren't explicit, use code search or grep to
locate the relevant classes, functions, or API endpoints mentioned in
the doc. Prompt the user to add missing links to the document to make
future detection cheaper.
specified in the design.
patterns/libraries than proposed.
or what matches. If the code matches the design perfectly, output "No
drift detected."
{YYYY-MM-DD}_DRIFT_REPORT.mdusing your file-writing tool.
```markdown
```
name and the code doesn't have it, that is a reportable drift. Double
check for coverage. If there is some part of the logic that is not
referenced in a design or README, this is a reportable drift.
of the code, not relying on memory.
overflow.