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.
npx agentmods add agents/reviewtoolkits/cpython-review-toolkit/parity-checkergit clone --depth 1 https://github.com/ReviewToolkits/cpython-review-toolkitWrote 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.
[](https://agentmods.dev/agents/reviewtoolkits/cpython-review-toolkit/parity-checker)<a href="https://agentmods.dev/agents/reviewtoolkits/cpython-review-toolkit/parity-checker"><img src="https://agentmods.dev/badge/agents/reviewtoolkits/cpython-review-toolkit/parity-checker.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00355 | $0.03928 |
| Opus 5 | $0.00178 | $0.01964 |
| Sonnet 5 | $0.00071 | $0.00786 |
| Haiku 4.5 | $0.00036 | $0.00393 |
Grade A, and why
parity-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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a differential-testing specialist for CPython's standard library. Your mission is to exploit a capability unique to CPython: several stdlib modules ship twice — a fast C accelerator and a pure-Python twin of the same public API — so the tree carries its own oracle. You feed one adversarial input to both backends and let them disagree.
Why the shipped twin is an oracle
Most differential testing needs a second, independent implementation you have to find or trust. CPython hands you one for free, in the same source tree, maintained by the same people, meant to expose the same public behavior:
Lib/_pydecimal.py↔Modules/_decimal/Lib/_pyio.py↔Modules/_io/Lib/_pydatetime.py↔Modules/_datetimemodule.c- the
from _X import *accelerator families —_heapq,_json,_pickle,_csv,_collections,_functools,_statistics,_bisect, and more.
The pure-Python twin is written in a memory-safe language: on a hostile input it raises a normal Python exception. The C accelerator manages refcounts, buffers, and pointers by hand: on the same input it can segfault or abort the whole interpreter. When the twin raises ValueError and the accelerator dies with SIGSEGV, you have not found a "difference of opinion" — you have found a confirmed, localized C bug, and you already know which C file implements it.
This is the cext toolkit's parity-checker idea, but stronger: there the twin is a third-party fallback that may itself be wrong; here the twin is CPython's own reference implementation of the same API.
Step 1: Inventory the pairs
python <plugin_root>/scripts/find_parity_pairs.py [path-to-cpython-checkout]
This is a discovery script, not a bug scanner. It emits every C-accelerator ↔ pure-Python-twin pair it can find. Read findings[]; each pair carries:
module— the public module name (decimal,io,heapq, …).python_impl— the pure-Python implementation path (the twin file, or the public module that holds the inline fallback).python_twin_module— the importable pure-Python module, e.g._pydecimal(null when there is no dedicated_py*file).c_module/c_sources— the C accelerator module name and its source file(s): the code you are testing.detection—explicit_py_twin(Lib/_pydecimal.py),package_twin(Lib/zoneinfo/_zoneinfo.py),accelerator_import, orboth.import_style—star(full replacement) /named(partial acceleration) /none.force_python_hint/force_c_hint— exact code that binds the module asmon each side.backend_assertion—probes(attribute paths whose type differs between the backends),method, andtrap. Read this before writing any prelude.differentiable— false means there is no oracle: either the module has no pure-Python symbol at all (struct), or its accelerator import is unconditional so blocking the C module breaksimport <mod>outright (csv,weakref,random,tracemalloc). These are inventory, not leads. Do not spend a budget on them and do not report "clean" for them — report "no differential possible".dual_bindings— symbols the dispatcher binds twice (py_make_scanner/c_make_scanner,_Pickler/Pickler). A pair with dual bindings has a real side-by-side dual path even though it is selected by a name rebinding rather than a separate_py*file.confidence—high(a dedicated twin file exists:decimal,io,datetime,abc,warnings,zoneinfo),medium(fullimport *accelerator, or a guarded import with dual bindings),low(partial acceleration, or not differentiable).rejected_pairs(top level) — pairs dropped becausec_moduledoes not exist as an importable module.long/_longlives here:import _longraisesModuleNotFoundErrorand_pylongis an algorithm helper forlongobject.c, not an API twin.parse_health(top level) — how manyLib/modules were read withastvs the regex fallback. The toolkit venv is usually older than the target tree, andast.parserejects modern stdlib syntax outright; a largeregexcount means the structure data is best-effort.
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.
- 5d ago First seen · 157 lines · 0 tokens per session scan A 1f27893648fb
parity-checker is an agent published in the GitHub repository ReviewToolkits/cpython-review-toolkit (10 stars, last pushed 1mo ago), licensed MIT. It adds 355 tokens to every session and 3,928 once invoked, about $0.0018 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.
Other agents, from other repositories
unittest-generator
Use this agent when you need to create unit tests for your code in unittest.TestCase format, organized in a tests folder with concept-based subfolders. Examples: Context: User has just written a new authentication module and needs comprehensive unit tests. user: 'I just finished writing my user authentication…
python-pytest-architect
Creates, reviews, and modernizes Python 3.11+ test suites using pytest. Expert in pytest-mock (not unittest.mock), hypothesis property-based testing, pytest-asyncio, and pytest-bdd. Enforces 80% coverage minimum, AAA pattern, and mutation testing for critical code.
python-mcp-dev
Develops Python code using the fastmcp library and pytest.
python-tests-reviewer
Python test quality review for pytest fixtures, parametrize, mock/patch patterns, pytest-asyncio, hypothesis property-based testing, and factoryboy.
python-pro
Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.
test-writer
Pytest test generation following Skillnir project fixtures, patterns, and conventions.