performance-engineer

performance-engineer is an agent for Claude Code from KevinZai/commander. It costs 36 tokens per session (723 once invoked), scanned A, original, MIT.

A software performance agent that reads an application and identifies slow or wasteful parts without changing the files.

In plain words
What is it for?
Use it to inspect database queries, APIs, frontend rendering and bundles, memory use, infrastructure, and algorithms for performance problems.
Why use it?
It helps locate likely bottlenecks and estimate the effect of improvements before developers spend time implementing them.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the commander plugin — 22 agents, 29 hooks, 1 plugin shipped together

Good fit Use it to inspect database queries, APIs, frontend rendering and bundles, memory use, infrastructure, and algorithms for performance problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinzai/commander/performance-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/KevinZai/commander

Made for: Claude Code.

Or install commander, the plugin that ships this one along with the rest of its 22 agents, 29 hooks, 1 plugin.

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinzai/commander/performance-engineer/github.svg)](https://agentmods.dev/agents/kevinzai/commander/performance-engineer)
Your own site
<a href="https://agentmods.dev/agents/kevinzai/commander/performance-engineer"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/performance-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 performance-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinzai/commander/performance-engineer"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/performance-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 723 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.00036 $0.00723
Opus 5.5 $0.00014 $0.00289
Sonnet 5.5 $0.00007 $0.00145
Haiku 4.5 $0.00004 $0.00072

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

Security

Grade A, and why

performance-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 6d 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.

commander/cowork-plugin/agents/performance-engineer.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.

Performance engineer agent

Own the performance diagnosis for the scope the caller names. Identify where time, memory or bytes go, back every claim with a measurement or label it estimated, and return a ranked list of changes with expected impact. Do not modify files; the caller or a builder applies the fixes.

Protocol

  1. Define the metric and the baseline: p50/p95/p99 latency, throughput, memory, bundle size, or query time, with the input size and environment. If no baseline exists, measure one before analysis.
  2. Find the hot paths: entry points by call frequency (request handlers, render loops, event handlers, batch jobs). Use Grep for routes and loops over collections, and any existing profiles or benchmarks (Glob for bench/**, *.bench.*, *.prof).
  3. Measure with tools already available, without installing packages: the project's benchmark script, node --cpu-prof, python -m cProfile, go test -bench . -benchmem, cargo bench, EXPLAIN ANALYZE against a non-production database, or the bundler's stats output.
  4. Inspect each hot path for:
    • Database: N+1 queries, missing indexes, unbounded result sets, chatty transactions.
    • API: redundant round trips, oversized payloads, missing caching or compression.
    • Frontend: bundle size, render-blocking resources, unnecessary re-renders, layout thrash, missing code splitting.
    • Memory: leaks, unbounded caches, large allocations in loops, GC pressure.
    • Algorithms: quadratic work on realistic n, repeated computation without memoization.
    • Infrastructure: connection pooling, cold starts, under-used caches.
  5. Estimate impact for each candidate change from the measurement, and state confidence and effort.
  6. Rank by (impact × confidence) / effort. Separate quick wins from structural changes.
  7. Name the verification for each change: the exact benchmark or query to rerun and the expected result.

Output contract

## Performance report — <scope>

**Baseline:** <metric> = <value> (<input size, environment, runs>) — measured | estimated

### Hot paths
| Location | Frequency | Cost | Evidence |
|---|---|---|---|
| path:line | <per request/render> | <ms, MB, KB> | `<command>` |

### Recommendations (ranked)
1. <change> — path:line — expected <gain> — confidence high|medium|low — effort <hours> — verify with `<command>`

### Quick wins
- <rank refs>

### Structural changes
- <rank refs>

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. 6d ago Changed · -14 lines · +4 tokens per session f871fbdb4a0a
  2. 1mo ago First seen · 82 lines · 32 tokens per session scan A 6038f25f04e2

Subscribe to this mod's changes

performance-engineer is an agent published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 723 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

context-engineer

Expert in creating and refining all types of Claude Code resources: sub-agents, skills, plugins, slash commands, hooks, specs, workflows, templates, and patterns. Specializes in context engineering with deep knowledge of Claude SDK architecture, Anthropic best practices, and production-ready implementation patterns.…

andisab/swe-marketplace · 481 tokens

aws-cloud-architect

AWS cloud infrastructure architect specializing in designing, implementing, and optimizing scalable AWS solutions. Use for AWS service selection, architecture design, cost optimization, and security best practices for EC2, EKS, Fargate, and other AWS services.

andisab/swe-marketplace · 53 tokens

bulwark-implementer

Code-writing agent that implements fixes and features following Bulwark standards. Quality enforced by direct implementer-quality.sh invocation after each Write/Edit. Use proactively after a debug report (fix mode) or design document (feature mode) is ready for implementation.

QBall-Inc/the-bulwark · 57 tokens

pre-commit-tester

Use this agent to validate UI/UX changes before committing. Invoke when staged files match UI change patterns from config, or when the user wants visual feedback on pending changes. Context: User has made UI changes and wants to validate before committing. user: "Test the changes before I commit" assistant: "I'll use…

skullninja/coco-workflow · 159 tokens

test-writer-fixer

Use this agent when code changes have been made and you need to write new tests, run existing tests, analyze failures, and fix them while maintaining test integrity. This agent should be triggered proactively after code modifications to ensure comprehensive test coverage and suite health. Examples:\n\n \nContext: The…

composio-community/awesome-claude-plugins · 0 tokens

parallax

Use proactively for non-trivial implementation, refactoring, and debugging that needs explicit invariants, gated writes, verification, and an auditable trace.

Master0fFate/parallax-claudecode · 33 tokens