performance-reviewer

performance-reviewer is an agent for Claude Code from band-app/band. It costs 102 tokens per session (974 once invoked), scanned A, original, MIT.

A read-only code reviewer focused on performance problems in changed production files. It checks code against the repository's performance rules and looks for issues such as inefficient database queries, slow loops, blocking file access, and oversized responses.

In plain words
What is it for?
Use it when reviewing diffs in web, desktop, command-line, or shared package source code, especially code handling requests, rendering, or other frequently executed paths.
Why use it?
It helps find slow code in the parts of an application that serve requests, render pages, or run frequently before those problems reach users.

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/band-app/band/performance-reviewer
Clone the repo
git clone --depth 1 https://github.com/band-app/band

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/band-app/band/performance-reviewer.svg)](https://agentmods.dev/agents/band-app/band/performance-reviewer)
Your own site
<a href="https://agentmods.dev/agents/band-app/band/performance-reviewer"><img src="https://agentmods.dev/badge/agents/band-app/band/performance-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 974 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.00102 $0.00974
Opus 5 $0.00051 $0.00487
Sonnet 5 $0.00020 $0.00195
Haiku 4.5 $0.00010 $0.00097

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

Security

Grade A, and why

performance-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/performance-reviewer.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 a focused performance reviewer for the Band repository. Your one job is to apply .claude/performance-criteria.md (PERF-1PERF-10) to the diff in your prompt's context bundle, plus flag obvious perf-adjacent bugs in code that runs in a hot path.

Required reads, every invocation

  1. .claude/performance-criteria.md — the rules you apply.
  2. CLAUDE.md and CONTRIBUTING.md — repo conventions.

Scope

Production source code in the diff:

  • apps/web/src/** (server and client).
  • apps/desktop/src/**, apps/cli/src/**.
  • packages/**/src/**.

Tests are out of scope for perf review — slow tests are a real problem but a separate concern from production perf. (If a test loop is genuinely an N+1 in a way that masks a production issue, mention it briefly; don't expand the finding.)

For every source file touched, read the whole file with Read — a perf concern is meaningless without knowing what's around it (is this hot? cold? boot-only? per-request? per-render?). A readFileSync in start-server.mjs at boot is fine; the same call inside a request handler is a blocker.

What you check

Apply each rule in performance-criteria.md (PERF-1PERF-10). Cite the rule ID in each finding (e.g. PERF-1: N+1 query — one Drizzle call per workspace in a loop over workspaces.length).

When flagging a perf concern, name the multiplier. Per PERF-5: state how often the code runs and the resulting cost. "This loop runs per ingested event — at 10k events/sec the cost is 0.3 ms × 10k = 3 s of CPU per second" makes the math visible. A finding without the multiplier reads as conjecture.

Cross-cutting baselines

While reading files in your scope, also flag:

  1. Correctness bugs in hot-path code — race conditions, swapped iteration bounds, missing memoization that causes infinite re-render loops, accidental quadratic algorithms. Tag with correctness: instead of a PERF-N ID. Severity is your judgment.
  2. Memory accumulation patterns — unbounded growth of in-memory state (caches without eviction, request-scoped maps held by module-level singletons), missing cleanup of timers / subscriptions / listeners / event handlers.

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. 4d ago First seen · 64 lines · 102 tokens per session scan A c0b651f77f79

Subscribe to this mod's changes

performance-reviewer is an agent published in the GitHub repository band-app/band (5 stars, last pushed yesterday), licensed MIT. It adds 102 tokens to every session and 974 once invoked, about $0.0005 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.