performance-reviewer

performance-reviewer is an agent for Claude Code from huangjia2019/claude-code-engingeering-EN. It costs 73 tokens per session (327 once invoked), scanned A, a copy of performance-reviewer, MIT.

A code reviewer that looks only for performance problems, such as unnecessary database calls, slow repeated work, blocking input and output, or unbounded results.

In plain words
What is it for?
Use it to review code for issues such as N+1 queries, missing caching, inefficient loops, repeated parsing, blocking operations, and missing result limits.
Why use it?
It helps find code that may become slow or resource-heavy, while keeping the review focused on performance rather than security, style, or documentation.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review code for issues such as N+1 queries, missing caching, inefficient loops, repeated parsing, blocking operations, and missing result limits.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/huangjia2019/claude-code-engingeering-en/performance-reviewer
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/huangjia2019/claude-code-engingeering-EN

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/huangjia2019/claude-code-engingeering-en/performance-reviewer/github.svg)](https://agentmods.dev/agents/huangjia2019/claude-code-engingeering-en/performance-reviewer)
Your own site
<a href="https://agentmods.dev/agents/huangjia2019/claude-code-engingeering-en/performance-reviewer"><img src="https://agentmods.dev/badge/agents/huangjia2019/claude-code-engingeering-en/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/huangjia2019/claude-code-engingeering-en/performance-reviewer"><img src="https://agentmods.dev/badge/agents/huangjia2019/claude-code-engingeering-en/performance-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 327 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 100% copy Near-identical to another mod 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.00073 $0.00327
Opus 5.5 $0.00029 $0.00131
Sonnet 5.5 $0.00015 $0.00065
Haiku 4.5 $0.00007 $0.00033

Measured 2mo ago against content hash d4018f04a403, 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 2mo 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.

Origin

This is a copy

100% identical to performance-reviewer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ch04-subagents/multi-agent-review/.claude/agents/performance-reviewer.md · 42 lines

What it actually says

You are a performance-only reviewer. Your single job is to find performance smells. Stay in your lane.

Scope (only these)

  • N+1 query patterns (loop over IDs → per-iteration DB call)
  • Missing memoization / caching for repeated expensive ops
  • Synchronous I/O in async handlers (blocking the event loop)
  • Large array.push in loop with no preallocation (very high N)
  • O(N²) where O(N) exists (nested loops over same collection)
  • Repeated parsing of the same payload (JSON.parse same string twice)
  • Unbounded result sets (no LIMIT / pagination)

Output Format

## Performance Review

| Severity | Line | Issue | Estimated Impact | Fix |
|----------|------|-------|------------------|-----|
| HIGH     | 67   | N+1 — per-order user lookup | 50× queries on 50-cart endpoint | JOIN or batch fetch users |

Findings: N high, N medium, N low.

If no issues: No performance issues found in scope.

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. 2mo ago First seen · 42 lines · 73 tokens per session scan A d4018f04a403

Subscribe to this mod's changes

performance-reviewer is an agent published in the GitHub repository huangjia2019/claude-code-engingeering-EN (10 stars, last pushed 4mo ago), licensed MIT. It adds 73 tokens to every session and 327 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to performance-reviewer, differing in 0 lines, and is treated as a copy.

Related

performance-reviewer compared with agents from other repositories

performance-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performance-reviewerhuangjia2019/claude-code-engingeering-ENAgent104mo agoMITA73Claude Code
cpp-revieweraffaan-m/ECCAgent299kyesterdayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent4.1kyesterdayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6622d agoMITA63Claude Code
karimo-implementeropensesh/KARIMOAgent29025d agoApache-2.0A49Claude Code
atomic-auditordamusix/atomic-claudeAgent1165d agoMITA169Claude Code
reviewergenkovich/sddAgent19923d agoMITA81Claude Code