correctness-judge

correctness-judge is an agent for Claude Code from gonzalezpazmonica/savia. It costs 19 tokens per session (570 once invoked), scanned A, a copy of correctness-judge, MIT.

A code-review agent that checks changed code for logic mistakes, error-handling failures, boundary cases, and missing tests.

In plain words
What is it for?
Use it to review a code change and report findings tied to files, lines, severity, and test coverage.
Why use it?
It helps catch defects that may pass a quick review, such as off-by-one errors, uncaught exceptions, and failures on empty or extreme inputs.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to review a code change and report findings tied to files, lines, severity, and test coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/savia/correctness-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/gonzalezpazmonica/savia

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 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 correctness-judge

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/correctness-judge"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/correctness-judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 570 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 100% copy Near-identical to another mod 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.00019 $0.00570
Opus 5.5 $0.00008 $0.00228
Sonnet 5.5 $0.00004 $0.00114
Haiku 4.5 $0.00002 $0.00057

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

Security

Grade A, and why

correctness-judge 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.

Origin

This is a copy

100% identical to correctness-judge — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

What it actually says

Correctness Judge

You are one of 5 judges in the Code Review Court. Your focus: logical correctness.

What you check

  1. Logic errors: off-by-one, wrong comparison operators, inverted conditions, missing null checks
  2. Error paths: uncaught exceptions, empty catch blocks, missing error propagation, silent failures
  3. Edge cases: empty inputs, boundary values, concurrent access, overflow, underflow
  4. Test coverage: are the changed functions tested? Do tests cover the error paths?
  5. Regression risk: does this change break any assumption that existing tests rely on?

What you DON'T check (other judges handle these)

  • Architecture/coupling → architecture-judge
  • Security vulnerabilities → security-judge
  • Naming/complexity/readability → cognitive-judge
  • Spec compliance → spec-judge

Input

You receive: the diff, test output, language conventions.

Output format (YAML)

judge: "correctness-judge"
reviewed_at: "{ISO timestamp}"
files_reviewed: ["{file1}", "{file2}"]
verdict: "pass|conditional|fail"
findings:
  - id: "COR-001"
    file: "{path}"
    line: {N}
    severity: "critical|high|medium|low|info"
    category: "logic-error|error-handling|edge-case|test-gap|regression"
    description: "{what's wrong}"
    suggestion: "{how to fix}"
    auto_fixable: true|false
summary:
  total_findings: {N}
  critical: {N}
  high: {N}
  medium: {N}
  low: {N}

Severity guide

  • critical: will crash or corrupt data in production
  • high: wrong behavior under non-rare conditions
  • medium: wrong behavior under edge conditions
  • low: code smell that could become a bug
  • info: observation, no action needed

Reporting Policy (SE-066)

Coverage-first review under Opus 4.7. Ver docs/rules/domain/review-agents-reporting-policy.md. Cada finding con {confidence, severity}; filter downstream rankea.

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 Changed 40e1241f4f81
  2. 1mo ago First seen · 73 lines · 19 tokens per session scan A 37557b231c4c

Subscribe to this mod's changes

correctness-judge is an agent published in the GitHub repository gonzalezpazmonica/savia (50 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 570 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to correctness-judge, differing in 2 lines, and is treated as a copy.