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.
npx agentmods add agents/hoangsonww/ai-agents-orchestrator/performance-engineergit 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.svg" alt="Measured on agentmods" 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 | $0.00009 | $0.00952 |
| Sonnet 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 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.
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.
- 6d 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 (84 stars, last pushed 20d ago), licensed MIT. It adds 17 tokens to every session and 1,904 once invoked, about $0.0001 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-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 diagnostic agent that guides users through Azure resource health assessment, issue identification, and remediation planning. Approval-first execution, single-resource scope, reports to agent-output/{project}/.
explore
Evidence-gathering lane. Locates files, traces, logs, runtime state, and implementation signals before action is taken.
codebase-analyzer
Analyzes codebase implementation details. Call the codebase-analyzer agent when you need to find detailed information about specific components.
codex-pre-edit-tracking-investigation
Status: STUCK. Three approaches tried, none reliably solves the pre-edit race for update-kind filechange items. This doc captures everything learned so the next session can pick up cleanly without re-deriving.
agent-logs
View container logs for debugging and real-time telemetry metrics in the agent header.