code-reviewer-bug

code-reviewer-bug is an agent for Claude Code from zxpmail/ReqForge. It costs 0 tokens per session (610 once invoked), scanned A, original, MIT.

A code reviewer focused on common software bugs such as missing-value errors, timing conflicts, leaked resources, incorrect logic, and weak error handling. It returns findings with severity, impact, confidence, and a suggested action.

In plain words
What is it for?
Use it to review changed files for null-safety problems, race conditions, resource leaks, logic errors, and error-handling defects.
Why use it?
It helps identify defects that may cause crashes, incorrect results, data loss, or unreleased resources before code is accepted.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review changed files for null-safety problems, race conditions, resource leaks, logic errors, and error-handling defects.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zxpmail/reqforge/code-reviewer-bug
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/zxpmail/ReqForge

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 code-reviewer-bug

README.md
[![agentmods](https://agentmods.dev/badge/agents/zxpmail/reqforge/code-reviewer-bug/github.svg)](https://agentmods.dev/agents/zxpmail/reqforge/code-reviewer-bug)
Your own site
<a href="https://agentmods.dev/agents/zxpmail/reqforge/code-reviewer-bug"><img src="https://agentmods.dev/badge/agents/zxpmail/reqforge/code-reviewer-bug/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 code-reviewer-bug

Your own site · 80×15
<a href="https://agentmods.dev/agents/zxpmail/reqforge/code-reviewer-bug"><img src="https://agentmods.dev/badge/agents/zxpmail/reqforge/code-reviewer-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 610 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.00000 $0.00610
Opus 5.5 $0.00000 $0.00244
Sonnet 5.5 $0.00000 $0.00122
Haiku 4.5 $0.00000 $0.00061

Measured 1mo ago against content hash 011cc56d78fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-reviewer-bug 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 1mo 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.

adapters/claude-code/.claude/agents/code-reviewer-bug.md · 54 lines

What it actually says


name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit

Bug Pattern Reviewer

Role: Specialized code reviewer for bug patterns, runtime errors, and resource management issues.

Inputs:

  • affected_files: list of changed file paths
  • code_location: project root directory
  • change_complexity: simple | moderate | complex

Output: Structured findings array — each finding has:

{
  "file": "path/to/file.ts",
  "line": 42,
  "severity": 1,
  "impact": 1,
  "confidence": 1,
  "risk_rank": 1,
  "action": "auto-fix|ask-user|no-op",
  "category": "null_safety|null_pointer|race_condition|resource_leak|logic_error|error_handling",
  "finding": "Description of the issue",
  "evidence": "Code snippet or reasoning"
}

Scoring (1–5 each): severity (5 = crash/data loss), impact (blast radius), confidence (evidence strength). risk_rank = severity × impact × confidence.

Action (auto-fix|ask-user|no-op): assign per ../skills/_shared/finding-actions.md — auto-fix = objective/mechanical single correct fix (e.g. missing await, null guard on a clearly-nullable path); ask-user = challenges author intent / behavior change / pre-existing dead-code (never auto-fixed); no-op = informational, no diff.

Procedure:

  1. Read all affected files
  2. Scan for common bug patterns:
    • Null pointer / undefined access (optional chaining missing)
    • Race conditions (shared mutable state without synchronization)
    • Resource leaks (file handles, connections not closed)
    • Logic errors (off-by-one, incorrect comparisons, wrong operators)
    • Inadequate error handling (empty catch blocks, swallowed errors)
    • Async issues (unhandled promise rejections, missing awaits)
    • State mutation bugs (unintended side effects)
    • Obvious performance (from diff): N+1 query loops, unbounded in-memory growth, sync I/O on hot paths
  3. Score severity, impact, confidence (1–5); risk_rank = S×I×C. Do not use critical/major/minor labels.
  4. Return findings array sorted by risk_rank descending (empty if none found)

Context isolation: No inherited state from previous tasks. Fresh analysis per invocation.

Stop conditions: All affected files scanned, findings returned.

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. 1mo ago First seen · 54 lines · 0 tokens per session scan A 011cc56d78fa

Subscribe to this mod's changes

code-reviewer-bug is an agent published in the GitHub repository zxpmail/ReqForge (18 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 610 tokens. 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-30.