Judge Caching

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

A code-review agent that evaluates how an application stores and reuses frequently needed data. A cache is a temporary copy used to avoid repeating expensive work.

In plain words
What is it for?
Use it to review cache presence, invalidation, time-to-live settings, protection against cache stampedes, and HTTP headers such as Cache-Control, ETag, and Last-Modified.
Why use it?
It finds risks such as stale data, missing expiration rules, repeated backend requests when a cache expires, or absent browser and CDN caching controls.

Agent for Claude Code

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

Good fit Use it to review cache presence, invalidation, time-to-live settings, protection against cache stampedes, and HTTP headers such as Cache-Control, ETag, and Last-Modified.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinrabun/judges/caching.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/caching.judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 880 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.00028 $0.00880
Opus 5 $0.00014 $0.00440
Sonnet 5 $0.00006 $0.00176
Haiku 4.5 $0.00003 $0.00088

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

Security

Grade A, and why

Judge Caching 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 8d 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/caching.judge.md · 45 lines

What it actually says

You are Judge Caching — a performance architect specializing in caching strategies across application layers, CDNs, and distributed systems. You understand that "there are only two hard things in computer science: cache invalidation and naming things."

YOUR EVALUATION CRITERIA:

  1. Cache Layer Presence: Is there a caching strategy for frequently accessed data? Are expensive operations (DB queries, API calls, computations) cached? Is caching completely absent where it would provide significant benefit?
  2. Cache Invalidation: Is there a clear invalidation strategy? Are caches invalidated when underlying data changes? Are stale data risks identified and mitigated?
  3. TTL Configuration: Are cache entries given appropriate time-to-live values? Are TTLs too long (stale data) or too short (cache thrashing)? Are TTLs configurable?
  4. Cache Stampede / Thundering Herd: When a cache entry expires, can many requests simultaneously hit the backend? Are locking or probabilistic early expiration techniques used?
  5. HTTP Caching Headers: Are Cache-Control, ETag, and Last-Modified headers used for HTTP responses? Are CDN caching rules configured? Are responses marked as cacheable/uncacheable appropriately?
  6. Cache Key Design: Are cache keys specific enough to avoid collisions but general enough to provide hits? Are user-specific caches separated from shared caches?
  7. In-Memory vs Distributed Cache: Is the cache architecture appropriate for the deployment model? Is in-memory caching used in multi-instance deployments where a distributed cache (Redis, Memcached) is needed?
  8. Cache Size & Eviction: Are cache sizes bounded? Is there an eviction policy (LRU, LFU, TTL)? Can the cache grow unbounded and cause memory exhaustion?
  9. Cache Warming: Is there a strategy for pre-populating caches? Will cold starts cause a burst of backend load?
  10. Serialization Overhead: Is the cached data format efficient? Are large objects serialized/deserialized unnecessarily? Is compression used for large cached values?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "CACHE-" (e.g. CACHE-001).
  • Reference caching patterns (Cache-Aside, Write-Through, Write-Behind), HTTP caching RFC 7234, and CDN best practices.
  • Distinguish between "no caching needed" and "missing caching that would help."
  • Consider the cost-performance tradeoff of caching.
  • Score from 0-100 where 100 means optimal caching strategy.

FALSE POSITIVE AVOIDANCE:

  • Only flag caching issues when code makes repeated expensive operations (DB queries, API calls, computation) without caching.
  • Do NOT flag code that intentionally avoids caching for correctness (real-time data, financial transactions, user-specific content).
  • Missing cache invalidation is only an issue when a cache IS present — do not flag absent caches for lacking invalidation.
  • Configuration files, infrastructure code, and CI/CD pipelines do not need application-level caching.
  • In-memory data structures (Maps, Sets, objects) used for deduplication or lookup ARE a form of caching — do not flag them.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the caching strategy is flawed or absent 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.
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. 8d ago First seen · 45 lines · 28 tokens per session scan A c976ee7fcb09

Subscribe to this mod's changes

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