comment-checker: Instructions file for Claude Code

AGENTS.md

comment-checker AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from systemfsoftware/comment-checker. It costs 2,650 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for coding agents working on the comment-checker project, including its folder layout, startup steps, and working rules.

In plain words
What is it for?
Use them when making changes in the comment-checker repository, especially before editing code or running its verification workflow.
Why use it?
They give an agent the project-specific context needed to work consistently and avoid breaking the Rust, JavaScript, tests, or release setup.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PostToolUse hook event, but also the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is systemfsoftware/comment-checker's own configuration. It tells Claude Code, Codex and OpenCode how to work on comment-checker 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 comment-checker configures →

Reuse

Borrowing it

Nothing to install: this file belongs to systemfsoftware/comment-checker. 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/systemfsoftware/comment-checker/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/systemfsoftware/comment-checker

Made for: Claude Code, Codex, OpenCode.

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-checker AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/systemfsoftware/comment-checker/agents-md"><img src="https://agentmods.dev/badge/instructions/systemfsoftware/comment-checker/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,650 This file is loaded in full into every session.
When invoked 2,650 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02650 $0.02650
Opus 5.5 $0.01060 $0.01060
Sonnet 5.5 $0.00530 $0.00530
Haiku 4.5 $0.00265 $0.00265

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

Security

Grade C, and why

comment-checker AGENTS.md scanned grade C with 1 finding 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 15d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Destructive operations (`rm -rf`, dropping databases, deleting migrations).
AGENTS.md · 167 lines

How it starts

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

AGENTS.md

A high-quality, mutation-tested Rust implementation of a Claude Code PostToolUse hook that classifies code comments as justified or unnecessary. SOTA engineering: 100% mutation on the core classifier, property-based tests, constitution-aligned, distributed via GitHub Releases and this repository's Nix flake.

The JS launcher layer uses Effect v4. Never install, import, or pin effect@3.* in the JS side.

Directory map

Path What it holds
crates/ Rust core (comment-checker crate)
npm/packages/comment-checker/ JS/npm wrapper (ESM + Effect v4 launcher for the Rust binary)
tests/ Integration / F1 tests
eval/ Evaluation corpus
.github/workflows/ CI/release (pnpm + cross-platform Rust)

Startup Workflow

Before writing code, unconditionally:

  1. Confirm the working directory (pwd) and the active task (user or task list).
  2. Read this file — the whole static surface. No other standing reads.
  3. Run the verification commands below and confirm a healthy baseline; repair failures before adding new scope.

No eager-read mandates: document reads are situational, triggered by the work, never by startup:

  • README.md — when working in a directory you have not worked in before.
  • ARCHITECTURE.md — when the task changes a module boundary or data flow.
  • Product/requirements docs — when a decision depends on product intent.
  • docs/solutions/ — when implementing or debugging in an area with documented past solutions.
  • CONCEPTS.md — when orienting to shared domain vocabulary and definitions.

Working Rules

  • One task at a time: finish the active task before starting another.
  • Verification required: do not claim done without running the verification commands and recording evidence — decisions, bugs, and conventions to the runtime memory system, active work to the task list.
  • Stay in scope: do not modify files unrelated to the active task; scope reduction requires explicit user approval.
  • Multi-agent: each agent owns a disjoint file set, claims files before editing, never delegates recursively; the root one-shot verification must pass before any agent claims done.
  • Git discipline: Master is for releases only and should remain an empty or minimal commit. All work happens on feature branches. Never commit directly to master. Use git checkout -b feature/... for new work. Rebase or merge only via PRs.

Read the full file on GitHub · 167 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. 15d ago Changed · -2 tokens per session f65972152127
  2. 18d ago Changed · +8 tokens per session c834d77ecee9
  3. 23d ago Changed · +12 lines · +379 tokens per session 7f71ea1ca69a
  4. 1mo ago First seen · 155 lines · 2,265 tokens per session scan C c1ca2eaf2a6b

Subscribe to this mod's changes

comment-checker AGENTS.md is an instructions file published in the GitHub repository systemfsoftware/comment-checker (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,650 tokens to every session, about $0.0106 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens