perf-engineer

perf-engineer is an agent for Claude Code from jdanigo/hydraia. It costs 67 tokens per session (725 once invoked), scanned A, original, MIT.

A read-only performance investigator for the Hydraia software pipeline. It measures a baseline, uses profiling tools to find bottlenecks, and separates evidence from predicted improvements.

In plain words
What is it for?
Use it to investigate slow code, requests, jobs, or pipelines; compare results with targets such as response-time percentiles; and identify which measured bottlenecks matter most.
Why use it?
It prevents teams from guessing why software is slow or treating predictions as facts. If measurements are missing, it returns a plan for collecting them instead of analyzing guesses.

Agent for Claude Code

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

Part of the hydraia plugin — 52 skills, 17 commands, 27 agents, 6 hooks shipped together

Good fit Use it to investigate slow code, requests, jobs, or pipelines; compare results with targets such as response-time percentiles; and identify which measured bottlenecks matter most.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jdanigo/hydraia/perf-engineer
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/jdanigo/hydraia

Made for: Claude Code.

Or install hydraia, the plugin that ships this one along with the rest of its 52 skills, 17 commands, 27 agents, 6 hooks.

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/jdanigo/hydraia/perf-engineer/github.svg)](https://agentmods.dev/agents/jdanigo/hydraia/perf-engineer)
Your own site
<a href="https://agentmods.dev/agents/jdanigo/hydraia/perf-engineer"><img src="https://agentmods.dev/badge/agents/jdanigo/hydraia/perf-engineer/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 perf-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jdanigo/hydraia/perf-engineer"><img src="https://agentmods.dev/badge/agents/jdanigo/hydraia/perf-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 725 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.00067 $0.00725
Opus 5.5 $0.00027 $0.00290
Sonnet 5.5 $0.00013 $0.00145
Haiku 4.5 $0.00007 $0.00072

Measured 22d ago against content hash 3b52d2bce6ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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 · 38 lines

How it starts

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

You diagnose performance problems. You are dispatched with a symptom description, repo access, and (when available) existing measurements. You have no session history.

Non-negotiable rules

  • Baseline or bust. No analysis on guessed numbers, ever. If no measurement exists for the symptom, your ENTIRE output is the measurement plan: the exact commands for this repo/stack (profiler, benchmark, timing harness), what each will show, and what representative data/load to use. Then stop.
  • Read-only. Bash is for running profilers, benchmarks, and diagnostics only. You never edit source, never install packages, never run load tests against shared or production environments (forbidden without explicit human instruction relayed in your dispatch prompt).
  • Data over adjectives. "p95 480ms, target 200ms" — never "the code is slow". Every claim carries its number and where it came from.
  • Fact vs hypothesis stay separated. Measured evidence and expected-gain predictions live in different sections; never blend them.
  • Redact data. Profiles, traces, and logs may contain real values — replace literals with <redacted> in your report. Never copy credentials or connection strings.

Method (in order)

  1. Express the symptom as a metric: latency (p50/p95/p99), throughput, CPU %, memory RSS/heap, bundle size KB, query ms, startup ms. Pick the one(s) the symptom actually describes.
  2. Baseline. Run (or request) the measurement. Record: command, environment, dataset size, number of runs, variance. A single noisy run is not a baseline — repeat and report spread.
  3. Profile and rank. Use the USE lens for resources (utilization, saturation, errors) and RED for services (rate, errors, duration). Rank bottlenecks by measured contribution to the symptom metric. Evidence per bottleneck: profile excerpt, flamegraph hotspot, timing breakdown.
  4. Hypotheses. For each ranked bottleneck: proposed change, expected gain (estimate with reasoning), risk, blast radius (query the code graph for call sites). Explicitly list what NOT to optimize and why (measured contribution too small).
  5. Delegate DB findings. Slow queries, lock waits, missing indexes, N+1 patterns → state "DB-shaped, hand to db-performance-tuner" with the evidence. Do not guess at SQL tuning yourself.

Read the full file on GitHub · 38 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. 22d ago Changed 3b52d2bce6ee
  2. 1mo ago First seen · 38 lines · 67 tokens per session scan A 7c77d4de708f

Subscribe to this mod's changes

perf-engineer is an agent published in the GitHub repository jdanigo/hydraia (8 stars, last pushed 23d ago), licensed MIT. It adds 67 tokens to every session and 725 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

streaming-reviewer

Streaming / event-driven pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off delivery-guarantee + ordering decisions before senior-dev claims tasks.

avelikiy/great_cto · 38 tokens

performance_engineer

Performance engineering specialist for bottleneck identification, profiling, and optimization. Use when the task requires performance analysis, load testing setup, memory profiling, or algorithmic optimization. For example: profiling CPU hotspots, reducing memory allocations, or optimizing database query plans.

josstei/maestro-orchestrate · 54 tokens

error-handling-reviewer

Hunts for swallowed errors, silent failures, and broken error propagation chains in changed code.

OutSystems/outsystems-mcp · 24 tokens

challenger

Use when: before the lead reports a root-cause conclusion, a 'done/verified' claim, an irreversible action about to run (commit/deploy/rm/push), or a 2nd-time fix — in APEX or plain conversation; also every eLicit round and Verify gate. Do NOT use for: code correctness/lint/types/API usage (sniper's job), or as a veto…

fusengine/agents · 92 tokens

bug-detector

Detects correctness bugs, logic errors, edge cases, API misuse, and error handling issues in code changes.

liatrio-labs/claude-code-gauntlet · 25 tokens

ia-performance-oracle

Analyzes code for performance bottlenecks, algorithmic complexity, database queries, memory usage, and scalability. Use after implementing features or when performance concerns arise.

iliaal/whetstone · 37 tokens