band: Agent for Claude Code

.claude/agents/performance-reviewer.md

performance-reviewer is an agent for Claude Code from band-app/band. It costs 102 tokens per session (984 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

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is band-app/band's own configuration. It tells Claude Code how to work on band 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 band configures →

Reuse

Borrowing it

Nothing to install: this file belongs to band-app/band. 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/band-app/band/main/.claude/agents/performance-reviewer.md
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/github.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/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 performance-reviewer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 984 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.00102 $0.00984
Opus 5.5 $0.00041 $0.00394
Sonnet 5.5 $0.00020 $0.00197
Haiku 4.5 $0.00010 $0.00098

Measured 25d ago against content hash 5d72d03ba16d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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-1…PERF-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/hub/src/** (server) and apps/web/src/** (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-1…PERF-10). Cite the rule ID in each finding (e.g. PERF-1: N+1 query — one Drizzle call per worktree in a loop over worktrees.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. 25d ago Changed 5d72d03ba16d
  2. 26d ago Changed 0167407dc43d
  3. 2mo 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 today), licensed MIT. It adds 102 tokens to every session and 984 once invoked, about $0.0004 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-31.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

review-obsidian-guidelines

Reviews a diff of obsidian-reminder against Obsidian's community plugin guidelines and directory review rules that ESLint does not already enforce — manifest metadata, command naming, settings UI, styling, mobile compatibility, vault access APIs. Used by the pr-review workflow; read-only.

uphy/obsidian-reminder · 63 tokens

karimo-implementer

Executes coding tasks (complexity 1-4) from KARIMO PRDs. Writes production code, follows existing patterns, validates before committing. Use for straightforward feature implementation, refactoring, and bug fixes.

opensesh/KARIMO · 49 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens