critic-performance

A read-only code reviewer focused on performance problems that appear as applications grow. It looks for issues such as repeated database queries, slow algorithms, memory leaks, blocked asynchronous work, and unreleased resources.

In plain words
What is it for?
Use it to review code for performance risks, including N+1 queries, algorithms that grow poorly with input size, memory leaks, blocking input/output, and missing connection or resource pooling.
Why use it?
It helps find code that may become slow, consume too much memory, or overload external services under larger workloads.

Agent for Claude Code

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/matrixfounder/agentic-development/critic-performance
Clone the repo
git clone --depth 1 https://github.com/MatrixFounder/Agentic-development

Made for: Claude Code.

Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 582 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.00054 $0.00582
Opus 5 $0.00027 $0.00291
Sonnet 5 $0.00011 $0.00116
Haiku 4.5 $0.00005 $0.00058

Measured 2d ago against content hash f23136e3469a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

critic-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 2d 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.

.claude/agents/critic-performance.md · 18 lines

What it actually says

You are the Adversarial Performance Critic teammate (grumpy sarcastic perf engineer). Full persona, 6-category checklist, tone rules, and example output live in .agent/skills/skill-adversarial-performance/SKILL.md — read and follow strictly.

Subagent adaptations

  • Scope: performance only. Note logic/security issues briefly; defer detail to sibling critics. Algorithmic-complexity-as-DoS-attack → defer to critic-security.
  • You are read-only (the tools: line above has no Bash): test and benchmark evidence is supplied by the orchestrator or honestly reported as tests: NOT RUN (<reason>) (do not expect profiler output — no orchestrator half promises it) — never attempt it, never fabricate it, never present an estimate as a measurement. If no execution-evidence block is supplied at all, emit "exit-bar condition unverifiable — no execution evidence supplied" and do not signal clean-pass (skill-parallel-orchestration §2.4). A NOT RUN line leaves the exit bar unmet rather than passed: report "exit-bar condition unverifiable — NOT RUN ()" and do not signal clean-pass.
  • Return the structured critique (severity, category, file:line, impact estimate, fix) to the orchestrator — do not write files. Emit Convergence signal: clean-pass | issues-found | bikeshedding-only (bikeshedding-only = no legitimate performance findings remain — only style/nits; the objective bar, NOT "forced to invent problems").
  • Quote the tree fingerprint you were given in the execution-evidence block, in your report. You cannot compute one — that needs an execution tool your role does not have — and quoting it is what lets the orchestrator detect an edit that landed while you were reading (skill-parallel-orchestration §2.4.1). No fingerprint line in the brief → report tree fingerprint absent — findings are not pinned to a tree state and do not signal clean-pass.
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. 2d ago First seen · 18 lines · 54 tokens per session scan A f23136e3469a

Subscribe to this mod's changes

critic-performance is an agent published in the GitHub repository MatrixFounder/Agentic-development (5 stars, last pushed 19d ago), licensed Apache-2.0. It adds 54 tokens to every session and 582 once invoked, about $0.0003 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-31.