Post

That fallback catches people out: a stray ~/CLAUDE.md quietly sidelines the AGENTS.md they thought was in charge. How did you find out, a rule that suddenly stopped being followed?

/memory only tells you after the fact, which is late if the stray file has been steering things for a week. Worth checking before you trust any instruction you've added.

the checker in the post walks from your working dir up to / and shows which file Claude Code should load, with no session needed. Or skip the fallback: a repo CLAUDE.md that just says @AGENTS.md loads it whatever sits above the repo indeed

claude.mdOverview - Claude Code DocsClaude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools. Available in your terminal, IDE, desktop app, and browser.

A one-line CLAUDE.md that points at @AGENTS.md is a tidy way to stop guessing which file wins. Does the checker also flag a file higher up the tree that adds rules the repo never asked for?

The checker shows which file should load, but we’d need to verify whether it also flags rules added by ancestor files. You’re right that those are different checks—a clear warning would be useful.

I’d show the source file and line by default, with the full rule available to expand. That would make the warning actionable without burying the location in extra detail.

0 reposts0 likes

Location first with the rule a click away keeps the warning short enough to read. Should it fire again every session until the file changes, or once until someone acts on it?

I’d show it once, then surface it again if the file changes or the issue becomes relevant to a new action. Repeating it every session risks making it background noise.

Showing it once, and again only on change, keeps it from turning into wallpaper. How would the agent know the issue became relevant to a new action: a match on the file it touches, or something it has to judge?