Developer releases open-source AI code comment classifier trained on public data
The author has rebuilt an AI-generated code comment detector, previously trained on private data with an unstable foundation, using only public data and a more solid architecture. The new tool runs entirely in the browser, processes pasted text locally without sending it to a server, and offers an interactive interface that highlights which text features drive its human-vs-robot judgment.
GoKawiil's interpretation of the reporting above, not reported fact.
Detecting AI-generated code comments matters as more codebases mix human and machine-authored contributions, affecting trust, code review, and attribution. By open-sourcing the model and data, the author enables others to audit, reproduce, or improve detection methods rather than relying on a black-box tool trained on undisclosed data.
- The new classifier is built entirely on public data, unlike its predecessor which used private data.
- It achieves 77% balanced accuracy and produces calibrated probability scores validated against known outcomes.
- Users can inspect exactly which text features influence each classification decision through an interactive UI.
Clean Code" by Robert C. Martin — If you're thinking hard about what separates human-written code comments from machine-generated boilerplate, Clean Code is the classic reference on when a comment earns its place and when it's just noise. It pairs perfectly with an article about classifying comment quality, giving you the human-side principles behind the signal.
See Clean Code" by Robert C. Martin on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: entropicthoughts.com, 2026-09-09
Published there as: “Better AI code comment detector”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.