Better AI code comment detector
ibobev
40 points
23 comments
September 09, 2026
Related Discussions
Found 5 related stories in 83.5ms across 6,054 title embeddings via pgvector HNSW
- AI is a bad tool shtgnwrng · 75 pts · July 13, 2026 · 56% similar
- AI Coding and Its Discontents polymorph1sm · 13 pts · August 10, 2026 · 55% similar
- Beyond "Clean Code": Why Your Comments Matter chmaynard · 11 pts · July 27, 2026 · 55% similar
- AI-written code is still your code martylamb · 55 pts · August 31, 2026 · 55% similar
- I'm Done Using AI jaredcwhite · 30 pts · August 12, 2026 · 54% similar
Discussion Highlights (8 comments)
barbazoo
I was curious why someone would need to classify a comment in the first place. > 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. That's from the post referenced early on. I think that's the fundamental misunderstanding of what these tools are supposed to be used for. And I'm just as guilty myself at work. The problem isn't that the LLM generated that text, the problem is that a human didn't read it properly and ask what that meant and fix it before pushing.
xlayn
The more advanced the effort to detect human vs AI the more advanced the AI will be to write just like human. I wonder if at some point it will become totally human like, and then what will be the reaction? will you accept it? will it be tuned and targetted just like ads to you so it can be eloquent and influence you?
EGreg
This is ultimately a GAN and will converge below the error rate: https://xkcd.com/810/
dcss_gardener
Unfortunately my naive heuristic of "if there is a comment it is written by AI" is nearly as accurate.
amelius
I find that the text that AI produces is sometimes unintelligible without putting _real_ effort into reading it. It's like the AI is becoming so intelligent that it spreads the information around through different sentences in a different way than humans do. I guess if you are a transformer with thousands of tokens of lookahead, why wouldn't you ... Anyway, I wish the LLMs were trained with a human-text-detector in their training loop. And they can still use a different LLM to produce code and mathematics. However, using the same LLM for both tasks, and we're going to have a hard time understanding what is happening.
mermadicsolutio
I think the point should be making sure these AI codes are reviewed by developers, which is hard to do. Developers write plenty of bad code and comments too, trying to detect AI just feels more like treating the symptom than the actual problem.
saejox
my handwritten very detailed 10 lines comment block is %87 robot. and i use broken english with wrong grammer all the time. you are not the only one, Pangram and GPTZero also think it is written by a bot. ai detection may be an unsolvable issue.
cchance
i can already see the false positives lol, 99% of these ai detectors aren't ai detectors their just specific writing style detectors