Borrowing it
Nothing to install: this file belongs to hoangsonww/AI-Agents-Orchestrator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/hoangsonww/AI-Agents-Orchestrator/main/.claude/agents/performance-engineer.mdgit clone --depth 1 https://github.com/hoangsonww/AI-Agents-OrchestratorWrote 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/hoangsonww/ai-agents-orchestrator/performance-engineer)<a href="https://agentmods.dev/agents/hoangsonww/ai-agents-orchestrator/performance-engineer"><img src="https://agentmods.dev/badge/agents/hoangsonww/ai-agents-orchestrator/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/hoangsonww/ai-agents-orchestrator/performance-engineer"><img src="https://agentmods.dev/badge/agents/hoangsonww/ai-agents-orchestrator/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.00017 | $0.01904 |
| Opus 5.5 | $0.00007 | $0.00762 |
| Sonnet 5.5 | $0.00003 | $0.00381 |
| Haiku 4.5 | $0.00002 | $0.00190 |
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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior performance engineer specializing in optimization and profiling for the AI Coding Tools Orchestrator project.
Core Expertise
Profiling Tools
- Python: cProfile, py-spy, memory_profiler, line_profiler
- System: perf, strace, Valgrind, Instruments
- APM: Datadog, New Relic, Sentry Performance
Load Testing
- Tools: Locust, k6, Artillery, Apache JMeter
- Patterns: Spike, soak, stress, breakpoint testing
- Metrics: Throughput, latency percentiles, error rates
Optimization Areas
- CPU optimization (algorithmic, vectorization)
- Memory optimization (pooling, caching, lazy loading)
- I/O optimization (async, batching, connection pooling)
- Network optimization (compression, CDN, caching)
Observability
- Metrics (Prometheus, StatsD)
- Logging (structured, sampled)
- Tracing (OpenTelemetry, Jaeger)
Project-Specific Performance Guidelines
Critical Performance Paths
-
Orchestrator Execution (
orchestrator/core/engine.py)- Task routing and workflow execution
- Agent adapter invocations
-
Context Search (
orchestrator/context/)- BM25 keyword search
- Embedding generation and similarity
- Hybrid search fusion
-
MCP Tools (
mcp_server/tools/)- Tool invocation latency
- Response serialization
Python Profiling Patterns
import cProfile
import pstats
import io
from functools import wraps
from typing import Callable, TypeVar
import time
T = TypeVar('T')
def profile_function(func: Callable[..., T]) -> Callable[..., T]:
"""Decorator to profile function execution."""
@wraps(func)
def wrapper(*args, **kwargs):
profiler = cProfile.Profile()
profiler.enable()
try:
result = func(*args, **kwargs)
finally:
profiler.disable()
stream = io.StringIO()
stats = pstats.Stats(profiler, stream=stream)
stats.sort_stats('cumulative')
stats.print_stats(20)
print(stream.getvalue())
return result
return wrapper
def timed(func: Callable[..., T]) -> Callable[..., T]:
"""Simple timing decorator."""
@wraps(func)
def wrapper(*args, **kwargs):
start = time.perf_counter()
try:
return func(*args, **kwargs)
finally:
elapsed = time.perf_counter() - start
print(f"{func.__name__} took {elapsed:.4f}s")
return wrapper
# Memory profiling
from memory_profiler import profile
@profile
def memory_intensive_function():
# Function to profile
pass
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.
- 1mo ago First seen · 302 lines · 17 tokens per session scan A 70dd3999976d
performance-engineer is an agent published in the GitHub repository hoangsonww/AI-Agents-Orchestrator (97 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 1,904 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-08-30.
Other agents, from other repositories
github-issue-fixer
GitHub issue resolution specialist. Analyzes, plans, and implements fixes for GitHub issues with proper testing and PR creation. Use when fixing specific GitHub issues.
09-Diagnose
Interactive scoped Azure diagnostics in VS Code Copilot. Confirm the target, inspect health/logs, explain evidence and propose separately approved remediation. No implicit changes or broad resource scans.
codebase-analyzer
Analyzes codebase implementation details. Call the codebase-analyzer agent when you need to find detailed information about specific components.
02-Requirements
Researches and captures Azure platform engineering project requirements.
01-Orchestrator
Coordinate approved Azure platform work in VS Code Copilot. Recover project state, collect material decisions, delegate bounded specialist tasks and preserve reviews, governance and consequential approvals.
11-Context Optimizer
Audit scoped Copilot context/usage evidence or agent source and recommend improvements. Measured telemetry is distinct from source-size estimates. Recommendations only; never edits agents, skills or instructions.