SWE - Performance Reviewer

SWE - Performance Reviewer is an agent for Claude Code from chrisallenlane/claude-swe-workflows. It costs 48 tokens per session (1,709 once invoked), scanned A, original, MIT.

A software agent that reviews code for computational performance issues, such as slow algorithms or missing benchmarks. It gives advice but does not make the changes itself.

In plain words
What is it for?
Use it to review new algorithms, data-processing code, performance-sensitive changes, benchmarks, and profiling coverage.
Why use it?
It helps find likely slow paths and gaps in performance testing before they affect users or become harder to measure.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the claude-swe-workflows plugin — 22 skills, 37 agents shipped together

Good fit Use it to review new algorithms, data-processing code, performance-sensitive changes, benchmarks, and profiling coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/chrisallenlane/claude-swe-workflows/swe-perf-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/chrisallenlane/claude-swe-workflows

Made for: Claude Code.

Or install claude-swe-workflows, the plugin that ships this one along with the rest of its 22 skills, 37 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 SWE - Performance Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/chrisallenlane/claude-swe-workflows/swe-perf-reviewer/github.svg)](https://agentmods.dev/agents/chrisallenlane/claude-swe-workflows/swe-perf-reviewer)
Your own site
<a href="https://agentmods.dev/agents/chrisallenlane/claude-swe-workflows/swe-perf-reviewer"><img src="https://agentmods.dev/badge/agents/chrisallenlane/claude-swe-workflows/swe-perf-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 SWE - Performance Reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/chrisallenlane/claude-swe-workflows/swe-perf-reviewer"><img src="https://agentmods.dev/badge/agents/chrisallenlane/claude-swe-workflows/swe-perf-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 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,709 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.00048 $0.01709
Opus 5.5 $0.00019 $0.00684
Sonnet 5.5 $0.00010 $0.00342
Haiku 4.5 $0.00005 $0.00171

Measured 12d ago against content hash 96daa1d2f8d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

SWE - 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 12d 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/swe-perf-reviewer.md · 118 lines

How it starts

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

Purpose

You find compute-performance problems that matter at the scale this code actually runs: algorithms, memory, CPU, and I/O patterns. You also find the opposite problem, machinery built for a scale the code never reaches. You know the optimization catalog (complexity classes, allocation in loops, N+1 queries, lock contention). This document is about judgment: which items in that catalog are real here.

Two failure modes pull reviewers off course:

  • Scale-free alarm. Flagging O(n²) without asking what n is. A quadratic pass over 40 items is not a finding.
  • Infrastructure creep. Recommending benchmarks, profiling harnesses, or CI regression gates by reflex, because "critical code should have benchmarks." Infrastructure is a cost. It needs a scale argument like any other mechanism.

The Proportionality Rule

Every performance finding, and every performance mechanism you recommend, must state n and the cost at that n against a budget. A finding without a scale is an opinion. A mechanism without a scale argument is a downgrade candidate, however well built.

This is the same rule swe-arch-reviewer applies to architecture. Use it in both directions:

  • Too slow for its scale: an O(n²) path over a list that grows with user data, a query per row on a page that lists thousands, an allocation per frame in a 60 Hz loop. These are findings.
  • Too elaborate for its scale: a cache in front of a lookup that costs microseconds, a pool for objects created twice a second, a priority queue scheduling 50 items. These are also findings. Recommend the simpler implementation and say what it costs at n.

Establish n before costing anything. Get it from:

  • config limits and constants
  • schema and fixture sizes
  • design docs
  • loop bounds traceable to input
  • the domain itself ("one entry per installed package")

If n is unknowable from the repository, say so. Give the cost at a stated assumption and name what would settle it. Don't invent a production scale.

Read the full file on GitHub · 118 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. 12d ago Changed · -99 lines · +23 tokens per session 96daa1d2f8d3
  2. 3mo ago First seen · 217 lines · 25 tokens per session scan A a397f59e9622

Subscribe to this mod's changes

SWE - Performance Reviewer is an agent published in the GitHub repository chrisallenlane/claude-swe-workflows (21 stars, last pushed 13d ago), licensed MIT. It adds 48 tokens to every session and 1,709 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-30.

Related

SWE - Performance Reviewer compared with agents from other repositories

SWE - Performance Reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SWE - Performance Reviewerchrisallenlane/claude-swe-workflowsAgent2113d agoMITA48Claude Code
reviewerwesammustafa/Claude-Code-Everything-You-Need-to-KnowAgent3.7k2d agononeA35Claude Code
evidence-reviewerFlorianBruniaux/claude-code-ultimate-guideAgent7.5kyesterdayCC-BY-SA-4.0A20Claude Code
adversarial-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A142Claude Code
quality-engineereugenelim/agent-ready-repoAgent35todayApache-2.0A172Claude Code
security-reviewereugenelim/agent-ready-repoAgent35todayApache-2.0A277Claude Code
finding-adjudicatoreugenelim/agent-ready-repoAgent35todayApache-2.0A55Claude Code