Claude doesn't read your instructions the way a human reads a contract — systematically, front to back, with equal attention to every clause. It processes everything through a mechanism called attention, which means where you put something matters almost as much as what it says.
This session answers the questions people argue about constantly: Does CAPS help? Should rules go at the top or bottom? Why does Claude follow the rule at message 2 but ignore it at message 40? And what's the single most powerful thing you can do to make an instruction stick?
Researchers call this the "primacy-recency effect" and the "lost in the middle" problem. It's been measured empirically in large language models. Here's what it looks like across a long document:
This curve applies within a single document (like your CLAUDE.md) AND across the entire context window. Instructions near the top of a rules file get more attention than instructions 30 lines down. Your current message gets more attention than the message you sent an hour ago.
Here's a simulated CLAUDE.md with attention heat shown for each section. Hover to see attention weights.
Type an instruction and see how effective it's likely to be — and why.
Where you put an instruction should match what you need from it.
| Approach | Instruction | Result reliability |
|---|---|---|
| Abstract rule | "Write in a professional but conversational tone." | Medium — "professional" and "conversational" mean different things to different people. |
| Negative constraint | "Don't sound like a corporate press release." | Better — but still requires interpretation of what "press release" means. |
| Example provided | "Write like this: 'The build is green. We're good to ship.' Not like this: 'I am pleased to inform you that the build process has completed successfully.'" | Highest — Claude has a concrete pattern to match. |
| Question | If Yes... |
|---|---|
| Is this instruction critical and needs to be followed every time? | Put it at the TOP of your rules file. Consider adding to user preferences for global application. |
| Is Claude drifting from a rule mid-session? | Restate it in your current message. That's the highest-attention location. |
| Is your instruction vague? ("be concise", "be helpful") | Add specifics or an example. What does success actually look like? |
| Have you been working for 2+ hours in one session? | Rule drift is likely. Restate key constraints or start fresh. |
| Is there information you want available but not paying for every turn? | Put it in a knowledge base. Retrieve when relevant. |
| Is an instruction buried in the middle of a long document? | Move it to the top or add a reference to it early in the document. |