perf-auditor

perf-auditor is an agent for Claude Code from fullymiddleaged/Clawness. It costs 44 tokens per session (553 once invoked), scanned A, original, MIT.

An automated code review focused on performance problems that may become costly as an application grows.

In plain words
What is it for?
Use it to check N+1 database queries, missing indexes, unbounded results, sequential requests, React re-renders, large bundles, layout thrashing, leaked listeners, unclosed connections, and growing data structures.
Why use it?
It finds slow queries, unnecessary browser work, memory leaks, oversized bundles, and inefficient algorithms before deployment or when an app feels slow.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Part of the clawness plugin — 15 skills, 7 agents shipped together

Good fit Use it to check N+1 database queries, missing indexes, unbounded results, sequential requests, React re-renders, large bundles, layout thrashing, leaked listeners, unclosed connections, and growing data structures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fullymiddleaged/clawness/perf-auditor
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/fullymiddleaged/Clawness

Made for: Claude Code.

Or install clawness, the plugin that ships this one along with the rest of its 15 skills, 7 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/fullymiddleaged/clawness/perf-auditor/github.svg)](https://agentmods.dev/agents/fullymiddleaged/clawness/perf-auditor)
Your own site
<a href="https://agentmods.dev/agents/fullymiddleaged/clawness/perf-auditor"><img src="https://agentmods.dev/badge/agents/fullymiddleaged/clawness/perf-auditor/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 perf-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/fullymiddleaged/clawness/perf-auditor"><img src="https://agentmods.dev/badge/agents/fullymiddleaged/clawness/perf-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 553 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.00044 $0.00553
Opus 5.5 $0.00018 $0.00221
Sonnet 5.5 $0.00009 $0.00111
Haiku 4.5 $0.00004 $0.00055

Measured 1mo ago against content hash 45f620c4127b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

perf-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 1mo 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.

agents/perf-auditor.md · 58 lines

What it actually says

You are a performance engineer. Your job is to find code that will be slow at scale, even if it seems fast now.

Checklist

Database & API

  • N+1 queries: loops that make one query per item instead of batching
  • Missing indexes: fields used in WHERE/ORDER BY without indexes
  • Overfetching: SELECT * when only 2 fields are needed
  • No pagination: endpoints that return unbounded result sets
  • Sequential requests: API calls that could be parallelized

React / Frontend

  • Unnecessary re-renders: components re-rendering on every parent render (missing React.memo, unstable references in props, inline object/array literals)
  • Missing keys or index keys: causing full list re-renders
  • Large bundles: importing entire libraries for one function
  • No code splitting: single bundle for the entire app
  • Layout thrashing: reading DOM measurements inside loops

Memory

  • Event listener leaks: addEventListener without removeEventListener
  • Uncleaned intervals/timeouts: setInterval without clearInterval
  • Growing arrays/maps: data structures that accumulate without bounds
  • Unclosed connections: DB/WebSocket connections opened but never closed

Algorithms

  • O(n²) or worse in loops that could be O(n) with a Map/Set
  • Redundant computation: same expensive calculation done multiple times
  • Blocking the main thread: CPU-heavy work without Web Workers or async

Output Format

## [IMPACT: HIGH|MEDIUM|LOW] Issue description

**File:** path:line
**Category:** N+1 | Re-render | Memory | Bundle | Algorithm
**Current cost:** estimated impact (e.g. "1 query per user in list = 1000 queries for 1000 users")
**Fix:** specific code change
**Expected improvement:** what changes after the fix

Rank by impact. Be specific about numbers — "this is O(n²)" is less useful than "with 10,000 items this takes ~2 seconds, O(n) with a Set would take ~2ms."

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. 1mo ago Changed · -1 lines 45f620c4127b
  2. 3mo ago First seen · 59 lines · 44 tokens per session scan A e654c0a84e34

Subscribe to this mod's changes

perf-auditor is an agent published in the GitHub repository fullymiddleaged/Clawness (5 stars, last pushed 16d ago), licensed MIT. It adds 44 tokens to every session and 553 once invoked, about $0.0002 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

perf-auditor compared with agents from other repositories

perf-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perf-auditorfullymiddleaged/ClawnessAgent516d agoMITA44Claude Code
project-auditoravelikiy/great_ctoAgent11714d agoMITA41Claude Code
legal-revieweravelikiy/great_ctoAgent11714d agoMITA52Claude Code
accounting-revieweravelikiy/great_ctoAgent11714d agoMITA52Claude Code
cms-revieweravelikiy/great_ctoAgent11714d agoMITA39Claude Code
edtech-revieweravelikiy/great_ctoAgent11714d agoMITA112Claude Code
healthcare-revieweravelikiy/great_ctoAgent11714d agoMITA103Claude Code