Comment lines kept growing after https://git.cafe/pingdotgg/t3code/pulls/19559, mostly as long "why" blocks that restate context the code already shows. This PR cuts JS/TS comment lines from 26,014 to 12,863 and adds checks so they don't grow back.
Prevention
t3code/no-low-value-comments fails a comment block over 4 lines (license headers exempt). Before this PR, about half of all comment lines sat in blocks of 4+ lines.
- It also flags a bare
#1234 issue or PR number (TODOs, regression: #123 test markers, owner/repo#123, code spans, and hex colors are exempt) and the copied @public Service construction is part of the canonical Effect module API. line.
- AGENTS.md now says to default to no comment, use one line where possible and four at most, and not to explain the fix you just made.
Cleanup
Comments that restate names, narrate steps, label sections, or record history are deleted. Remaining why-comments are cut to the constraint they carry. Code is untouched: every changed file parses to the same Oxc AST as main once comments are ignored, and every directive comment is kept (1,835 files checked). Two oxlint-disable lines lost the comment above them that gave the reason, so the reason is now inline. The non-JS files that changed are marketing .astro, Rust, shell, PowerShell, and one Python script, all comment-only.
vp lint (0 errors) and the lint plugin tests (289 passed) pass on a Blacksmith testbox.
Written by claude-opus-5-5 (Claude Code, in T3 Code), with gpt-6.1-sol children doing the per-slice edits.
🤖 Generated with Claude Code