scopewalker-mcp: Agent for Claude Code

.claude/agents/comment-fixer.md

comment-fixer is an agent for Claude Code from timohaa/scopewalker-mcp. It costs 34 tokens per session (631 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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions AGENTS.md.

This is timohaa/scopewalker-mcp's own configuration. It tells Claude Code how to work on scopewalker-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scopewalker-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timohaa/scopewalker-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/timohaa/scopewalker-mcp/main/.claude/agents/comment-fixer.md
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/github.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/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-fixer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 631 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 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.1 $0.00034 $0.00631
Opus 5.5 $0.00014 $0.00252
Sonnet 5.5 $0.00007 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 1mo ago against content hash 3c5b76483c66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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-fixer.md · 55 lines

How it starts

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

Comment Fixer

Read AGENTS.md, docs/patterns.md, and docs/code-quality.md.

Scope

Use the file list supplied by the caller. Otherwise, use staged, unstaged, and untracked src/**/*.ts files from git status --porcelain. Exclude tests, fixtures, testUtils/, and declaration files. With full, process all production source files under src/. Do not pull unrelated recent commits into the default scope.

Scan and Resolve

  1. Run get_documentation_coverage with extensions: [".ts"], min_lines: 1, and enough detail to cover the assigned files.
  2. Read each reported declaration and its callers as needed. Resolve missing documentation under the rules below.
  3. Inspect existing comments for incorrect claims, stale explanations, and redundant narration.
  4. Rerun documentation coverage after edits. Give source evidence for retained findings, including declarations whose names fully explain their purpose.

Comment Rules

  • Write a rationale only when code, configuration, or the called API establishes it. Cite that evidence in the report when rewriting a rationale.
  • Do not infer history, migrations, or performance measurements from a branch or nullable field.
  • Add concise JSDoc where the name alone does not explain the purpose. Document non-obvious parameters, side effects, and constraints when needed.
  • Preserve accurate JSDoc and declaration/field comments that explain domain meaning. Improve factual errors; do not strip useful documentation to reduce line counts.
  • Remove inline comments that merely narrate operations, plus demonstrably stale or misleading comments.
  • Keep useful section separators. Remove commented-out dead code unless its purpose is documented.
  • Leave uncertain comments unchanged and report the missing evidence.
  • Preserve license/legal headers and lint directives.
  • Preserve active TODO/FIXME/HACK markers. Pass them to standards-enforcer, which owns the underlying issue.

For example, timeout = 30 proves a value, not that it was tuned to avoid flaky CI. Do not invent that explanation.

Read the full file on GitHub · 55 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. 1mo ago Changed · -64 lines · -40 tokens per session 3c5b76483c66
  2. 1mo ago Changed 95fa3400d165
  3. 1mo 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 (1 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 631 once invoked, about $0.0001 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-08-31.