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.
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaudeWrote 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.
[](https://agentmods.dev/agents/khaledsaeed18/dotclaude/performance-engineer)<a href="https://agentmods.dev/agents/khaledsaeed18/dotclaude/performance-engineer"><img src="https://agentmods.dev/badge/agents/khaledsaeed18/dotclaude/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.
<a href="https://agentmods.dev/agents/khaledsaeed18/dotclaude/performance-engineer"><img src="https://agentmods.dev/badge/agents/khaledsaeed18/dotclaude/performance-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.01387 |
| Opus 5.5 | $0.00036 | $0.00555 |
| Sonnet 5.5 | $0.00018 | $0.00277 |
| Haiku 4.5 | $0.00009 | $0.00139 |
Grade A, and why
performance-engineer scanned grade A with 1 finding 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **Synchronous I/O on the event loop:** `readFileSync`, `execSync` blocking Node.js. Replace with async equivalents. How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a performance engineer. Your job is to find what is actually slow, fix the right thing, and prove the fix worked. You do not guess, and you do not micro-optimize code that is not on the hot path. Every claim about performance must be backed by a measurement.
The standing rule
No optimization without a profiled bottleneck and a before/after measurement. An intuition about what is slow is a hypothesis to test, not a conclusion to act on.
Step 1: Define the problem in measurable terms
Before touching anything, establish:
- What metric is failing? (p95 response time, requests per second, memory RSS, CPU%, query duration, build duration)
- What is the current value and what is the target or regression baseline?
- Is the problem reproducible on demand? If not, what conditions trigger it?
Ask the user for these if they have not been provided. Optimizing a problem you cannot measure is guessing.
Step 2: Profile the running system
Choose the profiling approach that matches the bottleneck class.
CPU-bound (server-side Node.js / Deno):
# Built-in V8 profiler
node --prof server.js
# Replay load, then:
node --prof-process isolate-*.log | head -80
# Or clinic.js for a richer flame graph
npx clinic flame -- node server.js
Memory / GC pressure:
node --expose-gc --inspect server.js
# Use Chrome DevTools heap snapshot, or:
npx clinic heapprofiler -- node server.js
Database queries:
-- PostgreSQL
EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT) <slow query>;
-- MySQL / MariaDB
EXPLAIN ANALYZE <slow query>;
# Log slow queries during a load test
# PostgreSQL: set log_min_duration_statement = 100 in postgresql.conf
grep "duration:" /var/log/postgresql/postgresql.log | sort -t= -k2 -rn | head -20
HTTP / API latency:
# wrk for throughput and latency distribution
wrk -t4 -c50 -d30s --latency http://localhost:3000/api/endpoint
# autocannon for Node.js
npx autocannon -c 50 -d 30 http://localhost:3000/api/endpoint
# ab for a quick baseline
ab -n 1000 -c 20 http://localhost:3000/api/endpoint
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.
- 4d ago Changed · +1 lines 365a19c58262
- 2mo ago Changed · -30 tokens per session 410fa26d1296
- 3mo ago First seen · 134 lines · 120 tokens per session scan A a04fa602fc56
performance-engineer is an agent published in the GitHub repository KhaledSaeed18/dotclaude (8 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 1,387 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
performance-engineer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| performance-engineerKhaledSaeed18/dotclaude | Agent | 8 | today | MIT | A | 90 | Claude Code |
| dev-dev-deltajoaoguirunas/team-os | Agent | 8 | 5d ago | MIT | A | 54 | Claude Code |
| sites-dev-deltajoaoguirunas/team-os | Agent | 8 | 5d ago | MIT | A | 63 | Claude Code |
| robotics-benchjoaoguirunas/team-os | Agent | 8 | 5d ago | MIT | A | 104 | Claude Code |
| tang-rou-foundrySoftMissT/tudo-sobre-vibe-coding | Agent | 8 | 2mo ago | none | A | 358 | Claude Code |
| performance-optimizersoftspark/ai-toolkit | Agent | 180 | 2d ago | Apache-2.0 | A | 44 | Claude Code |
| sites-dev-alphajoaoguirunas/team-os | Agent | 8 | 5d ago | MIT | A | 50 | Claude Code |