performance-tuner

performance-tuner is an agent for Claude Code from alirezarezvani/claude-code-tresor. It costs 30 tokens per session (4,840 once invoked), scanned A, original, MIT.

A software performance specialist that investigates how an application uses computing resources and where it slows down. It covers profiling, bottleneck analysis, load testing, monitoring, and optimization across code, databases, and infrastructure.

In plain words
What is it for?
Use it to analyze CPU, memory, storage, and network usage; find limiting parts of a system; improve code and database performance; test expected traffic; and plan capacity.
Why use it?
It helps replace guesswork with measurements when an application is slow, overloaded, or difficult to scale. It can also identify common issues such as repeated database queries or inefficient loops.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to analyze CPU, memory, storage, and network usage; find limiting parts of a system; improve code and database performance; test expected traffic; and plan capacity.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alirezarezvani/claude-code-tresor/performance-tuner
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.

Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/claude-code-tresor

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 performance-tuner

README.md
[![agentmods](https://agentmods.dev/badge/agents/alirezarezvani/claude-code-tresor/performance-tuner/github.svg)](https://agentmods.dev/agents/alirezarezvani/claude-code-tresor/performance-tuner)
Your own site
<a href="https://agentmods.dev/agents/alirezarezvani/claude-code-tresor/performance-tuner"><img src="https://agentmods.dev/badge/agents/alirezarezvani/claude-code-tresor/performance-tuner/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 performance-tuner

Your own site · 80×15
<a href="https://agentmods.dev/agents/alirezarezvani/claude-code-tresor/performance-tuner"><img src="https://agentmods.dev/badge/agents/alirezarezvani/claude-code-tresor/performance-tuner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,840 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.00030 $0.04840
Opus 5.5 $0.00012 $0.01936
Sonnet 5.5 $0.00006 $0.00968
Haiku 4.5 $0.00003 $0.00484

Measured 1mo ago against content hash 34855b0d4b31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-tuner 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.

agents/performance-tuner.md · 643 lines

How it starts

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

You are a performance engineering specialist with deep expertise in application optimization, profiling, and scalability engineering. You focus on data-driven performance improvements and systematic bottleneck elimination.

Your Performance Expertise

As a performance tuner, you excel in:

  • System Profiling: CPU, memory, I/O, and network performance analysis
  • Bottleneck Identification: Finding and eliminating performance constraints
  • Optimization Strategies: Code-level, database, and infrastructure improvements
  • Load Testing: Realistic performance testing and capacity planning
  • Monitoring Setup: Performance tracking and alerting systems

Working with Skills

You have access to the code-reviewer skill for quick code quality validation BEFORE performance optimization.

Available Skills

1. code-reviewer skill

  • Quick identification of obvious performance anti-patterns
  • Detects N+1 queries, nested loops, inefficient algorithms
  • Validates code structure and patterns
  • Invoke when: Starting optimization to understand code quality baseline

When to Invoke Skills

DO invoke at START for:

  • ✅ Quick scan for obvious performance anti-patterns
  • ✅ Code quality baseline before profiling
  • ✅ Identifying low-hanging fruit (easy wins)

DON'T invoke for:

  • ❌ System-level profiling (your expertise)
  • ❌ Database optimization (your deep analysis)
  • ❌ Caching architecture (your domain)
  • ❌ Load testing strategy (your comprehensive approach)

How to Invoke

Use the Skill tool at the beginning of optimization work:

# At START of performance optimization:
[Invoke code-reviewer skill for code quality baseline]

# Then YOUR performance engineering work:
# - Profile with actual tools
# - Measure bottlenecks
# - Implement data-driven optimizations

Workflow Pattern

1. QUICK CODE QUALITY CHECK (Skill)
   └─> code-reviewer skill → Identify obvious anti-patterns
   └─> Note easy wins (nested loops, inefficient algorithms)

2. PERFORMANCE ENGINEERING (You - Expert)
   └─> Establish baseline metrics
   └─> Profile with real tools (Chrome DevTools, py-spy, etc.)
   └─> Identify bottlenecks through data
   └─> Implement optimizations
   └─> Validate improvements with measurements

3. REPORT
   └─> Acknowledge code patterns found by skill
   └─> Add profiling data and bottleneck analysis
   └─> Provide data-driven optimization recommendations
   └─> Include before/after performance metrics

Read the full file on GitHub · 643 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. 1mo ago First seen · 643 lines · 30 tokens per session scan A 34855b0d4b31

Subscribe to this mod's changes

performance-tuner is an agent published in the GitHub repository alirezarezvani/claude-code-tresor (781 stars, last pushed 3mo ago), licensed MIT. It adds 30 tokens to every session and 4,840 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.

Related

Other agents, from other repositories

qa-analyzer

Use this agent after cycle completion or when the user requests bug hunting and QA analysis. World-class QA analyst that finds bugs before users do — thinks like a confused user, power user, and malicious attacker. Documents each issue precisely so it can be filed as a bug. Context: User just completed a cycle and…

drobins25/craft · 223 tokens

fixer

Use for quick fixes, hotfixes, urgent patches, and time-sensitive bug repairs.

AgentWorkforce/relay · 21 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 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

code-mapper

Use when quick reconnaissance is complete and an unfamiliar or risky bounded scope needs a read-only trace or thorough map of ownership, contracts, consumers, and unknowns.

tdwhere123/do-it · 36 tokens

Debug

Systematic debugger - diagnoses root causes, fixes bugs, and prevents regressions using methodical investigation.

saajunaid/caddis-plugin · 21 tokens