perf-engineer

perf-engineer is an agent for coding agents 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

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/insajin/autopus-adk/perf-engineer
Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk

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.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.svg" alt="Measured on agentmods" 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. 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.00040 $0.01399
Opus 5 $0.00020 $0.00700
Sonnet 5 $0.00008 $0.00280
Haiku 4.5 $0.00004 $0.00140

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

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. yesterday 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 (105 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,399 once invoked, about $0.0002 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-09-03.

Related

Other agents, from other repositories

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

Audit

Deep security + performance audit of a specific diff. Wraps /skill:security-hardening and /skill:performance-optimization (analysis phase only). Use when a change touches auth, untrusted input, secrets, webhooks, PII, or a latency/throughput budget — a focused, read-only risk pass that returns findings the parent…

BlackBeltTechnology/pi-agent-dashboard · 98 tokens

team-member

Standard AI Team OS team member agent.

CronusL-1141/AI-company · 10 tokens

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

inspiration-scout

Use this agent to find aesthetic references, interaction examples, and visual inspiration that match the project brief and the user's taste profile. Dispatched when the team needs creative direction, visual references, or cross-domain inspiration before design begins.

Owl-Listener/designpowers · 50 tokens

foundation_architecture

Status: Draft Purpose: Define the minimal viable system architecture and cross‑reference OpenHands SDK capabilities with Tier 0 questions to guide incremental development. Related: ./openhandsinsightsandprioritization.md, ./implementationquestions.md, ./design/multiagentorchestration.md.

kivo360/OmoiOS · 0 tokens