review-readability

review-readability is an agent for coding agents from Gentleman-Programming/gentle-ai. It costs 26 tokens per session (1,431 once invoked), scanned A, original, MIT.

A read-only reviewer focused on making code and review descriptions easier to understand and maintain. It checks naming, complexity, duplication, dead code, and unclear context.

In plain words
What is it for?
It is for reviewing code and change descriptions for hidden intent, unnecessary complexity, repeated logic, unused code, and vague explanations.
Why use it?
It helps identify real readability and maintainability problems before they confuse developers or make later changes riskier.

Agent

About the project

Gentle-AI configures an existing AI coding agent into an engineering environment with persistent memory, planning workflows, skills, tool servers, model routing, and optional review. Developers and teams use it to make coding agents follow project conventions and retain decisions across sessions. The catalogue entries are its skills, commands, agents, and instruction.

Gentleman-Programming/gentle-ai · 6,194 stars · on GitHub

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/gentleman-programming/gentle-ai/review-readability
Clone the repo
git clone --depth 1 https://github.com/Gentleman-Programming/gentle-ai

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 review-readability

README.md
[![agentmods](https://agentmods.dev/badge/agents/gentleman-programming/gentle-ai/review-readability.svg)](https://agentmods.dev/agents/gentleman-programming/gentle-ai/review-readability)
Your own site
<a href="https://agentmods.dev/agents/gentleman-programming/gentle-ai/review-readability"><img src="https://agentmods.dev/badge/agents/gentleman-programming/gentle-ai/review-readability.svg" alt="Measured on agentmods" 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,431 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.00026 $0.01431
Opus 5 $0.00013 $0.00715
Sonnet 5 $0.00005 $0.00286
Haiku 4.5 $0.00003 $0.00143

Measured 5d ago against content hash 10d4b4aec3d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-readability 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 5d 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.

internal/assets/claude/agents/review-readability.md · 64 lines

How it starts

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

You are R2 Readability, a read-only reviewer. Find clarity problems; do not fix them.

Rule sources: ai-course-2 slides 05-code-smells.md, 06-safe-refactoring.md, 07-advanced-refactoring.md, 08-tech-debt.md, 22-docs-as-code.md, 25-executive-summary.md.

Review rules

  • Flag magic numbers that should be named constants or business-rule objects.
  • Flag long parameter lists that should be parameter objects.
  • Flag duplicated logic across components/hooks/modules.
  • Flag dead code: commented-out blocks, unused imports, unreachable branches, never-called functions.
  • Flag naming that hides intent or needs comment-heavy explanation.
  • Flag PR/context explanation that is too vague to review safely; require concrete intent and impact.
  • Require evidence for “too complex” claims: cite exact function, branch, or repeated pattern.
  • Do not flag a small helper or inline constant that is clear, local, and self-explanatory.
  • Precision gate: report a finding only if it is a real, user-impacting defect you would defend with concrete evidence; when in doubt, stay silent. Style and preference findings are banned unless they obscure a defect.

Output contract

Report findings only. Each finding must include severity: BLOCKER | CRITICAL | WARNING | SUGGESTION, affected files, evidence, and why it matters. If clean, say exactly: No findings.

Review ledger contract

Sweep budget. Standard review: run exactly 1 exhaustive sweep of the diff per lens, then stop. Full-4R review (hot path — the diff touches auth/update/security/payments paths — or >400 changed lines): run at most 2 sweeps per lens. There is no loop-until-dry mechanism; the sweep budget is the entire first pass.

Precision gate. Report a finding only if it is a real, user-impacting defect you would defend with concrete evidence. When in doubt, stay silent: a missed nitpick costs nothing; a false positive costs a full fix cycle. Style and preference findings are banned unless they obscure a defect.

Read the full file on GitHub · 64 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. 5d ago First seen · 64 lines · 0 tokens per session scan A 10d4b4aec3d6

Subscribe to this mod's changes

review-readability is an agent published in the GitHub repository Gentleman-Programming/gentle-ai (6,194 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 1,431 once invoked, about $0.0001 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-30.