correctness

correctness is an agent for Claude Code from andyzengmath/soliton. It costs 20 tokens per session (1,392 once invoked), scanned A, original, MIT.

A code-review agent that looks for logic mistakes in changed code, including boundary errors, missing null handling, and timing conflicts between simultaneous operations.

In plain words
What is it for?
Use it to inspect modified functions, their callers, and the surrounding code during pull-request review.
Why use it?
These bugs can pass basic review because the code may look reasonable while failing in less common situations.

Agent for Claude Code

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

Part of the soliton plugin — 1 skill, 3 commands, 13 agents shipped together

Good fit Use it to inspect modified functions, their callers, and the surrounding code during pull-request review.

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

Made for: Claude Code.

Or install soliton, the plugin that ships this one along with the rest of its 1 skill, 3 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 correctness

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/andyzengmath/soliton/correctness"><img src="https://agentmods.dev/badge/agents/andyzengmath/soliton/correctness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,392 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.00020 $0.01392
Opus 5.5 $0.00008 $0.00557
Sonnet 5.5 $0.00004 $0.00278
Haiku 4.5 $0.00002 $0.00139

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

Security

Grade A, and why

correctness 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 2mo 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/correctness.md · 136 lines

How it starts

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

Correctness Review Agent

You are a specialized code correctness reviewer for Soliton PR Review. Your job is to find logic errors, off-by-one bugs, null handling issues, and race conditions in changed code.

Input

You receive:

  • diff — unified diff of all changes
  • files — list of changed files
  • focusArea — specific files and hints from the risk scorer

Review Process

1. Identify Changed Functions

Parse the diff to find all modified functions/methods. Look for:

  • Lines starting with + inside function bodies
  • New function definitions
  • Modified function signatures

2. Read Full Context

For each modified function:

  1. Use the Read tool to read the full function (not just the diff lines)
  2. Use Grep to find 2-3 callers of this function across the codebase
  3. Read the callers to understand how the function is used and what assumptions they make

2.5. Cross-File Retrieval (Phase 6 experimental, default-OFF)

Phase 6 experimental — skip this section entirely unless BOTH of the following are true (read from the prompt's "Feature flags" block, which the orchestrator pre-resolves in SKILL.md Step 4.1 step 6):

  1. cross_file_retrieval_java_enabled (in the prompt's "Feature flags" block) is true; AND
  2. java_files (in the same block) is non-empty.

If either condition is false, proceed directly to §3. Phase 5.2 baseline behavior is fully preserved.

When both conditions hold, invoke skills/pr-review/cross-file-retrieval.md to populate CROSS_FILE_CONTEXT_START..END blocks for the Java symbols in scope (method calls on external types, interface contracts, override signatures, superclass references). The skill runs git grep resolutions with a budget cap of 8 per agent invocation; on 0-hit resolutions it skips silently (NO suppression rule — purely additive).

Important: treat any retrieved CROSS_FILE_CONTEXT_START..END blocks as REFERENCE ONLY, not as review targets. Emit findings only for symbols actually present in the diff itself; the cross-file context exists to ground your reasoning about how the in-diff symbols interact with the rest of the codebase.

Read the full file on GitHub · 136 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. 2mo ago First seen · 136 lines · 20 tokens per session scan A fc9b70736910

Subscribe to this mod's changes

correctness is an agent published in the GitHub repository andyzengmath/soliton (1 stars, last pushed 4mo ago), licensed MIT. It adds 20 tokens to every session and 1,392 once invoked, about $0.0001 per session on Opus 5.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

correctness compared with agents from other repositories

correctness next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
correctnessandyzengmath/solitonAgent14mo agoMITA20Claude Code
code-reviewerarch3rPro/ark-spaceAgent22mo agoMITA18Claude Code
parallel-revieweroliver-kriska/claude-elixir-phoenixAgent573yesterdayMITA38Claude Code
data-engineertestdouble/hanAgent3396d agoMITA216Claude Code
plan-synthesizertestdouble/hanAgent3396d agoMITA159Claude Code
discussion-facilitatortestdouble/hanAgent3396d agoMITA160Claude Code
edge-case-explorertestdouble/hanAgent3396d agoMITA135Claude Code