You wrote it in CLAUDE.md. Right at the top, in bold:

Do not modify files I did not ask you to modify.

Enter fullscreen mode

Exit fullscreen mode

It worked. For a while.