Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bendruckerMITIn 1 marketplace
Finds AI-style filler comments in a diff and trims them onto a review branch, or sweeps a whole repo. A Stop hook runs after every response and blocks the stop when comment bloat passes a threshold.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
ai-slop, code-comments, comment-cleanup, code-review, documentation, refactoring, linting
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Detect AI slop code comments in a diff and steer clean comment generation.
LLMs over-produce low-value comments: restatement of simple code, narration of the change, self-praise, and section-divider banners. They also dress real facts in AI voice. This plugin extracts comments deterministically, judges them against a model of when a comment earns its place, and acts on each: keep the good ones, trim the slop, and rewrite the ones that carry a fact under voice. The changes land on a review branch.
One pipeline, two scopes selected by a flag:
--base <ref>, --mr <iid>): the comments a change introduced, scoped to added and modified lines.--all): every tracked code file's comments, for sweeping a slop-heavy codebase into a large reviewable deletion.Both run extraction, intrinsic-complexity ranking, an agent fan-out for judging, and a deterministic apply.
comments:audit skill: the three-step pipeline. preflight extracts, ranks, and builds the judging job. The comments:judge agent judges each shard. apply lands the trims and rewrites on a comments/audit-* branch or reports the findings. --report, --fix, --path, --sort, and --limit tune scope and output.detection/, covers comment extraction over Shiki's TextMate grammars, the diff and repo collectors, intrinsic-complexity ranking, stable comment ids, and the exemption gate that keeps tool directives, shebangs, and license headers away from the judge. doc.ts marks comments in the language's formal doc-comment position (godoc, JSDoc/TSDoc, Javadoc/KDoc and the other C-family /** */ and /// forms, Rust /// and //!, Python docstrings) with the name they document and whether it is exported. It flags godoc on exported Go identifiers and packages as required. density.ts measures comment share against calibrated per-language baselines, weighting the ranking. provenance.ts blames each comment's lines and quotes the agent evidence off their commits (uncommitted lines, trailers such as Co-Authored-By and Claude-Session, the Claude Code footer, bot authors), which rides along to the judge as authorship evidence. Git names the committer. A human name with no signal is weak evidence, and the judge reads the voice as well. tree.ts reads the working tree against the branch's merge base for the Stop hook, and transcript.ts names the files a session edited. Per-comment deterministic features land in the job dir beside the verdicts, accumulating labeled pairs for a future routing layer.judge/, combines the versioned prompt.md, the verdict schema, per-verdict validation, and the job builder that shards comments for the judge agents.comments:judge agent in agents/ judges one shard and pins the gate's model and effort.apply/, is handled by the deterministic edit engine, the verdict id-match against re-extracted comments, the branch writer, and the report renderer. The edit engine refuses to delete a required doc comment, drop a Go doc comment's Name lead, or splice a line wider than the comment it replaces.evals/, uses the labeled fixture corpus and the action-accuracy eval, which scores it through the production judge agent (the ship gate).user/rules/code-comments.md, scoped by path to code files.hooks/density.ts runs on Stop. It takes the files the session's Edit, Write, and MultiEdit calls named, measures the comment share of the lines those files add over the branch's merge base with the default branch, and charges each file's comment weight against its language baseline. At 2800 characters of total excess it blocks the stop, names the three heaviest files, and asks for a comments:audit run over the diff and the trims it flags. Below that it stays silent.
The number describes the tree as it stands. Trimming a comment lowers it, and rewriting one costs what the surviving text weighs. A branch back at its base scores zero. The audit the hook asks for can satisfy it.
The score is volume, so slop written at an ordinary density passes. Files the session touched through a shell heredoc or sed never reach it, and neither does work outside the repo it stopped in. It also skips extensions missing from the language map, generated files, and files git ignores. Added lines that are 95% comment read as a documentation pass and never escalate on their own.
It blocks once. The reason opens with a comment-density: marker, and the hook scans the whole transcript for it before blocking again. Turning it off means disabling the plugin.
Deterministic extraction, ranking, the job builder, the edit engine, the verdict join, and the hook's block and suppression paths:
bun test plugins/comments
7-day copy clicks
npx claudepluginhub bendrucker/claude --plugin commentsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground