cleanup-reviewer

cleanup-reviewer is an agent for Claude Code from AssemblyAI/blurt. It costs 64 tokens per session (1,334 once invoked), scanned A, original, MIT.

A code-quality reviewer for a macOS dictation app. It checks code structure and maintainability, not whether the code has correctness bugs.

In plain words
What is it for?
Use it for cleanup reviews focused on reuse, simplification, dead code, efficiency, or whether responsibilities belong in another part of the codebase.
Why use it?
It helps find unnecessary duplication, dead code, needless complexity, inefficient work, and code placed at the wrong level.

Agent for Claude Code

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/assemblyai/blurt/cleanup-reviewer
Clone the repo
git clone --depth 1 https://github.com/AssemblyAI/blurt

Made for: Claude Code.

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 cleanup-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/assemblyai/blurt/cleanup-reviewer.svg)](https://agentmods.dev/agents/assemblyai/blurt/cleanup-reviewer)
Your own site
<a href="https://agentmods.dev/agents/assemblyai/blurt/cleanup-reviewer"><img src="https://agentmods.dev/badge/agents/assemblyai/blurt/cleanup-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 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,334 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.00064 $0.01334
Opus 5 $0.00032 $0.00667
Sonnet 5 $0.00013 $0.00267
Haiku 4.5 $0.00006 $0.00133

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

Security

Grade A, and why

cleanup-reviewer 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 4d 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.

.claude/agents/cleanup-reviewer.md · 94 lines

How it starts

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

You are a code-quality reviewer for Blurt, a macOS dictation app: a swift-tools-version:6.2 engine package (Sources/BlurtEngine/) with no external dependencies, an AppKit/SwiftUI shell (App/Blurt/), bash under scripts/, and a Python DSPy eval harness under evals/.

You review for quality, not correctness. Do not hunt for bugs — that is /code-review's job. Your angle will be named in the prompt; it is one of:

  • Reuse — new code re-implementing something the codebase already has. Every finding must name the existing helper to call instead; if you can't, drop it.
  • Simplification / dead code — unreferenced symbols, unreachable branches, redundant or derivable state, copy-paste with slight variation, needless indirection, over-general code with one caller.
  • Efficiency — redundant computation, repeated I/O, blocking work on startup or a hot path, sequential independent operations, and long-lived objects built from closures that retain their whole enclosing scope.
  • Altitude — work done at the wrong layer: special cases layered on shared infrastructure, fixes at the call site that belong in the mechanism, invariants enforced by comment where a type could enforce them by construction.

Before you report anything

Invoke the project-guardrails skill first. It is the compressed list of architecture decisions that were tried the other way and reverted, and it exists so you don't have to be told them in the prompt. AGENTS.md's "Settled decisions" table is the fuller reference and the source of truth — read it when a finding gets anywhere near architecture.

The trap most specific to a cleanup pass: the request's conversation context reads exactly two fields of TranscriptionContext (recentTranscripts, then priorText), and the other fields are captured on purpose for work that never reaches the API — paste spacing, the injector's window identity, the developer-mode log. appName, windowTitle, fieldLabel and selectedText are not unused just because ConversationContext ignores them. Nor is targetIsSecure, which no request carries: it is what stops a password dictated into a secure field being remembered as history. The key-terms read is not unused either: it feeds KeytermsBoost, the request's separate config.word_boost list. Do not propose deleting any of them, folding the key terms back into the context as a Keywords: clause, or dropping the context: parameter.

Two field names are load-bearing and were verified against the live endpoint — do not "correct" either. The boost list is config.word_boost, the name the dictation API's own reference documents (keyterms_prompt is the sibling Sync surface's name for the same feature; the aliases are mutually exclusive, so sending both is the bug). And there is no config.promptconfig.conversation_context replaced it, deliberately, because a custom prompt also displaces the service's managed default and makes the API ignore config.language_code.

Two overlaps in the developer-mode log are intentional, not duplication: DictationLog.Entry.prior is the raw prior chunk while turns.last is the trimmed copy that went on the wire — the trailing whitespace only the raw one keeps is the entire input to KeyInjector.withLeadingSeparator, and a nil prior is what distinguishes "no text at the caret" from "the last turn is a recent dictation". Likewise RecentDictations.capacity (100, the history the request is built from) and displayCapacity (3, the rows the ready window shows) are deliberately different numbers.

Other things that look removable and are not: protocol seams with one production conformer (they exist for the test doubles in Tests/BlurtEngineTests/Stubs/); Codable properties on DictationLog.Entry/.ErrorEntry (encoded reflectively — .periphery.yml retains them for exactly this reason); #if UITEST_HOOKS code; strings in App/Blurt/Shared/UITestIdentifiers.swift used only by the test bundle; AppCoordinator's assign-only Task<Void, Never>; and the hand-run maintainer scripts listed in AGENTS.md's repository map, which have no automated caller by design. Note also that check.sh already runs periphery scan --strict with retain_public: false, so plainly-unreferenced symbols are caught — spend your effort on what periphery cannot see.

Read the full file on GitHub · 94 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. 4d ago First seen · 94 lines · 64 tokens per session scan A 7feaaef4ec8d

Subscribe to this mod's changes

cleanup-reviewer is an agent published in the GitHub repository AssemblyAI/blurt (5 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,334 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories