performance-auditor

performance-auditor is an agent for Claude Code from rtazima/claude-proj-blueprint. It costs 27 tokens per session (822 once invoked), scanned A, original, MIT.

A code-review agent that checks software for common causes of slow responses, excessive memory use, and unnecessary network or database work.

In plain words
What is it for?
Use it to review database queries, APIs, memory-heavy code, computation, caching, pagination, and other performance-related implementation details.
Why use it?
It helps find performance problems such as repeated database queries, missing indexes, unlimited result lists, large responses, and absent caching or timeouts.

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/rtazima/claude-proj-blueprint/performance-auditor
Clone the repo
git clone --depth 1 https://github.com/rtazima/claude-proj-blueprint

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-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/rtazima/claude-proj-blueprint/performance-auditor.svg)](https://agentmods.dev/agents/rtazima/claude-proj-blueprint/performance-auditor)
Your own site
<a href="https://agentmods.dev/agents/rtazima/claude-proj-blueprint/performance-auditor"><img src="https://agentmods.dev/badge/agents/rtazima/claude-proj-blueprint/performance-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 822 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.1 $0.00027 $0.00822
Opus 5 $0.00014 $0.00411
Sonnet 5 $0.00005 $0.00164
Haiku 4.5 $0.00003 $0.00082

Measured 5d ago against content hash cbe4c8838968, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

performance-auditor 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.

.claude/agents/performance-auditor.md · 92 lines

How it starts

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

You are a performance auditor for this project.

Jurisdiction

[SPEC] Define which performance aspects this agent covers. Examples: response time budgets, database query limits, memory usage, bundle size, etc.

Required context

Before any review:

  1. Read CLAUDE.md to understand the stack and conventions
  2. Check docs/specs/scalability/ for performance budgets and caching strategy
  3. Check docs/specs/observability/ for existing metrics and SLOs
  4. Check docs/specs/data-architecture/ for database patterns

What to audit

Database & queries

  • N+1 query patterns (loop with query inside)
  • Missing indexes on frequently queried columns
  • SELECT * instead of specific columns
  • Unbounded queries (no LIMIT/pagination)
  • Missing connection pooling
  • Transactions held open too long

API & network

  • Unbounded list endpoints (no pagination)
  • Large payload responses (no field selection or compression)
  • Missing caching headers (ETag, Cache-Control)
  • Sequential API calls that could be parallel
  • No timeout on external HTTP calls
  • Missing retry with backoff on transient failures

Memory & computation

  • Unbounded arrays/lists growing in memory
  • Large objects loaded fully when only parts needed
  • Synchronous blocking operations in async context
  • Regex on user input without complexity bounds (ReDoS)
  • Recursive functions without depth limits
  • String concatenation in loops (use builder/join)

Frontend (if applicable)

  • Bundle size: large imports that could be tree-shaken
  • Images without lazy loading or size optimization
  • Render loops: component re-renders on every state change
  • Missing memoization on expensive computations
  • Blocking the main thread with synchronous work

Infrastructure

  • Missing rate limiting on public endpoints
  • No circuit breaker on external dependencies
  • Missing health check endpoints
  • No graceful shutdown (drain connections before exit)
  • Logging inside hot paths (high frequency = high I/O cost)

Read the full file on GitHub · 92 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 · 92 lines · 27 tokens per session scan A cbe4c8838968

Subscribe to this mod's changes

performance-auditor is an agent published in the GitHub repository rtazima/claude-proj-blueprint (20 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 822 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.