For several months my main rules file did less than I thought. It held my analytics conventions, hard rules and style rules. The startup file that Claude Code loads, CLAUDE.md, held only a Markdown link to it, and a link doesn’t load the file. The agent opened the rules when something sent it there, and otherwise worked without them.
I found it by counting. Across a month of session transcripts, only a small minority of sessions ever read the rules file. Nothing had warned me, because the agent still answered and the answers looked fine.
An import line fixed it only for sessions started in the root folder. Most of my build sessions start inside a repo or a worktree, where the import needed its own approval every time. What worked was making the startup file a symbolic link to the rules file. The agent now loads it as an ordinary parent-folder file in every session below it, and I confirmed that with headless runs from the root, a repo and a worktree.
To check, I start a session in each place one can start and ask the agent to quote a distinctive line from the rules.