comment-accuracy

comment-accuracy is an agent for Claude Code from andyzengmath/soliton. It costs 26 tokens per session (1,707 once invoked), scanned A, original, MIT.

A code-review agent that checks whether comments and documentation still match the code. It looks for outdated notes, mismatched function descriptions, and misleading TODO or FIXME markers.

In plain words
What is it for?
Use it when reviewing changes that touch comments or documentation, especially in pull requests.
Why use it?
Code often changes while nearby comments stay the same, which can mislead future developers and automated coding tools.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the soliton plugin — 1 skill, 3 commands, 13 agents shipped together

Good fit Use it when reviewing changes that touch comments or documentation, especially in pull requests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andyzengmath/soliton/comment-accuracy
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/andyzengmath/soliton

Made for: Claude Code.

Or install soliton, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 13 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/andyzengmath/soliton/comment-accuracy/github.svg)](https://agentmods.dev/agents/andyzengmath/soliton/comment-accuracy)
Your own site
<a href="https://agentmods.dev/agents/andyzengmath/soliton/comment-accuracy"><img src="https://agentmods.dev/badge/agents/andyzengmath/soliton/comment-accuracy/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-accuracy

Your own site · 80×15
<a href="https://agentmods.dev/agents/andyzengmath/soliton/comment-accuracy"><img src="https://agentmods.dev/badge/agents/andyzengmath/soliton/comment-accuracy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 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,707 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.00026 $0.01707
Opus 5.5 $0.00010 $0.00683
Sonnet 5.5 $0.00005 $0.00341
Haiku 4.5 $0.00003 $0.00171

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

Security

Grade A, and why

comment-accuracy 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 3mo 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.

agents/comment-accuracy.md · 154 lines

How it starts

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

Comment Accuracy Agent

You are a specialist reviewer for comment rot — the failure mode where code changes but comments describing it do not. Because LLM coding agents tend to edit the code they touch and leave surrounding comments alone, this is an empirically high-frequency issue in AI-authored PRs.

Default: OFF as of v2.1.1 — Phase 5.3 CRB measurement (PR #68) showed default-ON regressed F1 by 0.045 (5.2σ_Δ paired); the agent's findings are valuable in production but inflate FP volume on golden-set scoring. Opt in via .claude/soliton.local.md setting agents.comment_accuracy.enabled: true.

Dispatch rule (set in SKILL.md Step 4.1, applied only when opted in): run this agent only when the diff contains changes to files with comments — detected by the diff containing lines that start with //, #, /*, *, """, ''', ///, -- (SQL), % (Matlab/TeX), or ; (some asm). Skip entirely if no comment lines were touched.

Model: Haiku. This is pattern matching + structured cross-reference, not deep reasoning.

Input

Standard Soliton agent inputs. You also receive tier0Findings[] if Tier 0 ran — some comment issues are caught by linters (e.g., ruff's RET504), do not re-flag those.

Review process

1. Function-level docstring divergence

For each changed function / method, read its docstring (the string literal or block comment directly above or at the top of the function body). Compare:

Parameters:

  • Docstring lists param X: int, but the function signature says X: str → MISMATCH
  • Docstring missing a parameter that's in the signature → INCOMPLETE
  • Docstring documents a parameter that no longer exists → STALE

Return type:

  • Docstring says returns: bool, signature says -> str → MISMATCH
  • Docstring says "returns the modified user object" but signature is -> None → STALE

Exception docs:

  • Docstring :raises ValueError:, function body has no raise for ValueError (only raise RuntimeError now) → STALE
  • Function raises exceptions not mentioned in docstring → INCOMPLETE

Read the full file on GitHub · 154 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. 3mo ago First seen · 154 lines · 26 tokens per session scan A 4a180690f3d3

Subscribe to this mod's changes

comment-accuracy is an agent published in the GitHub repository andyzengmath/soliton (1 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 1,707 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.

Related

comment-accuracy compared with agents from other repositories

comment-accuracy next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comment-accuracyandyzengmath/solitonAgent15mo agoMITA26Claude Code
code-reviewerarch3rPro/ark-spaceAgent23mo agoMITA18Claude Code
parallel-revieweroliver-kriska/claude-elixir-phoenixAgent579yesterdayMITA38Claude Code
genshijin-reviewerInterfaceX-co-jp/genshijinAgent3372d agoMITA93Claude Code
data-engineertestdouble/hanAgent36219d agoMITA216Claude Code
plan-synthesizertestdouble/hanAgent36219d agoMITA159Claude Code
discussion-facilitatortestdouble/hanAgent36219d agoMITA160Claude Code