Running into this?

I changed a decision, but my agent still follows the old one or mixes the two, and leaves a "CLAUDE.md conflicts" note in the code it writes

When I change a decision I don't add the new one somewhere in the file: I delete the old line, or narrow it to the one place it still holds ("only the old importer reads the old one"). The old version stays in git history.

beforeold line kept in another section: Opus wrote the code to the old decision in 6–7 of 12 runs
afterold line narrowed to its condition or deleted: 0–2/12
delete every line of the old decision in your rules file, or narrow it to the place it still holds; don't add the new one next to it
Text for your agent · 14 lines
Situation: you changed a decision (a unit, a library, a format) and wrote the new one into your rules file (CLAUDE.md, AGENTS.md), but the agent still writes code to the old one or mixes the two. Comments like "CLAUDE.md conflicts" or "the rules contradict" show up in its code.

Why: the agent treats both lines in the file as rules; it can't tell which one is newer and picks one. I measured it with six decision changes, in a folder without git and with tools off: with the old line in one section and the new line in another, Opus wrote the code to the old decision in 6–7 of 12 runs across three measurements, Sonnet in 7 of 12, Haiku in 8 of 18. With the old line narrowed to the place it still holds, or deleted: Opus and Sonnet at most 2 of 12, Haiku 0/18.

Do:
1. Search the project root for the old decision's word and its abbreviation (replace OLD with them, separated by |: word|abbreviation):
   grep -rniIE --exclude-dir=.git --exclude-dir=node_modules 'OLD' .
2. In your rules file (CLAUDE.md, AGENTS.md), delete every line that states the old decision; if the search turned up a code line (not a comment) that still uses the old decision, don't delete that rule line, narrow it to the code's file, for example: "<old> only in <file>; <new> everywhere else".

Verify:
- Rerun step 1's search: in the CLAUDE.md and AGENTS.md lines, the old decision either doesn't appear or appears only in the line you narrowed.

Don't:
- Add the new decision in another section and leave the old line in place.