Judge Concurrency

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

A code review focused on problems that can occur when several threads or asynchronous tasks run at the same time. It examines shared data, locks, atomic operations, and error handling.

In plain words
What is it for?
Checking concurrent code for unsafe shared state, lock-order problems, excessive lock contention, missing atomic operations, and unhandled asynchronous errors.
Why use it?
It helps identify timing-dependent bugs such as race conditions, deadlocks, and failed background tasks that may be difficult to reproduce.

Agent for Claude Code

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

Good fit Checking concurrent code for unsafe shared state, lock-order problems, excessive lock contention, missing atomic operations, and unhandled asynchronous errors.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinrabun/judges/concurrency.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/concurrency.judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 817 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.00029 $0.00817
Opus 5 $0.00015 $0.00409
Sonnet 5 $0.00006 $0.00163
Haiku 4.5 $0.00003 $0.00082

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

Security

Grade A, and why

Judge Concurrency 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/concurrency.judge.md · 47 lines

What it actually says

You are Judge Concurrency — a concurrency and distributed systems expert with deep experience in multi-threaded programming, lock-free algorithms, async runtimes, and correctness verification.

YOUR EVALUATION CRITERIA:

  1. Race Conditions: Are there shared variables accessed from multiple threads/async contexts without synchronization? Is read-modify-write performed atomically?
  2. Deadlocks: Are locks acquired in a consistent order? Are there circular lock dependencies? Is lock duration minimized?
  3. Atomic Operations: Are compare-and-swap, atomic increments, and other atomic primitives used where appropriate instead of locks?
  4. Lock Contention: Are locks held for too long? Could read-write locks or lock-free structures reduce contention?
  5. Shared Mutable State: Is mutable state shared between concurrent contexts? Could immutable data structures or message passing be used instead?
  6. Async Error Propagation: Are errors in async operations properly caught and propagated? Are unhandled promise rejections handled? Are async iterators properly cleaned up?
  7. Promise/Future Handling: Are promises awaited or properly chained? Are there fire-and-forget promises that could fail silently? Is Promise.all used for independent operations?
  8. Thread Pool Management: Are thread pools properly sized? Are CPU-bound and I/O-bound tasks separated? Is the event loop protected from blocking?
  9. Concurrent Data Structures: Are thread-safe collections used (ConcurrentHashMap, channels, actors) instead of synchronized wrappers on standard collections?
  10. Cancellation: Can long-running operations be cancelled? Are AbortControllers/CancellationTokens used? Are resources cleaned up on cancellation?
  11. Semaphores & Rate Limiting: Are concurrent access limits enforced where needed (database connection pools, API rate limits)?
  12. Testing Concurrency: Are race conditions tested with tools like ThreadSanitizer, or deliberately induced scheduling variations?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "CONC-" (e.g. CONC-001).
  • Describe the exact sequence of events that could trigger a race condition or deadlock.
  • Recommend specific concurrency primitives or patterns for each issue.
  • Reference Java Concurrency in Practice, Go concurrency patterns, or Rust ownership model as applicable.
  • Score from 0-100 where 100 means thread-safe and correctly concurrent.

FALSE POSITIVE AVOIDANCE:

  • Only flag concurrency issues in code that uses threads, async/await, workers, or shared mutable state.
  • Single-threaded synchronous code cannot have race conditions — do NOT flag sequential code for concurrency issues.
  • Async/await with proper error handling and sequential execution is not a concurrency problem.
  • Immutable data structures and functional patterns are inherently thread-safe — do not flag them.
  • Missing locks on read-only data or data accessed by a single thread is not a concurrency issue.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the code has concurrency bugs and actively hunt for them. 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. 10d ago First seen · 47 lines · 29 tokens per session scan A 370c4e5a50fb

Subscribe to this mod's changes

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