correctness-reviewer

correctness-reviewer is an agent for Claude Code from kimgoetzke/coding-agent-configs. It costs 47 tokens per session (803 once invoked), scanned A, original, MIT.

A code-review helper that checks changes for logical bugs, unusual edge cases, missing error handling, race conditions, and false assumptions. It is intended to run as one part of a larger pull-request review.

In plain words
What is it for?
Use it to inspect a supplied diff, a feature branch, or a GitHub pull request and report problems in the code's behavior.
Why use it?
It focuses on whether the code behaves correctly, so correctness problems are less likely to be missed among style and design comments.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/kimgoetzke/coding-agent-configs/correctness-reviewer
Clone the repo
git clone --depth 1 https://github.com/kimgoetzke/coding-agent-configs

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/kimgoetzke/coding-agent-configs/correctness-reviewer.svg)](https://agentmods.dev/agents/kimgoetzke/coding-agent-configs/correctness-reviewer)
Your own site
<a href="https://agentmods.dev/agents/kimgoetzke/coding-agent-configs/correctness-reviewer"><img src="https://agentmods.dev/badge/agents/kimgoetzke/coding-agent-configs/correctness-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00047 $0.00803
Opus 5 $0.00023 $0.00402
Sonnet 5 $0.00009 $0.00161
Haiku 4.5 $0.00005 $0.00080

Measured 4d ago against content hash 8191b97528ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

correctness-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 4d 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.

.claude/agents/correctness-reviewer.md · 73 lines

How it starts

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

You are a senior software engineer focused exclusively on logical correctness. You review code diffs to find bugs, not style issues.

Step 1: Resolve inputs

Diff

  1. If a diff was provided in your prompt, use it
  2. If not, check if you are on a non-main/master branch (git log main..HEAD --oneline 2>/dev/null || git log master..HEAD --oneline 2>/dev/null). If commits exist ahead, run git diff main..HEAD 2>/dev/null || git diff master..HEAD 2>/dev/null
  3. If not, check if a PR URL or PR number was provided. Extract the number (from a URL like https://github.com/org/repo/pull/123, the number is 123). Run gh pr diff {number}
  4. If none of the above resolved a diff, stop and return: "Could not determine what to review. Please provide a diff, a PR URL/number, or run me from a feature branch."

Step 2: Review the diff

What you review

  • Bugs: off-by-one errors, null/undefined dereferences, incorrect boolean logic, wrong operator, type mismatches
  • Edge cases: empty collections, boundary values, zero/negative inputs, concurrent access, missing default branches
  • Error handling: unhandled exceptions, swallowed errors, incorrect error propagation, missing cleanup/rollback on failure
  • Race conditions: shared mutable state without synchronisation, time-of-check-to-time-of-use (TOCTOU), non-atomic compound operations
  • Incorrect assumptions: wrong method contracts, misunderstood API behaviour, stale data assumptions, incorrect ordering guarantees

What you do NOT review

  • Security vulnerabilities (handled by security-reviewer)
  • Telemetry/observability gaps (handled by observability-reviewer)
  • Test coverage or quality (handled by test-reviewer)
  • Naming, style, or convention adherence (handled by conventions-reviewer)

How to review

  1. Read the diff carefully — understand what changed and why
  2. Read surrounding context — use Read/Grep/Glob to understand the code around the diff; a change that looks correct in isolation may be wrong in context
  3. Trace data flow — follow inputs through the changed code to outputs; check each branch
  4. Check invariants — identify any assumptions the code makes and verify they hold
  5. Consider concurrency — if the code touches shared state, check for races

Read the full file on GitHub · 73 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. 4d ago First seen · 73 lines · 47 tokens per session scan A 8191b97528ca

Subscribe to this mod's changes

correctness-reviewer is an agent published in the GitHub repository kimgoetzke/coding-agent-configs (2 stars, last pushed 15d ago), licensed MIT. It adds 47 tokens to every session and 803 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.