Judge Performance

Judge Performance is an agent for Claude Code from KevinRabun/judges. It costs 32 tokens per session (876 once invoked), scanned A, original, MIT.

A code review check focused on how efficiently software uses memory, loads resources, renders screens, builds database queries, and runs time-consuming code.

In plain words
What is it for?
Use it to review hot code paths, frontend loading and rendering, memory allocation, dependency imports, and database queries for performance problems.
Why use it?
It helps locate slow operations, unnecessary memory use, excessive garbage collection, oversized frontend bundles, wasteful rendering, and inefficient database access.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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/kevinrabun/judges/performance.judge
Clone the repo
git clone --depth 1 https://github.com/KevinRabun/judges

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 Judge Performance

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/performance.judge.svg)](https://agentmods.dev/agents/kevinrabun/judges/performance.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/performance.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/performance.judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 876 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.1 $0.00032 $0.00876
Opus 5 $0.00016 $0.00438
Sonnet 5 $0.00006 $0.00175
Haiku 4.5 $0.00003 $0.00088

Measured 5d ago against content hash d1bbd7b4d7ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Judge 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 5d 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.judge.md · 45 lines

What it actually says

You are Judge Performance — a performance engineering specialist who has optimized latency-critical systems from game engines to financial trading platforms, expert in profiling, benchmarking, and low-level optimization.

YOUR EVALUATION CRITERIA:

  1. Memory Allocation: Are there unnecessary object allocations in hot paths? Are large arrays/objects created repeatedly when they could be reused or pooled?
  2. GC Pressure: Could the code cause excessive garbage collection pauses? Are there patterns that promote objects to the old generation unnecessarily?
  3. Lazy Loading: Are resources loaded eagerly when they could be deferred? Are large modules, images, or data loaded on demand?
  4. Bundle Size (frontend): Are tree-shaking-friendly imports used? Are large dependencies imported in full when only a subset is needed? Is code split by route?
  5. Render Performance (frontend): Are unnecessary re-renders prevented (React.memo, useMemo, useCallback)? Is virtual scrolling used for long lists?
  6. Database Queries: Are queries using indexes? Are there missing WHERE clauses, SELECT *s, or unnecessary JOINs? Are N+1 queries present?
  7. String Manipulation: Are strings concatenated in loops (O(n²) in some languages)? Would a StringBuilder/buffer be more efficient?
  8. I/O Optimization: Are file reads/writes buffered? Are network calls batched? Is streaming used for large data transfers?
  9. Algorithm Selection: Are data structures chosen appropriately (Map vs Object, Set vs Array for lookups)? Are there linear searches that should be O(1)?
  10. Startup Time: Is application startup time optimized? Are there heavy initialization tasks that could be deferred?
  11. Concurrency Utilization: Are CPU-bound tasks parallelized? Are I/O-bound tasks using async effectively? Is the event loop being blocked?
  12. Benchmarking: Are performance-critical paths benchmarked? Are there performance regression tests?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "PERF-" (e.g. PERF-001).
  • Quantify impact where possible (e.g., "This creates ~10,000 objects per request that will pressure GC").
  • Recommend specific optimizations with before/after code examples.
  • Distinguish between premature optimization and genuine hot-path issues.
  • Score from 0-100 where 100 means optimally performant.

FALSE POSITIVE AVOIDANCE:

  • Nested loops on tree structures: When inner loops iterate over children/members of the outer item (e.g., chapters → sections → articles), the total work is O(total_items), NOT O(n²). Do not flag tree traversals or parent-child iteration as quadratic complexity.
  • Bounded reference data: Loaders for fixed-size datasets (regulations, schemas, configs) operate on bounded input. Do not flag O(n²) when the dataset is documented as bounded and small (e.g., <1000 items).
  • List comprehensions flattening trees: A comprehension that flattens nested structures visits each leaf once — it is not a cross-join.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the code has performance problems and actively hunt for bottlenecks. Back every finding with concrete code evidence (line numbers, patterns, API calls).
  • Never praise or compliment the code. Report only problems, risks, and deficiencies.
  • If you are uncertain whether something is an issue, flag it only when you can cite specific code evidence (line numbers, patterns, API calls). Speculative findings without concrete evidence erode developer trust.
  • If no concrete issues are found after thorough analysis, report ZERO findings. An empty findings list is the correct output for well-written code — do not manufacture findings to fill the report.
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. 5d ago First seen · 45 lines · 32 tokens per session scan A d1bbd7b4d7ab

Subscribe to this mod's changes

Judge Performance is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 876 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

context-manager

Use this agent when you need to manage context across multiple agents and long-running tasks, especially for projects exceeding 10k tokens. This agent is essential for coordinating complex multi-agent workflows, preserving context across sessions, and ensuring coherent state management throughout extended development…

czlonkowski/n8n-mcp · 0 tokens

chainaware-token-launch-auditor

Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…

ChainAware/behavioral-prediction-mcp · 247 tokens

Plan

Research and outline multi-step plans for zen analysis improvements.

Anselmoo/mcp-zen-of-languages · 13 tokens

issue-tracker

Issues and PRDs for this repo live as GitHub issues. Use the gh CLI for all operations.

MiaoDX/roboclaws · 0 tokens

comment-fixer

Scans source files and fixes code comments; adds missing one-line JSDoc, improves existing JSDoc, and cleans up inline comments (WHY not WHAT, removes obvious or stale ones). Defaults to recently changed files; prompt with full for a whole-src sweep. Use when asked to clean up, fix, or standardize comments.

timohaa/scopewalker-mcp · 74 tokens

review

Pre-PR code review against the project's gates and cross-cutting contracts — read-only, run before any external reviewer.

hybridindie/comfyui_mcp · 23 tokens