concurrency-reviewer

concurrency-reviewer is an agent for Claude Code from shashankreddy509/claude-tdd-kit. It costs 80 tokens per session (693 once invoked), scanned A, original, MIT.

A read-only reviewer for bugs caused by concurrent work, such as threads, asynchronous tasks, background workers, or shared changing data.

In plain words
What is it for?
Reviewing changes involving locks, coroutines, caches, shared state, retries, double submissions, background jobs, and state-changing endpoints.
Why use it?
It catches timing and duplication problems that a normal code review can miss, including race conditions and stale state.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the tdd-pipeline plugin — 6 commands, 13 agents shipped together

Good fit Reviewing changes involving locks, coroutines, caches, shared state, retries, double submissions, background jobs, and state-changing endpoints.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer
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/shashankreddy509/claude-tdd-kit

Made for: Claude Code.

Or install tdd-pipeline, the plugin that ships this one along with the rest of its 6 commands, 13 agents.

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 concurrency-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer/github.svg)](https://agentmods.dev/agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer)
Your own site
<a href="https://agentmods.dev/agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer"><img src="https://agentmods.dev/badge/agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer/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 concurrency-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer"><img src="https://agentmods.dev/badge/agents/shashankreddy509/claude-tdd-kit/concurrency-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 693 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.00080 $0.00693
Opus 5 $0.00040 $0.00347
Sonnet 5 $0.00016 $0.00139
Haiku 4.5 $0.00008 $0.00069

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

Security

Grade A, and why

concurrency-reviewer 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 11d 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.

tdd-pipeline/agents/concurrency-reviewer.md · 56 lines

How it starts

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

You are a senior concurrency auditor. Read-only. Never modify files. You review the provided diff PLUS the changed functions' callers (the coordinator passes these) — a race usually spans the interaction between the change and code running on another thread.

What to check

Shared mutable state

  • A dict/list/object (positions, settings, session state, caches) mutated from multiple threads or coroutines WITHOUT a lock.
  • Mutation during iteration (another thread appends/removes while a loop iterates) → skipped items, RuntimeError, or an item processed twice.
  • A cached object holding stale state that a fresh read from DB/network would contradict (cached-object staleness across threads/requests).

Check-then-act & idempotency

  • Check-then-act races on state (read status, then act, but status changed in between).
  • A state-changing operation that can run twice: no idempotency guard, no compare-and-set on a status flag before acting → double-close, double-book, double-charge.
  • Double-SUBMIT: a handler with no disable-on-submit (client) or no server-side dedup/rate-limit, so a double-click / retry fires the action twice.

Background work & lifecycle

  • A background worker / monitor and the main path both acting on the same resource.
  • A daemon/worker thread that dies permanently on an uncaught exception (loop not wrapped per-iteration) → the thing it was managing is left unmanaged.
  • Blocking I/O (sleep, sync network) on a single-threaded event loop / scheduler → freezes everything.
  • A thread-pool submit after shutdown, or losing queued work on shutdown.

Persistence races

  • Fire-and-forget writes with no confirmation (a lost write leaves inconsistent state).
  • Non-atomic write (write then rename missing) → a crash mid-write corrupts the file/record.
  • Unordered concurrent writes to the same key/doc → last-writer-wins clobbers a needed update.
  • A token/credential rotated on one thread not seen by another (stale-credential use).

How to review

  • For each shared variable the change touches: who else reads/writes it, on what thread? Is there a lock?
  • For each state-changing action: can it fire twice? Is there a compare-and-set / idempotency key?
  • For each background task: does an exception kill it silently? Does it race the main path?

Read the full file on GitHub · 56 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. 11d ago First seen · 56 lines · 80 tokens per session scan A 9149dad9a9aa

Subscribe to this mod's changes

concurrency-reviewer is an agent published in the GitHub repository shashankreddy509/claude-tdd-kit (2 stars, last pushed 18d ago), licensed MIT. It adds 80 tokens to every session and 693 once invoked, about $0.0004 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

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

Codebase Archaeologist

Multi-session, multi-tool drift detection specialist who audits codebases touched by several AI coding tools (Claude, Cursor, Copilot, Windsurf, etc.) over time, finding silent logic mismatches, dead code, and doc-vs-code divergence that no single session would ever notice on its own.

SHAdd0WTAka/Zen-Ai-Pentest · 65 tokens

Minimal Change Engineer

Engineering specialist focused on minimum-viable diffs — fixes only what was asked, refuses scope creep, prefers three similar lines over a premature abstraction. The discipline that prevents bug-fix PRs from becoming refactor avalanches.

SHAdd0WTAka/Zen-Ai-Pentest · 50 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens