2 Commits
Author SHA1 Message Date
CatoandClaude 72bdf94c18 fix(enrich): read AGENTS.md first and follow CLAUDE.md pointers (#1524)
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>
2026-11-01 19:31:34 +01:00
CatoandClaude c5a52da875 fix(enrich): read AGENTS.md; a CLAUDE.md pointer adds nothing (#1468)
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>
2026-10-29 18:05:22 +01:00