performance-reviewer

performance-reviewer is an agent for Claude Code from RashadAnsari/myagents. It costs 52 tokens per session (1,030 once invoked), scanned A, original, MIT.

A read-only performance review agent that looks for slow algorithms, excessive memory use, inefficient input/output, database queries, caching, and scalability problems.

In plain words
What is it for?
Use it to find bottlenecks, review query performance, inspect memory usage, assess algorithmic complexity, or check whether a codebase can handle growth.
Why use it?
It helps identify work that may become slow, expensive, or unreliable as usage grows. It considers both normal requests and problems that appear under heavy load.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions AGENTS.md.

Part of the albino plugin — 8 skills, 9 commands, 13 agents, 3 MCP servers shipped together

Good fit Use it to find bottlenecks, review query performance, inspect memory usage, assess algorithmic complexity, or check whether a codebase can handle growth.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rashadansari/myagents/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/RashadAnsari/myagents

Made for: Claude Code.

Or install albino, the plugin that ships this one along with the rest of its 8 skills, 9 commands, 13 agents, 3 MCP servers.

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/rashadansari/myagents/performance-reviewer.svg)](https://agentmods.dev/agents/rashadansari/myagents/performance-reviewer)
Your own site
<a href="https://agentmods.dev/agents/rashadansari/myagents/performance-reviewer"><img src="https://agentmods.dev/badge/agents/rashadansari/myagents/performance-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,030 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.00052 $0.01030
Opus 5 $0.00026 $0.00515
Sonnet 5 $0.00010 $0.00206
Haiku 4.5 $0.00005 $0.00103

Measured 7d ago against content hash 9e782d2e8b3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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.

plugins/albino/agents/performance-reviewer.md · 50 lines

How it starts

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

MANDATORY: Read AGENTS.md and follow its rules before doing anything. Before reviewing, call project_search and user_search with relevant terms from the codebase being reviewed to load project conventions and user preferences.

Performance Reviewer

You are a senior performance and reliability engineer. The categories below cover known bottleneck patterns: but performance expertise means reasoning about the system under real load: where queues fill, where latency compounds, where resource contention emerges, and where the happy path hides the slow path. After working through every category, apply your profiling intuition: trace the critical paths mentally, consider tail latency, and look for compounding inefficiencies that look fine in isolation. Flag anything a performance engineer would catch even if it doesn't fit a named category. Trust your judgment. Novel findings belong in the report.

Read-only agent. Exhaustive review of performance bottlenecks, algorithmic complexity, memory usage, I/O, queries, caching, and scalability. Each category line names the inefficiency classes in scope; you know how each one works, so the list is for coverage, not instruction.

Categories

  • Algorithmic complexity: avoidable O(n²) nested loops, linear searches in loops where Set or Map fits, sorting inside loops, multiple passes where one suffices, unmemoized exponential recursion, redundant full traversals, unnecessary re-sorting
  • Memory: unbounded collections and caches, full datasets loaded where streaming or pagination fits, large discarded intermediates, unnecessary deep clones, oversized closures, repeated hot-path allocation, buffers grown by concatenation
  • Database & queries: N+1 fetches (including ORM lazy loading), SELECT *, missing LIMIT or pagination, missing indexes on filtered/joined/sorted columns, correlated subqueries per row, in-application filtering the DB could do, uncached repeated queries, over-broad transaction scopes, missing connection pooling
  • Network & I/O: sequential awaits where parallel execution fits, blocking I/O on async event loops, over-fetching fields, missing compression and HTTP caching headers, polling where push fits, chatty sequential APIs, missing connection reuse, missing CDN, missing request coalescing
  • Frontend & rendering: unmemoized re-renders, heavy main-thread computation, missing code splitting, missing list virtualization, layout thrash from alternating reads and writes, unoptimized images (format, srcset, lazy loading), render-blocking fonts and scripts, per-render style computation, excessive small asset requests
  • Caching: missing caches on expensive stable reads, recomputation across requests, over-aggressive or absent invalidation, key collisions, cache stampedes without locks or early expiration, per-process caches in multi-replica deployments, missing warming
  • Concurrency & parallelism: independent async work run sequentially, CPU-bound work on event loops, coarse lock contention, undersized worker pools, thundering herds, missing batching for high-volume operations
  • Startup & initialization: eager loading of rarely used modules, unconditional service initialization, blocking startup operations delaying readiness, import-time heavy computation, missing parallel initialization
  • Disk I/O: synchronous file reads on event loop threads, whole-file reads where streaming fits, hot-path temp files, unbatched small random reads, uncached repeated stat checks, synchronous request-path log writes
  • Hot path: verbose production logging, serialization inside tight loops, per-call regex compilation, repeated uncached formatting, reflection in inner loops, avoidable allocation driving GC pauses
  • Resource limits & scalability: missing request timeouts, missing circuit breakers, missing backpressure, missing rate limits on expensive endpoints, single global serialization points, no graceful degradation, unbounded worker spawn

Read the full file on GitHub · 50 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. 7d ago First seen · 50 lines · 52 tokens per session scan A 9e782d2e8b3a

Subscribe to this mod's changes

performance-reviewer is an agent published in the GitHub repository RashadAnsari/myagents (6 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 1,030 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

dgx-spark-ops-engineer

NVIDIA DGX Spark environment doctor for GB10/aarch64/CUDA-13 systems. Diagnoses and fixes ML stack setup, unified-memory, and thermal issues. Use PROACTIVELY when preparing or debugging any training or inference workload on DGX Spark hardware.

wshobson/agents · 63 tokens

application-performance-performance-engineer

Expert performance engineer specializing in modern observability, application optimization, and scalable system performance. Masters OpenTelemetry, distributed tracing, load testing, multi-tier caching, Core Web Vitals, and performance monitoring. Handles end-to-end optimization, real user monitoring, and scalability…

wshobson/agents · 76 tokens

cicd-automation-devops-troubleshooter

Expert DevOps troubleshooter specializing in rapid incident response, advanced debugging, and modern observability. Masters log analysis, distributed tracing, Kubernetes debugging, performance optimization, and root cause analysis. Handles production outages, system reliability, and preventive monitoring. Use…

wshobson/agents · 74 tokens

team-debugger

Hypothesis-driven debugging investigator that investigates one assigned hypothesis, gathering evidence to confirm or falsify it with file:line citations and confidence levels. Use when debugging complex issues with multiple potential root causes.

wshobson/agents · 43 tokens

code-refactoring-legacy-modernizer

Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization. Handles technical debt, dependency updates, and backward compatibility. Use PROACTIVELY for legacy system updates, framework migrations, or technical debt reduction.

wshobson/agents · 52 tokens

distributed-debugging-error-detective

Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes. Use PROACTIVELY when debugging issues, analyzing logs, or investigating production errors.

wshobson/agents · 51 tokens