There was a rule in CLAUDE.md that told Claude to log every usage cap event. Exact behavior, exact file, even a note explaining why the Auditor needed the data. It had been in there for a while. Between July 9 and July 18, real cap hits happened. One got logged.
The rule wasn’t wrong. Claude had read it. But reading an instruction is different from the instruction firing at the moment it’s needed. A cap event happens, the session stalls, and somewhere in a text file is a note about what to do. Whether that note is in the active context window at that specific moment isn’t guaranteed. The behavior ran when Claude happened to surface it. It skipped when Claude didn’t.
The same thing came up with whole-file reads. I ran /context on a session in July: 523,000 tokens of conversation, 185,000 tokens of tool results, about 55,000 of those avoidable from unnecessary whole-file reads. I mentioned it. Claude adjusted. Next session started clean. Same behavior.
This week I encoded three things as hooks instead of prose: log-cap-event, read-surgically, no-trace-on-secrets. Hooks attach to specific actions. When Claude runs a bash command, no-trace-on-secrets fires. When it reads a file without an offset or limit, read-surgically flags it. When a cap error surfaces, log-cap-event writes the entry. Nothing depends on the instruction being in context at the right moment.
Most of CLAUDE.md still makes sense as prose. Background about me, how I want things explained, preferences about tone, project context. That stuff is legitimate documentation and it works fine where the bar is “Claude understands this” rather than “Claude does this at a specific trigger.” But behavior that needs to fire on a specific tool call in a specific condition doesn’t belong in a paragraph. The question to ask is whether the behavior has a trigger. If it does, there’s a hook for it.
If I could tell myself something from earlier this year, when I was still adding paragraphs to AGENTS.md every time a behavior slipped: you’re writing documentation. Documentation doesn’t execute.