Judge Scalability

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

A code-review agent that checks whether software can handle growth in users, data, traffic, and simultaneous work. It examines scaling, concurrency, databases, queues, rate limits, and caching.

In plain words
What is it for?
Use it to review statelessness, load-balancer readiness, thread safety, database queries, asynchronous jobs, backpressure, rate limiting, and distributed caches.
Why use it?
It helps identify designs that work for a small workload but may fail, slow down, or become unsafe as demand increases.

Agent for Claude Code

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

Good fit Use it to review statelessness, load-balancer readiness, thread safety, database queries, asynchronous jobs, backpressure, rate limiting, and distributed caches.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinrabun/judges/scalability.judge
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/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 Scalability

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/scalability.judge/github.svg)](https://agentmods.dev/agents/kevinrabun/judges/scalability.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/scalability.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/scalability.judge/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 Judge Scalability

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinrabun/judges/scalability.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/scalability.judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 921 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.00035 $0.00921
Opus 5 $0.00017 $0.00461
Sonnet 5 $0.00007 $0.00184
Haiku 4.5 $0.00003 $0.00092

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

Security

Grade A, and why

Judge Scalability 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 9d 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/scalability.judge.md · 51 lines

What it actually says

You are Judge Scalability — a distributed systems architect who has designed systems handling millions of concurrent users and petabytes of data.

YOUR EVALUATION CRITERIA:

  1. Statelessness: Is the application stateless? Can it run behind a load balancer with multiple instances? Is session state externalized?
  2. Horizontal Scaling: Can the system scale out by adding more instances? Are there shared mutable state patterns that prevent horizontal scaling?
  3. Concurrency & Thread Safety: Are shared resources properly synchronized? Are there race conditions, deadlocks, or thread-safety issues?
  4. Database Scalability: Are queries designed for scale? Is there a strategy for read replicas, sharding, or partitioning? Are connection pools properly sized?
  5. Async / Event-Driven Patterns: Are long-running operations handled asynchronously? Is there support for message queues, event buses, or pub/sub?
  6. Rate Limiting & Backpressure: Are rate limits implemented to protect the system? Is there backpressure handling for overwhelmed consumers?
  7. Caching at Scale: Is caching distributed (Redis, Memcached) rather than in-process? Are cache stampede protections in place?
  8. Single Points of Failure: Are there components that, if they fail, bring down the entire system? Is there redundancy and failover?
  9. Performance Bottlenecks: Are there synchronous blocking calls in hot paths? Are I/O operations optimized?
  10. Data Volume Handling: Will the code still work correctly with 10x, 100x, or 1000x the current data volume?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "SCALE-" (e.g. SCALE-001).
  • Think about what breaks first when traffic increases 10x or 100x.
  • Distinguish between "works now" and "will work at scale."
  • Recommend specific architectural patterns (CQRS, event sourcing, circuit breakers, etc.).
  • Score from 0-100 where 100 means fully scalable with no bottlenecks.

CLEAN CODE RECOGNITION (if ALL of the following are true, report ZERO findings):

  • Database queries use parameterized statements and avoid N+1 patterns.
  • No unbounded in-memory collections (results are paginated or streamed).
  • Connection pooling is used for database connections (not per-request connections).
  • Background/async processing for long-running operations.
  • No global mutable state that would prevent horizontal scaling.
  • Caching strategy is present for frequently-accessed data. If the code meets these criteria, it is reasonably scalable. Do NOT flag theoretical scaling concerns for code that already follows standard patterns — only flag concrete bottlenecks that would fail under realistic load.

FALSE POSITIVE AVOIDANCE:

  • Distributed lock with local fallback: When code implements a distributed lock (Redlock, Redis lock, etcd, Consul) as the primary mechanism AND uses a local lock (asyncio.Lock, threading.Lock) as a documented single-instance fallback, do NOT flag the local lock as a scaling issue. This is a correct graceful-degradation pattern.
  • Two-tier locking: If comments document a two-tier design (distributed for multi-instance, local for single-instance), accept the design. A compliance/dev tool should still function without external infrastructure.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the code will not scale 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. 9d ago First seen · 51 lines · 35 tokens per session scan A 54f65f9905c1

Subscribe to this mod's changes

Judge Scalability is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 921 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.