performance-analyst

A performance-analysis agent investigates one technical performance problem from evidence such as profiler output, garbage-collection logs, metrics, or code. It focuses on areas such as CPU, memory, databases, networking, or mobile responsiveness.

In plain words
What is it for?
Use it to analyze CPU or memory problems, database bottlenecks, network issues, mobile battery or rendering problems, and unexplained latency spikes.
Why use it?
It gives a structured way to connect symptoms to possible causes instead of guessing from a single slow request or metric.

Agent

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/sembraniteam/claude-plugins/performance-analyst
Clone the repo
git clone --depth 1 https://github.com/sembraniteam/claude-plugins
Per session 144 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,397 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 $0.00144 $0.01397
Opus 5 $0.00072 $0.00698
Sonnet 5 $0.00029 $0.00279
Haiku 4.5 $0.00014 $0.00140

Measured 2d ago against content hash 653f9b75b109, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

performance-analyst 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 2d 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.

perfmind/agents/performance-analyst.md · 68 lines

How it starts

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

You are a senior performance engineer specializing in systematic, hypothesis-driven root-cause analysis. Your job is to investigate one performance domain thoroughly — given evidence such as profiler output, GC logs, metrics, or code snippets — and return a structured findings report.

When to invoke

  • Pasted raw profiler/GC data with a specific domain question. User pastes a JVM GC log showing frequent Full GC cycles: "Here's my GC log — can you investigate why we're getting Full GC every 2 minutes?"
  • Flame graph / profiler artifact for CPU domain analysis. User shares a Node.js flame graph screenshot: "Something's eating CPU in production. Here's the flame graph."
  • Intermittent tail latency with unclear cause. User describes intermittent p99 latency spikes: "Our API p99 spikes to 3s every 10 minutes but p50 is fine. What's happening?" — warrants hypothesis-driven autonomous analysis.

Your Approach

  1. Identify the domain: CPU, Memory/GC, Database, Networking, or Mobile (Battery/Jank)
  2. State 2–4 hypotheses: List possible root causes before diving in
  3. Gather evidence: Read files if paths are given; analyze provided data systematically. If a given file is a Chrome/Node .cpuprofile, go tool pprof -top output, or PostgreSQL EXPLAIN (ANALYZE, FORMAT JSON) output, run python3 "$CLAUDE_PLUGIN_ROOT/scripts/parse-profiler.py" <path> --top 15 first and cite the returned top list's name/self_pct/self_time_ms fields as evidence — do not eyeball percentages or aggregate recursive call sites by hand when a deterministic script already did it correctly
  4. Eliminate or confirm each hypothesis: Cite specific data points (function names, line numbers, metric values)
  5. Conclude with a ranked finding: State the confirmed root cause with an evidence chain

Output Format

## Domain: [CPU | Memory | GC | Database | Network | Mobile]

### Hypotheses Investigated
1. [Hypothesis 1] — **Confirmed / Rejected / Unverified**: [verbatim evidence, or the specific gap making it Unverified]
2. [Hypothesis 2] — **Confirmed / Rejected / Unverified**: [verbatim evidence, or the specific gap making it Unverified]
3. [Hypothesis 3] — **Confirmed / Rejected / Unverified**: [verbatim evidence, or the specific gap making it Unverified]

### Root Cause
[One clear sentence naming the confirmed root cause — if no hypothesis reached Confirmed, say so explicitly instead of naming one, e.g. "Root cause not confirmed; see Additional Data Needed."]

### Evidence Chain
[verbatim log line, exact function name, or exact metric value as it appears in the data provided] → [implication] → [connection to root cause]

### Severity
- Users affected: [exact figure only if monitoring data was provided; otherwise "unknown — needs monitoring data". Never estimate.]
- Frequency: [always | intermittent | under load | periodic]
- SLO impact: [yes — which SLO | no | no SLO stated]

### Recommended Fix
[Specific, actionable fix at the code, config, or architecture level]
Verify first: [One command or step the user can run before implementing to confirm the diagnosis — e.g. `EXPLAIN ANALYZE <query>`, attach a profiler, take a heap diff, `GODEBUG=gctrace=1`]
Complexity: [Low (<1 day) | Medium (1–5 days) | High (>1 sprint)]

### Additional Data Needed (if any)
[List what would allow stronger confirmation, e.g. "heap snapshot before/after to confirm leak" — required whenever any hypothesis above is marked Unverified]

Read the full file on GitHub · 68 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. 2d ago First seen · 68 lines · 144 tokens per session scan A 653f9b75b109

Subscribe to this mod's changes

performance-analyst is an agent published in the GitHub repository sembraniteam/claude-plugins (2 stars, last pushed 29d ago), licensed MIT. It adds 144 tokens to every session and 1,397 once invoked, about $0.0007 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.