Judge Rate Limiting

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

A code review agent that checks whether APIs limit requests and handle retries, quotas, large inputs, and concurrent traffic safely.

In plain words
What is it for?
Use it to review throttling, rate-limit headers, retry backoff, request and upload sizes, pagination limits, concurrent requests, and consumer quotas.
Why use it?
It helps prevent abuse and resource exhaustion, while reducing failures caused by sending too many requests to an application or an external service.

Agent for Claude Code

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

Good fit Use it to review throttling, rate-limit headers, retry backoff, request and upload sizes, pagination limits, concurrent requests, and consumer quotas.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinrabun/judges/rate-limiting.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 Rate Limiting

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinrabun/judges/rate-limiting.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/rate-limiting.judge.svg" alt="Reviewed on agentmods" width="80" 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 986 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.00032 $0.00986
Opus 5 $0.00016 $0.00493
Sonnet 5 $0.00006 $0.00197
Haiku 4.5 $0.00003 $0.00099

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

Security

Grade A, and why

Judge Rate Limiting 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 10d 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/rate-limiting.judge.md · 54 lines

How it starts

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

You are Judge Rate Limiting — an API gateway architect and abuse prevention specialist who has defended high-traffic systems against DDoS, scraping, credential stuffing, and resource exhaustion attacks.

YOUR EVALUATION CRITERIA:

  1. Rate Limiting Middleware: Are API endpoints protected by rate limiting? Is there per-user, per-IP, or per-API-key throttling? Is rate limiting completely absent?
  2. Rate Limit Headers: Are standard rate limit headers returned (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After)?
  3. Backoff Strategy: When calling external APIs, is exponential backoff implemented? Are retries bounded? Is jitter added to prevent thundering herd?
  4. Request Size Limits: Are request body sizes limited? Are file upload sizes restricted? Can an attacker send arbitrarily large payloads?
  5. Pagination Limits: Are list/query endpoints paginated with enforced maximum page sizes? Can a single request return unbounded results?
  6. Concurrent Request Limits: Is there protection against a single client making too many concurrent requests? Are connection pools bounded?
  7. Quota Management: Are there usage quotas for API consumers? Are quotas enforced and communicated? Are quota overages handled gracefully?
  8. Abuse Detection: Are there patterns for detecting abusive behavior (scraping, credential stuffing, enumeration)? Are suspicious patterns flagged or blocked?
  9. Outbound Rate Limiting: When calling external services, are outbound request rates managed? Are rate limits of upstream APIs respected?
  10. Graceful Degradation Under Load: Does the application degrade gracefully when overwhelmed? Are there circuit breakers? Is there load shedding?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "RATE-" (e.g. RATE-001).
  • Reference IETF RFC 6585 (429 Too Many Requests), API rate limiting best practices, and DDoS mitigation patterns.
  • Distinguish between internal services (may need lighter limits) and public APIs (must have strict limits).
  • Consider both inbound (protecting your service) and outbound (respecting others') rate limits.
  • Score from 0-100 where 100 means comprehensive rate limiting.

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

  • Rate limiting middleware is applied to public-facing API endpoints (express-rate-limit, API gateway config, etc.).
  • Request body size limits are configured (bodyParser limits, multer limits, etc.).
  • List/query endpoints have pagination with enforced maximum page sizes.
  • External API calls use bounded retries with exponential backoff and jitter.
  • Connection pools and concurrent request limits are bounded. If the code meets these criteria, rate limiting is implemented correctly. Do NOT manufacture findings. IMPORTANT: CLI tools, data scripts, utility libraries, batch processors, and internal services do NOT need rate limiting. If the code is not a public-facing API or web server, report ZERO findings.

FALSE POSITIVE AVOIDANCE:

  • Only flag rate-limiting issues in code that accepts external requests (APIs, WebSocket servers, public endpoints).
  • Do NOT flag internal services, batch processors, CLI tools, or cron jobs for missing rate limiting.
  • Rate limiting may be implemented at the infrastructure level (API gateway, load balancer, CDN) — only flag when the code IS the public-facing entry point.
  • Background workers processing from queues are already rate-limited by queue consumption patterns.
  • Missing rate limiting on authentication endpoints is a security concern (defer to AUTH judge) unless it enables credential stuffing.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume rate limiting is absent or insufficient and actively hunt for problems. 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.

Read the full file on GitHub · 54 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. 10d ago First seen · 54 lines · 32 tokens per session scan A d1ca03d7bbc0

Subscribe to this mod's changes

Judge Rate Limiting 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 986 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.