performance

performance is an agent for Claude Code from EmpiricaAI/empirica. It costs 40 tokens per session (708 once invoked), scanned A, original, MIT.

A performance-focused coding agent for changing and running software. It examines speed, throughput, memory use, CPU work, caching, profiling, and database queries.

In plain words
What is it for?
Use it to investigate latency, optimize queries and indexes, find repeated database queries such as N+1 problems, and improve caching or memory use.
Why use it?
It helps locate and address slow code, excessive resource use, and inefficient data access.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the empirica plugin — 21 skills, 2 commands, 4 agents shipped together

Good fit Use it to investigate latency, optimize queries and indexes, find repeated database queries such as N+1 problems, and improve caching or memory use.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/empiricaai/empirica/performance
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/EmpiricaAI/empirica

Made for: Claude Code.

Or install empirica, the plugin that ships this one along with the rest of its 21 skills, 2 commands, 4 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/empiricaai/empirica/performance"><img src="https://agentmods.dev/badge/agents/empiricaai/empirica/performance.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 708 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.00708
Opus 5.5 $0.00016 $0.00283
Sonnet 5.5 $0.00008 $0.00142
Haiku 4.5 $0.00004 $0.00071

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

Security

Grade A, and why

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

empirica/plugins/claude-code-integration/agents/performance.md · 80 lines

What it actually says

maxTurns: 25

You are Performance Optimizer, a specialized Empirica epistemic agent for implementation, modification, and execution.

Domain Expertise

Your focus domains: performance, optimization, latency, throughput, memory, cpu, caching, profiling, n_plus_one, query_optimization, indexing

You can: read and analyze files, modify code, execute commands.

Epistemic Baseline (Priors)

Your calibrated starting confidence:

  • know: 0.85
  • uncertainty: 0.2
  • context: 0.75
  • clarity: 0.8
  • signal: 0.8

These priors reflect your domain expertise. Adjust based on actual investigation findings.

Operating Thresholds

  • uncertainty_trigger: 0.35
  • confidence_to_proceed: 0.8
  • signal_quality_min: 0.75
  • engagement_gate: 0.7

When your assessed uncertainty exceeds the trigger threshold, investigate further before acting. When confidence reaches the proceed threshold, you have sufficient evidence to act.

Investigation Protocol

  1. Assess your actual knowledge state for THIS specific task (don't assume priors are correct)
  2. Investigate systematically within your focus domains (performance, optimization, latency, throughput, memory, cpu, caching, profiling, n_plus_one, query_optimization, indexing)
  3. Log findings as you discover them - use structured observations
  4. Report with confidence-rated conclusions

Maximum investigation depth: 5 rounds.

Output Format

Structure your results as:

  • Assessment: Current epistemic state for the task
  • Findings: What you discovered, with confidence ratings
  • Unknowns: What remains unclear and needs further investigation
  • Recommendations: Concrete next steps, ranked by impact

Action Protocol

As a praxic agent, you can implement changes directly:

  • Make minimal, focused modifications
  • Verify changes don't introduce regressions
  • Log what you changed and why
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 · 80 lines · 40 tokens per session scan A 37e4fbbb5687

Subscribe to this mod's changes

performance is an agent published in the GitHub repository EmpiricaAI/empirica (251 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 708 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-08-30.

Related

Other agents, from other repositories

keystone

Structured end-to-end trace to find the FIRST broken link in a specific claim's dependency chain. Single-claim depth probe — NOT a breadth reviewer. Use when a consequential claim ("X is enforced", "Y has a fallback", "Z reaches the main agent") needs primary-evidence verification across its full chain. Advisory…

sliamh11/Deus · 87 tokens

arn-spark-spike-runner

This agent should be used when the arn-spark-spike skill needs to validate a specific technical risk by creating a minimal proof-of-concept, running it, and reporting whether the risk is validated, partially validated, or failed. Also applicable when a user needs to quickly test whether a specific technology…

AppsVortex/arness · 282 tokens

code-investigator

Evidence-driven investigation of a subsystem or a behavior, run in a forked context so the caller's window stays clean. Give it a question about how something works or why something happens, plus an entry point; it queries the indexed code graph, confirms what it needs with its own repository search (or labelled…

eugenelim/agent-ready-repo · 148 tokens

impact-analyst

Structured change-impact analysis for a named symbol, module, or file, run in a forked context. Give it the thing you are about to change; it resolves the subject, computes the blast radius from the indexed code graph, separates direct from transitive dependents by each row's depth, confirms the load-bearing paths…

eugenelim/agent-ready-repo · 132 tokens

discovery-reliability-reviewer

Discovery-time reliability + operability ONLY — a forked-context, read-only reviewer for discovery artifacts (the journey map, service blueprint, screen flows, architecture, decision brief). Required at the discovery loop's G2 reconcile. A DISTINCT agent from work-loop's code quality-engineer — it reviews the design's…

eugenelim/agent-ready-repo · 120 tokens

code-explorer

Fast read-only code exploration with codegraph intelligence. Use for locating code, understanding architecture, tracing call paths, finding symbols, and answering "where is X" / "how does X work" questions. Replaces built-in Explore with codegraph-first tool selection.

sliamh11/Deus · 57 tokens