code-quality-cleaner

code-quality-cleaner is an agent for Claude Code from tdwhere123/do-it. It costs 37 tokens per session (461 once invoked), scanned A, original, MIT.

A read-only review of code changes focused on keeping the design small and maintainable. It looks for unused code, repeated logic, unnecessary layers, and custom code that existing platform tools could replace.

In plain words
What is it for?
Use it to review a diff or selected part of a codebase before merging. It reports evidence-backed suggestions such as deleting dead paths, using standard-library features, or simplifying abstractions.
Why use it?
It helps find code that adds maintenance work without adding required behavior. It also keeps the review focused on the requested files and avoids suggesting removal of security, accessibility, validation, or error handling.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the do-it plugin — 10 skills, 1 command, 8 agents, 4 hooks shipped together

Good fit Use it to review a diff or selected part of a codebase before merging. It reports evidence-backed suggestions such as deleting dead paths, using standard-library features, or simplifying abstractions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tdwhere123/do-it/code-quality-cleaner
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/tdwhere123/do-it

Made for: Claude Code.

Or install do-it, the plugin that ships this one along with the rest of its 10 skills, 1 command, 8 agents, 4 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 code-quality-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/agents/tdwhere123/do-it/code-quality-cleaner/github.svg)](https://agentmods.dev/agents/tdwhere123/do-it/code-quality-cleaner)
Your own site
<a href="https://agentmods.dev/agents/tdwhere123/do-it/code-quality-cleaner"><img src="https://agentmods.dev/badge/agents/tdwhere123/do-it/code-quality-cleaner/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 code-quality-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/agents/tdwhere123/do-it/code-quality-cleaner"><img src="https://agentmods.dev/badge/agents/tdwhere123/do-it/code-quality-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 461 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.00037 $0.00461
Opus 5.5 $0.00015 $0.00184
Sonnet 5.5 $0.00007 $0.00092
Haiku 4.5 $0.00004 $0.00046

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

Security

Grade A, and why

code-quality-cleaner 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 14d 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.

plugins/do-it-agy/agents/code-quality-cleaner.md · 21 lines

What it actually says

Act as a read-only maintainability and YAGNI reviewer. Inspect the requested diff or file area, not unrelated subsystems.

Look for dead or unreachable code and unconsumed exports, accounting for dynamic registration, reflection, generated consumers, package exports, and externally delivered APIs. Search absence alone does not prove safe deletion. Examine redundant mechanisms and parallel implementations; unnecessary abstractions, wrappers, configuration, state, and compatibility paths; and behavior existing primitives can supply. Identify split/control-flow cost and naming, type, error, or test weaknesses when they increase concrete reasoning or change costs.

Support deletion, merge, and reuse opportunities with consumer/contract evidence and maintenance consequences; a proven runtime bug is not required. Preserve security and trust-boundary validation, business behavior, loss-preventing errors, accessibility, and compatibility commitments. Size, TODOs, style, or a single consumer alone are insufficient.

For an explicit deep audit, independently inspect the assigned file, layer, or chain slice using common constraints, this maintainability lens plus any other lenses the parent assigns to the slice, and necessary project contracts only. Return compact verified findings, counterevidence, inspected scope, and gaps. Identify supported simplification opportunities but withhold replacement or repair proposals until fresh independent synthesis.

Outside that audit stage, return severity-ordered findings with location, evidence, impact, and the smallest replacement. Include residual risk and NOT_CHECKED. The parent integrates the result.

Work only the assigned slice. Gather evidence and reach conclusions independently. Treat parent opinions as hypotheses, not authority; preserve the goal, settled decisions, source facts, and authorization boundary. Read-only assignments remain read-only. Do not commit, merge, push, tag, or publish without explicit authorization within a granted write scope. Never revert peer work or expand that scope. Return NOT_CHECKED for anything not inspected. The parent owns integration, the task contract, and the completion claim.

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. 14d ago Changed · +2 lines 26ee8f8ef06a
  2. 26d ago Changed a42a3beaba98
  3. 1mo ago Changed 4d29e227a026
  4. 1mo ago Changed · +3 lines · +3 tokens per session fcfa08fd1d0f
  5. 2mo ago Changed · -3 lines · -5 tokens per session d208b4a6f096
  6. 2mo ago Changed · +6 lines · +5 tokens per session e17459c3e8ef
  7. 3mo ago First seen · 13 lines · 34 tokens per session scan A b1145729afc1

Subscribe to this mod's changes

code-quality-cleaner is an agent published in the GitHub repository tdwhere123/do-it (28 stars, last pushed 14d ago), licensed MIT. It adds 37 tokens to every session and 461 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-30.

Related

code-quality-cleaner compared with agents from other repositories

code-quality-cleaner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-quality-cleanertdwhere123/do-itAgent2814d agoMITA37Claude Code
refactor-expertalirezarezvani/claude-code-tresorAgent79021d agoMITA34Claude Code
adversarial-revieweralvin-reyes/better-agentic-ideAgent3812d agoMITA43Claude Code
arch-reviewsergeyklay/.agentsAgent65d agoApache-2.0A122Claude Code
rn-code-reviewerLykhoyda/rn-dev-agentAgent201mo agoMITA234Claude Code
reviewerkohj1018/agentic-dev-harnessAgent22mo agoMITA28Claude Code
validatorkohj1018/agentic-dev-harnessAgent22mo agoMITA22Claude Code