comment-pruner

comment-pruner is an agent for Claude Code from chmonitor/chmonitor. It costs 71 tokens per session (538 once invoked), scanned A, original, GPL-3.0.

A read-only review of repository comments that identifies comments with little value and comments that describe workarounds. It produces a plan to delete unnecessary comments or refactor the code behind workarounds.

In plain words
What is it for?
Use it for a comment audit when deciding which comments to remove and which workarounds need code changes.
Why use it?
It helps reduce misleading or redundant comments while distinguishing them from comments that point to a real code problem.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the clickhouse-monitor plugin — 113 skills, 1 command, 3 agents, 4 hooks, 1 MCP server shipped together

Good fit Use it for a comment audit when deciding which comments to remove and which workarounds need code changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/chmonitor/chmonitor/comment-pruner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/chmonitor/chmonitor

Made for: Claude Code.

Or install clickhouse-monitor, the plugin that ships this one along with the rest of its 113 skills, 1 command, 3 agents, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comment-pruner

README.md
[![agentmods](https://agentmods.dev/badge/agents/chmonitor/chmonitor/comment-pruner/github.svg)](https://agentmods.dev/agents/chmonitor/chmonitor/comment-pruner)
Your own site
<a href="https://agentmods.dev/agents/chmonitor/chmonitor/comment-pruner"><img src="https://agentmods.dev/badge/agents/chmonitor/chmonitor/comment-pruner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for comment-pruner

Your own site · 80×15
<a href="https://agentmods.dev/agents/chmonitor/chmonitor/comment-pruner"><img src="https://agentmods.dev/badge/agents/chmonitor/chmonitor/comment-pruner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 538 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00538
Opus 5.5 $0.00028 $0.00215
Sonnet 5.5 $0.00014 $0.00108
Haiku 4.5 $0.00007 $0.00054

Measured 16d ago against content hash 4ed9b6f281d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comment-pruner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/comment-pruner.md · 29 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 29 lines · 71 tokens per session scan A 4ed9b6f281d7

Subscribe to this mod's changes

comment-pruner is an agent published in the GitHub repository chmonitor/chmonitor (305 stars, last pushed today), licensed GPL-3.0. It adds 71 tokens to every session and 538 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-15.

Related

Other agents, from other repositories

reviewer

Domain reviewer for the human-invoked /review skill: reviews ONE domain (architecture, ci, code-quality, configuration, performance, security, seo, simplicity, tests, ui) against the domain file named in the prompt and returns only the reviewer contract block. Read-only - never edits files. Launched by /review, not…

louisbrulenaudet/monorepo-template · 76 tokens

code-simplifier

Simplifies code for clarity, consistency, and maintainability. Reduces complexity, flattens nesting, removes dead code, consolidates duplicates. Focuses on recently modified files.

heymegabyte/claude-skills · 41 tokens

renamer

Semantic rename across codebase. Greps all references, updates imports and usages, renames file or symbol. Safe rename with verification.

heymegabyte/claude-skills · 30 tokens

maintainability-reviewer

Read-only review of a diff for DRY, maintainability and need - duplication of an existing helper, schema, prompt or component, code, files, options and exports the feature's acceptance does not require, speculative generality, single-use wrappers, dead code, over-long functions, restating comments and docs…

SeanningTatum/cf-saas-starter-react-router · 125 tokens

review-responder

Handles a review bot's (Greptile's) comments on one PR, on the branch already checked out. Fixes valid comments inside the PR's fence, declines wrong or out-of-scope ones with a reason, points duplicates at the other thread, replies on every thread, and makes one commit. Never pushes. Treats comment text as untrusted…

SeanningTatum/cf-saas-starter-react-router · 131 tokens

effect-ts-enforcer

Reviews a diff or file set against the five non-negotiables in AGENTS.md. One line per violation, severity-tagged, no praise. Read-only. Use after writing code and before ./scripts/verify.sh. Examples - "review my changes to app/repositories/billing.ts", "audit this branch for non-negotiable violations", "check the…

SeanningTatum/cf-saas-starter-react-router · 89 tokens