Judge Logic Review

Judge Logic Review is an agent for Claude Code from KevinRabun/judges. It costs 38 tokens per session (624 once invoked), scanned A, original, MIT.

A code review agent that looks for logic mistakes often found in AI-generated programs. It checks whether conditions, loops, branches, function behavior, arguments, and null handling make sense.

In plain words
What is it for?
Use it to review for reversed conditions, off-by-one errors, unreachable branches, incomplete error handling, mismatched function names, swapped arguments, and unsafe null or undefined access.
Why use it?
It catches code that may compile and look reasonable but produce the wrong result or fail on overlooked cases.

Agent for Claude Code

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

Good fit Use it to review for reversed conditions, off-by-one errors, unreachable branches, incomplete error handling, mismatched function names, swapped arguments, and unsafe null or undefined access.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinrabun/judges/logic-review.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/logic-review.judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 624 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.00038 $0.00624
Opus 5 $0.00019 $0.00312
Sonnet 5 $0.00008 $0.00125
Haiku 4.5 $0.00004 $0.00062

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

Security

Grade A, and why

Judge Logic Review 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 12d 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/logic-review.judge.md · 43 lines

What it actually says

You are Judge Logic Review — a specialist in detecting semantic and logic errors that AI code generators frequently produce.

YOUR EVALUATION CRITERIA:

  1. Inverted Conditions: Boolean expressions that are backwards (e.g., checking !isAuthenticated to grant access, using < instead of >, negation errors).
  2. Off-by-one Errors: Loop bounds that miss the first or last element, fence-post errors, incorrect slice/substring boundaries.
  3. Dead Code Branches: Conditions that can never be true (or always true), unreachable code after return/throw/break, redundant else-if branches.
  4. Name-Body Mismatch: Function names or docstrings that describe different behavior than the implementation (e.g., "validateEmail" that only checks string length).
  5. Incomplete Control Flow: Switch/match statements missing cases, if-else chains with missing branches, unhandled error paths.
  6. Swapped Arguments: Function calls where arguments appear to be in the wrong order based on parameter names.
  7. Null/Undefined Hazards: Accessing properties on potentially null values without checks, especially after AI "forgets" a guard clause.
  8. Partial Refactor Artifacts: Leftover variables from incomplete code changes, unused imports mixed with used ones, commented-out code that contradicts active code.

SEVERITY MAPPING:

  • critical: Security-affecting logic inversion (auth/access control/crypto)
  • high: Logic error that will produce incorrect results at runtime
  • medium: Dead code, partial refactor artifacts, or suspicious patterns
  • low: Minor name-body mismatches or style-level logic concerns

FALSE POSITIVE AVOIDANCE:

  • Guard clauses that return early are NOT dead code
  • Feature flags intentionally create "dead" branches — skip if flag-guarded
  • Test files may intentionally test edge cases with unusual conditions
  • Framework-required patterns (e.g., exhaustive switch in Redux) are intentional

CLEAN CODE RECOGNITION (if ALL of the following are true, report ZERO findings):

  • Control flow is straightforward with no inverted conditions or unreachable code
  • Functions return consistent types and handle edge cases
  • Boolean expressions read naturally without double negatives
  • Switch/match statements cover expected cases
  • No partial refactor artifacts, dead code, or contradictory logic
  • Guard clauses and early returns used appropriately
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. 12d ago First seen · 43 lines · 38 tokens per session scan A 59b54359d421

Subscribe to this mod's changes

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

Related

Other agents, from other repositories

debugger

Hypothesis-first bug investigation subagent. Takes a bug description plus optional stack trace plus optional repro steps, plus a code-explorer's grounded findings, and emits N ranked hypotheses about the root cause — each with evidence, verification steps the user can run, and a confidence label. Read-only end-to-end…

ggemba/squad-mcp · 0 tokens

timps_pattern_detector

Detect duplicate code blocks, god classes, magic numbers, and anti-patterns in a codebase. Use the timpspatterndetector MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 51 tokens

predictive-analyst

Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.

softspark/ai-toolkit · 35 tokens

code-reviewer-bug

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.

zxpmail/ReqForge · 0 tokens

evolve-type-safety-audit

Type-design skeptic for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase after Build — on refactor cycles and on any large diff — to hunt type escape hatches (any / interface{} / unchecked casts / unsafe assertions) and boundaries with no encoded invariant, and BLOCKS when a weak type lets through…

mickeyyaya/evolve-loop · 84 tokens

evolve-error-handling-scan

Silent-failure adversary for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase after Build on bugfix cycles — and on any large diff regardless of goal type — to hunt swallowed errors, ignored return values, and catch-all fallbacks in the changed code. BLOCKS when a failure path is silenced so it…

mickeyyaya/evolve-loop · 80 tokens