# Claude comment detection

> Source: <https://entropicthoughts.com/ai-comment-classifier>
> Published: 2026-08-31 22:00:00+00:00

Here’s a comment I read in the code I was working on.

Walk the entire collection to locate flagged clusters. Skip it altogether when the cached, dirty-tracked flag count says there are none (the usual case): nothing needs marking, so the walk is pure waste. When the count is stale (e.g. right after an edit) or non-zero, we fall through to the real lookup, so stale marks never show. Same eventually-consistent signal the “Flags” badge relies on.

One thing in this comment caught my mind: the small parenthetical that says “the
usual case”. If that were true, it would be important information! However, this
comment is generated by the LLM model Claude, which has *no* sense of what
counts as the usual case in this domain. But by generating that comment, it
tricks every future reader (both human and robot) into believing in a property
of the system that does not exist.
