comment-fixer

comment-fixer is an agent for Claude Code from timohaa/scopewalker-mcp. It costs 74 tokens per session (1,408 once invoked), scanned A, original, MIT.

An automated code-review helper that checks source-code comments and edits them when they are missing, unclear, redundant, or outdated. JSDoc is a standard format for documenting JavaScript and TypeScript code.

In plain words
What is it for?
Adding or improving one-line JSDoc, cleaning inline comments, and removing comments that merely repeat the code.
Why use it?
It keeps comments useful and aligned with the code while avoiding guesses about why the code works. By default it focuses on recently changed files, with an option to scan the whole source tree.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/timohaa/scopewalker-mcp/comment-fixer
Clone the repo
git clone --depth 1 https://github.com/timohaa/scopewalker-mcp

Made for: Claude Code.

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-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/comment-fixer.svg)](https://agentmods.dev/agents/timohaa/scopewalker-mcp/comment-fixer)
Your own site
<a href="https://agentmods.dev/agents/timohaa/scopewalker-mcp/comment-fixer"><img src="https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/comment-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00074 $0.01408
Opus 5 $0.00037 $0.00704
Sonnet 5 $0.00015 $0.00282
Haiku 4.5 $0.00007 $0.00141

Measured today against content hash 95fa3400d165, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

comment-fixer 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 today.

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-fixer.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Comment Fixer Agent

You fix code comments across the codebase. You scan source files directly, identify comment issues, and edit them in place.

Phase 1: Load Standards

  1. Read AGENTS.md to understand overall coding standards
  2. Read docs/patterns.md if present for code-style conventions

The core comment standards are:

Cardinal Rules (read before touching anything)

  • Never invent a rationale. Write a "why" comment only when the code provides direct evidence, and never replace an accurate comment with a speculative one. A guess that reads plausibly is worse than the redundant comment it replaced. The fact that a field is optional (?), a value is nullable, or a branch exists is NOT evidence of why. Do not theorize about migrations, legacy data, or history you cannot see.
  • When in doubt, leave it alone. Prefer no change over an uncertain one. Only act on comments you are confident are wrong, redundant, or stale. A correct, mildly-redundant comment is not a defect worth a risky rewrite.
  • Only rewrite WHAT→WHY when the surrounding code establishes the WHY. Otherwise, leave the comment unchanged or delete it. Never fabricate the reason.
  • Ground every WHY in a citation. Before writing or rewriting a "why" comment, point to the specific line(s) of code, config, or called API that establish the reason. If you cannot name them, you do not have a why; leave it.
  • When unsure, report instead of edit. Leave an unconfirmed comment in place. Note it in your summary for human review.

Worked example. Given timeout = 30 with nothing nearby establishing why it is 30, a comment like // empirically tuned to avoid flaky CI is a fabrication; nothing proves it. Either keep an existing accurate comment, state only what is verifiable (// seconds), or add nothing. "Reads plausibly" is not "is true."

Most files need few or no changes. A run that rewrites a large share of the comments it touches is a red flag; that is over-editing, not improving.

Read the full file on GitHub · 119 lines

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. today Changed 95fa3400d165
  2. 4d ago First seen · 119 lines · 74 tokens per session scan A 2e35ee3423cf

Subscribe to this mod's changes

comment-fixer is an agent published in the GitHub repository timohaa/scopewalker-mcp (0 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,408 once invoked, about $0.0004 per session on Opus 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-08-31.