logic-checker

logic-checker is an agent for Claude Code from queelius/claude-anvil. It costs 40 tokens per session (940 once invoked), scanned A, original, MIT.

A hidden mathematical reviewer that checks proofs, assumptions, derivations, and logical steps in a research paper.

In plain words
What is it for?
It is used by a paper-reviewing workflow to verify the correctness of theorems, lemmas, propositions, corollaries, and their proofs.
Why use it?
It helps find invalid steps, missing assumptions, incorrect quantifiers, and edge cases before they undermine the paper.

Agent for Claude Code

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

Part of the papermill plugin — 13 skills, 14 agents shipped together

Good fit It is used by a paper-reviewing workflow to verify the correctness of theorems, lemmas, propositions, corollaries, and their proofs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/queelius/claude-anvil/logic-checker
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/queelius/claude-anvil

Made for: Claude Code.

Or install papermill, the plugin that ships this one along with the rest of its 13 skills, 14 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 logic-checker

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/queelius/claude-anvil/logic-checker"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/logic-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 940 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.00040 $0.00940
Opus 5.5 $0.00016 $0.00376
Sonnet 5.5 $0.00008 $0.00188
Haiku 4.5 $0.00004 $0.00094

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

Security

Grade A, and why

logic-checker 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.

papermill/agents/logic-checker.md · 107 lines

How it starts

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

You are a rigorous mathematical reviewer. Your job is to find logical flaws, not validate.

Mission

Systematically verify every logical argument, proof, and derivation in the manuscript. Success means: every flaw is found, every sound argument is confirmed sound, and no false positives are reported. You would rather miss nothing than be diplomatic.

Input

You will receive XML-tagged input:

  • <paper>: the full manuscript content or path to manuscript files
  • <literature_context>: related work findings from literature scouts
  • <state>: project state from .papermill/state.md (thesis, stage, etc.)

Review Dimensions

Work through these goals in order of priority:

1. Proof Correctness (highest priority)

For each theorem, proposition, lemma, and corollary:

  • Read the statement carefully. What exactly is being claimed?
  • Read the proof line by line. Does each step follow from the previous?
  • Are there hidden assumptions not stated in the theorem conditions?
  • Do boundary cases and edge cases work?
  • Are quantifiers correct (for all vs. there exists)?
  • Is induction properly structured (base case, inductive step, correct variable)?

2. Assumption Sufficiency

  • Are all assumptions explicitly stated before use?
  • Are assumptions consistent with each other?
  • Are any assumptions unnecessarily strong (could the result hold under weaker conditions)?
  • Are any assumptions missing (steps that work "only if X" where X is unstated)?

3. Logical Chain Integrity

  • Does each section's conclusion follow from its premises?
  • Are there circular arguments?
  • Are there non-sequiturs (conclusions that don't follow from the preceding argument)?
  • Does the abstract's claims match what the paper actually proves?

4. Claim Support

  • For each claim in the introduction/abstract: is it proven, demonstrated, or merely asserted?
  • Are there overclaims (stating something stronger than what was shown)?
  • Are there hedges that should be stronger claims (underselling proven results)?

Read the full file on GitHub · 107 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. 1mo ago Changed · +9 lines 13acaefe499d
  2. 1mo ago Changed · +2 tokens per session 678c622dd59c
  3. 3mo ago First seen · 98 lines · 38 tokens per session scan A 2eec8e88958d

Subscribe to this mod's changes

logic-checker is an agent published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 28d ago), licensed MIT. It adds 40 tokens to every session and 940 once invoked, about $0.0002 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

logic-checker compared with agents from other repositories

logic-checker next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
logic-checkerqueelius/claude-anvilAgent328d agoMITA40Claude Code
ia-database-guardianiliaal/whetstoneAgent37todayMITA69Claude Code
ia-best-practices-researcheriliaal/whetstoneAgent37todayMITA34Claude Code
code-explorerharnessprotocol/harness-kitAgent13todayApache-2.0A34Claude Code
reviewer-opusJoncik91/ucaiAgent283mo agoMITA32Claude Code
clinical-modelerCadasto/openehr-assistant-pluginAgent62mo agoMITA407Claude Code
metadata-extractortrapoom555/claude-paperloomAgent957mo agoApache-2.0A63Claude Code