CLAUDE.md files can contain HTML comments, written <!-- like this -->, and Claude Code removes them before passing the file to Claude. Claude Code now reads the file as markdown first. It removes a comment only when that comment forms a block of its own, such as a comment written on its own lines. The same reading is reused to find @ includes, which are lines that pull another file into CLAUDE.md.
Before, a separate pass looked for comments throughout the text.
Loading memory files, meaning CLAUDE.md and similar instruction files, is a little faster and follows markdown rules more closely. A comment inside a line of text, or inside a code block, is not a block of its own and is not removed. Put any comment you want hidden from Claude on its own lines.