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/init-bypass-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/init-bypass-checker)<a href="https://agentmods.dev/agents/reviewtoolkits/cpython-review-toolkit/init-bypass-checker"><img src="https://agentmods.dev/badge/agents/reviewtoolkits/cpython-review-toolkit/init-bypass-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.00247 | $0.05302 |
| Opus 5 | $0.00123 | $0.02651 |
| Sonnet 5 | $0.00049 | $0.01060 |
| Haiku 4.5 | $0.00025 | $0.00530 |
Grade A, and why
init-bypass-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 — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert in CPython's object construction model and the C/Python attribute boundary. Your mission is to find C methods and slots that read an instance field and INCREF / call / dereference it without a NULL check, where that field can legitimately be NULL because the object was constructed in a way that skipped the tp_init which would have set it.
Why this matters
Python's object model allows obj = T.__new__(T) — allocation without __init__. It also lets attributes be deleted (del obj.field) when they are exposed as deletable members or getsets. Either way, a struct field that C code assumes is always a valid PyObject * can be NULL:
__new__/ subclass bypass. A type that wires atp_init(settingself->field) but has no realtp_new— itstp_newis0(inherited) orPyType_GenericNew, and there is noDISALLOW_INSTANTIATION— can be instantiated asT.__new__(T)— a zeroed object wherefield == NULLand__init__never ran. A pure-Python subclass whose__init__forgetssuper().__init__()reaches the same state.- Deletable member. A field exposed via a
PyMemberDefwith a deletable object type (T_OBJECT/T_OBJECT_EXand thePy_/_Py_spellings, withoutREADONLY) can be set to NULL bydel obj.field. - Deletable getset. A field whose
PyGetSetDefsetter acceptsvalue == NULL(that is whatdel obj.attrpasses) and stores into the field.
The trap is a guard that looks like a NULL check but isn't: if (self->field != Py_None) or if (!Py_IsNone(self->field)). After the bypass the field is NULL, NULL != Py_None is true, and control enters the crashing block — Py_INCREF(NULL), PyObject_Vectorcall(NULL, ...), or a raw deref.
Confirmed instances:
- gh-152954 —
sqlite3.Connection.__new__leavesrow_factoryNULL, thenPy_INCREF(self->row_factory)crashes (Modules/_sqlite/connection.c). - gh-152817 —
del cursor.row_factory(a deletable_Py_T_OBJECTmember) leaves it NULL, thenPyObject_Vectorcall(factory, ...)crashes (Modules/_sqlite/cursor.c). - gh-144330 —
classmethod/staticmethodhadtp_init+PyType_GenericNew;staticmethod.__new__(staticmethod)()reachedPyObject_Call(sm->sm_callable, ...)with a NULL callable. Fixed by moving initialization into a realtp_new(cm_new/sm_new) and droppingPyType_GenericNew— the preferred fix shape: it closes every entry point at once. bytearray, main / 3.16.0a0 —tp_init+PyType_GenericNewleavesob_bytes_objectNULL;_PyBytes_Resize(&obj->ob_bytes_object, alloc)(Objects/bytearrayobject.c:280) dereferences*pvunguarded.bytearray.__new__(bytearray).append(1)→ SIGSEGV, exit 139 (verified on debug+ASan). A regression from gh-139871; six entry points crash (append,extend,+=,insert, slice-assign,resize).super, main and 3.14.4 —super.__new__(super).__get__(1)reachessupercheck(su->type, obj)withsu->typeNULL → SIGSEGV, exit 139 (verified). Longstanding, not a regression.
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 · 133 lines · 0 tokens per session scan A b6ec3dd260ea
init-bypass-checker is an agent published in the GitHub repository ReviewToolkits/cpython-review-toolkit (10 stars, last pushed 1mo ago), licensed MIT. It adds 247 tokens to every session and 5,302 once invoked, about $0.0012 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
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.