commenter

commenter is an agent for Claude Code from ArcticFox2029/chamnan. It costs 51 tokens per session (676 once invoked), scanned A, original, MIT.

An agent that adds a single opening comment to source files that do not already have one. The comment briefly says what the file is for, so an architecture index can describe it without reopening the file.

In plain words
What is it for?
Use it to add concise purpose comments to source files, especially when building or improving a repository architecture index.
Why use it?
It gives undocumented files a useful summary while leaving files that already have opening comments unchanged. It only edits files explicitly provided to it.

Agent for Claude Code

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

Part of the chamnan plugin — 11 skills, 2 agents, 6 hooks shipped together

Good fit Use it to add concise purpose comments to source files, especially when building or improving a repository architecture index.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/arcticfox2029/chamnan/commenter
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/ArcticFox2029/chamnan

Made for: Claude Code.

Or install chamnan, the plugin that ships this one along with the rest of its 11 skills, 2 agents, 6 hooks.

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 commenter

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/arcticfox2029/chamnan/commenter"><img src="https://agentmods.dev/badge/agents/arcticfox2029/chamnan/commenter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 676 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.00051 $0.00676
Opus 5.5 $0.00020 $0.00270
Sonnet 5.5 $0.00010 $0.00135
Haiku 4.5 $0.00005 $0.00068

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

Security

Grade A, and why

commenter 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.

agents/commenter.md · 49 lines

How it starts

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

You add ONE line to the top of source files that currently have no opening comment.

That line is the only thing an architecture index has to describe the file with. A file without one appears in the index as a name and a function count, which tells the next session nothing and sends it back to reading the file — the exact cost this whole workspace exists to avoid.

What to write

One sentence saying what the file is FOR — the job it does in this codebase, in the words someone would use to decide whether to open it.

Good: # Reads the Zabbix problems table and writes data.json for the dashboard. Good: // Nightly job that reconciles invoices against the payment provider's settlement file. Bad: # utils · # This file contains functions · # main.py — these restate the filename.

Say what it is for, not what it contains. "Helpers for X" is only useful if you name X.

Rules

  • One line. Never a paragraph. You are writing an index entry, not documentation.
  • Use the file's own comment syntax and put it at the very top — after a shebang, after a license header, before imports.
  • Never touch a file that already has an opening comment. If one exists, leave it exactly as it is even if you would have written it differently. Rewriting someone's words is not your job here.
  • Never change code. Only insert the comment line.
  • Write in the language the dispatching instruction names. If it names none, use English. English is the default because this line is re-read on every session and English tokenizes to roughly two-thirds of the equivalent Thai, so the difference is paid repeatedly. It is a default, not a rule — when you are told to write Thai, or Japanese, or anything else, do that without arguing about tokens. A comment the team cannot read is worth nothing however cheap it is.
  • Never comment a file a program wrote. If the first few lines say Code generated by, DO NOT EDIT, @generated or autogenerated, skip it and say so. The comment would be discarded the next time the generator runs, and the index would then claim a description the file no longer carries. chamnan-map already excludes these from the list it asks for, so reaching one means it came from somewhere else — this rule is the second layer, not the first.
  • If you genuinely cannot tell what a file is for, skip it and say so. A wrong summary in an index is worse than a missing one, because the next session will trust it and open the wrong file.

Read the full file on GitHub · 49 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 · +5 lines d6485a356bcc
  2. 1mo ago First seen · 44 lines · 51 tokens per session scan A badaa4b4e99f

Subscribe to this mod's changes

commenter is an agent published in the GitHub repository ArcticFox2029/chamnan (10 stars, last pushed 7d ago), licensed MIT. It adds 51 tokens to every session and 676 once invoked, about $0.0002 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

Other agents, from other repositories

do-pattern-implementer

Autonomous production pattern implementer for Durable Objects. Analyzes existing DO code and adds advanced patterns like TTL cleanup, gradual deployments, RPC metadata, and performance optimizations.

secondsky/claude-skills · 41 tokens

do-setup-assistant

Autonomous Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests.

secondsky/claude-skills · 35 tokens

queue-debugger

Use this agent when the user encounters "queue not delivering messages", "consumer errors", "DLQ filling up", "throughput issues", "message backlog", "queue timeout errors", or needs systematic Cloudflare Queues troubleshooting. Examples.

secondsky/claude-skills · 0 tokens

d1-debugger

Autonomous diagnostic agent that investigates Cloudflare D1 database issues through 9-phase analysis (config, migrations, queries, bindings, errors, limits, performance, Time Travel, report). Use when encountering D1 query errors, migration failures, binding issues, performance degradation, or limit/quota errors.

secondsky/claude-skills · 65 tokens

d1-query-optimizer

Performance analysis agent that identifies slow queries, missing indexes, and optimization opportunities in Cloudflare D1 databases using metrics, insights, and query plan analysis. Use when encountering slow queries, high latency, or performance degradation.

secondsky/claude-skills · 49 tokens

do-debugger

Autonomous Durable Objects debugger. Automatically detects and fixes DO configuration errors, runtime issues, and common mistakes without user intervention.

secondsky/claude-skills · 28 tokens