Every fleet repo's CLAUDE.md is now a pointer, in several shapes:
"Read [AGENTS.md](AGENTS.md)", "Read and follow [AGENTS.md](AGENTS.md).",
"@AGENTS.md", or a root file that imports .claude/CLAUDE.md (Solon,
DataCat). The old check knew two of them, so "Read and follow" pointers
were fed to the model as notes and the real notes in .claude/CLAUDE.md
were never read.
readAgentDocs() reads AGENTS.md first, then CLAUDE.md; a pointer is
followed to the files it names (resolved inside the repo, each read once),
real CLAUDE.md notes in a repo without AGENTS.md are kept, and
.claude/CLAUDE.md is the fallback when neither root file exists. Both the
enrich route (GitHub contents API) and scripts/enrich-prod-profiles.ts
(local checkout) go through it.
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>
Every fleet repo's CLAUDE.md is now a one-line pointer to AGENTS.md, so
profile enrichment (the route and the backfill script) was sending the model
a pointer instead of the repo's notes. Both now read AGENTS.md, and keep
CLAUDE.md only where it still holds real notes (repos outside the fleet).
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9
Co-authored-by: Claude <noreply@anthropic.com>