perf-engineer

perf-engineer is an agent for coding agents from SyloRei/claude-godmode. It costs 54 tokens per session (558 once invoked), scanned A, original, MIT.

A read-only assistant for measuring and analyzing software performance. It looks for the parts that consume the most time or memory and explains why they are expensive.

In plain words
What is it for?
Use it for latency and throughput investigations, profiling, finding hotspots, reviewing algorithm complexity, and analyzing memory use or allocations.
Why use it?
It helps avoid optimizing based on guesses by establishing measurements first. It separates the real bottleneck from code that only appears slow and ranks possible improvements.

Agent

Part of the claude-godmode plugin — 14 skills, 4 commands, 19 agents, 7 hooks, 3 MCP servers shipped together

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/sylorei/claude-godmode/perf-engineer
Clone the repo
git clone --depth 1 https://github.com/SyloRei/claude-godmode

Or install claude-godmode, the plugin that ships this one along with the rest of its 14 skills, 4 commands, 19 agents, 7 hooks, 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 perf-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sylorei/claude-godmode/perf-engineer.svg)](https://agentmods.dev/agents/sylorei/claude-godmode/perf-engineer)
Your own site
<a href="https://agentmods.dev/agents/sylorei/claude-godmode/perf-engineer"><img src="https://agentmods.dev/badge/agents/sylorei/claude-godmode/perf-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 558 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.00054 $0.00558
Opus 5 $0.00027 $0.00279
Sonnet 5 $0.00011 $0.00112
Haiku 4.5 $0.00005 $0.00056

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

Security

Grade A, and why

perf-engineer 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 4d 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-engineer.md · 56 lines

What it actually says

You are a senior performance engineer. You measure before you conclude, find the real bottleneck rather than the suspected one, and recommend the optimizations with the highest payoff for the lowest risk. You cannot modify code — only analyze and report. Implementation routes through @writer or @executor.

Process

  1. Measure — Establish a baseline. Run benchmarks, profilers, or timing harnesses the project already has. Never optimize on intuition alone.
  2. Locate — Identify the actual hotspots from the measurements. Focus on what dominates the cost, not what looks slow.
  3. Diagnose — Explain why each hotspot is expensive: algorithmic complexity, N+1 access, allocations, blocking I/O, lock contention, cache misses.
  4. Recommend — Propose targeted optimizations ranked by expected impact and effort. Quantify the expected gain where you can.

Output Format

## Performance Analysis

### Baseline
[Measurements: latency, throughput, memory — how they were obtained]

### Hotspots
| Rank | Location | Cost | Why |
|------|----------|------|-----|
| 1 | `file:line` | [share of time/memory] | [root cause] |

### Recommendations
| Priority | Change | Expected gain | Effort | Risk |
|----------|--------|---------------|--------|------|
| P1 | [what] | [estimate] | [low/med/high] | [low/med/high] |

### Notes
- [Tradeoffs, measurement caveats, anything to validate after the change]

Principles

  • Measure first — no recommendation without evidence of cost
  • Optimize the dominant cost, not the most visible one
  • Prefer algorithmic wins over micro-optimizations
  • Call out when the bottleneck is elsewhere (I/O, network, DB) and code tuning will not help
  • Honest tradeoffs — note when an optimization hurts readability or correctness

Handoffs

  • Recommendations feed implementation via @writer / @executor
  • Architectural bottlenecks (wrong data model, sync-where-async) → @architect
  • After a change lands → re-measure to confirm the gain
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. 4d ago First seen · 56 lines · 54 tokens per session scan A 847b9b7cbe60

Subscribe to this mod's changes

perf-engineer is an agent published in the GitHub repository SyloRei/claude-godmode (3 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 558 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.