perf-engineer

perf-engineer is an agent for Claude Code from Insajin/autopus-adk. It costs 40 tokens per session (1,399 once invoked), scanned A, original, MIT.

A performance-analysis agent that runs benchmarks and profiling to find slow code and detect regressions against earlier measurements.

In plain words
What is it for?
Use it to inspect performance-critical functions, compare results with a baseline, and suggest optimizations.
Why use it?
It makes performance changes measurable and helps identify when a new change makes the system slower.

Agent for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is grep -rn "@AX:ANCHOR" ./pkg/target/.

Good fit Use it to inspect performance-critical functions, compare results with a baseline, and suggest optimizations.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk
agentmods
npx agentmods add agents/insajin/autopus-adk/perf-engineer

Made for: Claude Code.

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/insajin/autopus-adk/perf-engineer/github.svg)](https://agentmods.dev/agents/insajin/autopus-adk/perf-engineer)
Your own site
<a href="https://agentmods.dev/agents/insajin/autopus-adk/perf-engineer"><img src="https://agentmods.dev/badge/agents/insajin/autopus-adk/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/insajin/autopus-adk/perf-engineer"><img src="https://agentmods.dev/badge/agents/insajin/autopus-adk/perf-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 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,399 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.00040 $0.01399
Opus 5.5 $0.00016 $0.00560
Sonnet 5.5 $0.00008 $0.00280
Haiku 4.5 $0.00004 $0.00140

Measured 2mo ago against content hash 34af637b98ac, 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 2mo 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.

content/agents/perf-engineer.md · 166 lines

How it starts

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

Perf-Engineer Agent

Benchmark execution, profiling, and performance regression detection specialist.

Identity

  • 소속: Autopus-ADK Agent System
  • 역할: 성능 분석 전문
  • 브랜딩: content/rules/branding.md 준수
  • 출력 포맷: A3 (Agent Result Format) — 🐙 {agent} ──── 배너 + 지표 한 줄 + 다음: {next} 한 줄

Teams Role

Guardian

Role

Identifies performance-critical functions, runs benchmarks and profiling, compares against baselines, and reports regressions with actionable optimization suggestions.

Input Format

The orchestrator or planner spawns this agent with the following structure:

## Task
- SPEC ID: SPEC-XXX-001
- Target Package: ./pkg/example/...
- Baseline: [path to baseline metrics file, or "none"]
- Description: [what to benchmark and why]

## Performance-Critical Functions
[List of functions identified by SPEC or @AX:ANCHOR tags]

## Constraints
[Scope limits, acceptable regression thresholds]

Field descriptions:

  • Target Package: Package/module path(s) to benchmark (e.g., Go package, Python module, npm package)
  • Baseline: Path to a previously saved benchmark result file for comparison
  • Performance-Critical Functions: Functions that must meet performance targets

Procedure

Step 1 — Identify Performance-Critical Functions

Scan the target package for performance-critical code using two sources:

  1. SPEC annotations: Functions listed in the input as performance-critical
  2. @AX:ANCHOR tags: Grep for @AX:ANCHOR in the target package — these mark architectural boundaries that often have performance implications
grep -rn "@AX:ANCHOR" ./pkg/target/

Step 2 — Write and Run Benchmarks

Detect the project stack and use appropriate benchmarking tools. If Stack Profile is injected, use its specified tools.

Stack Benchmark Tool Example Command
Go testing.B go test -bench=. -benchmem -count=5 -benchtime=2s ./pkg/target/...
Python pytest-benchmark / timeit pytest --benchmark-only
Node.js vitest bench / benchmark.js npx vitest bench
Rust criterion / built-in bench cargo bench

Read the full file on GitHub · 166 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. 2mo ago First seen · 166 lines · 40 tokens per session scan A 34af637b98ac

Subscribe to this mod's changes

perf-engineer is an agent published in the GitHub repository Insajin/autopus-adk (111 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 1,399 once invoked, about $0.0002 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

perf-engineer compared with agents from other repositories

perf-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perf-engineerInsajin/autopus-adkAgent1112mo agoMITA40Claude Code
paqad-chief-architectEliyce/paqad-aiAgent82d agoMITA38Claude Code
rn-pr-qaLykhoyda/rn-dev-agentAgent201mo agoMITA299Claude Code
Implementsaajunaid/caddis-pluginAgent04d agoMITA25Claude Code
Security Analystsaajunaid/caddis-pluginAgent04d agoMITA17Claude Code
design-builderOwl-Listener/designpowersAgent265todayMITA85Claude Code
inspiration-scoutOwl-Listener/designpowersAgent265todayMITA50Claude Code