explore

explore is a command for Claude Code from ReviewToolkits/cext-review-toolkit. It costs 87 tokens per session (4,024 once invoked), scanned A, original, MIT.

A command for a broad review of a CPython C extension, which is native code that adds compiled functionality to Python. It runs focused checks for areas such as memory references, errors, null values, and thread safety.

In plain words
What is it for?
Use it to analyze an entire C extension, a directory, or a file, with checks selected by topic.
Why use it?
It brings several common sources of crashes, leaks, and compatibility problems into one extension review.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is point the user at [`WORKING_WITH_MAINTAINERS.md`](../../../WORKING_WITH_MAINTAINERS.md). The.

Part of the cext-review-toolkit plugin — 1 skill, 4 commands, 14 agents shipped together

Good fit Use it to analyze an entire C extension, a directory, or a file, with checks selected by topic.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ReviewToolkits/cext-review-toolkit
agentmods
npx agentmods add commands/reviewtoolkits/cext-review-toolkit/explore

Made for: Claude Code.

Or install cext-review-toolkit, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 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 explore

README.md
[![agentmods](https://agentmods.dev/badge/commands/reviewtoolkits/cext-review-toolkit/explore/github.svg)](https://agentmods.dev/commands/reviewtoolkits/cext-review-toolkit/explore)
Your own site
<a href="https://agentmods.dev/commands/reviewtoolkits/cext-review-toolkit/explore"><img src="https://agentmods.dev/badge/commands/reviewtoolkits/cext-review-toolkit/explore/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 explore

Your own site · 80×15
<a href="https://agentmods.dev/commands/reviewtoolkits/cext-review-toolkit/explore"><img src="https://agentmods.dev/badge/commands/reviewtoolkits/cext-review-toolkit/explore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,024 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.00087 $0.04024
Opus 5.5 $0.00035 $0.01610
Sonnet 5.5 $0.00017 $0.00805
Haiku 4.5 $0.00009 $0.00402

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

Security

Grade A, and why

explore 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.

plugins/cext-review-toolkit/commands/explore.md · 337 lines

How it starts

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

Comprehensive C Extension Analysis

Run a comprehensive analysis of a CPython C extension using multiple specialized agents, each focusing on a different aspect of extension correctness. Extension discovery runs first to understand the project layout.

Arguments: "$ARGUMENTS"

Plugin root: <plugin_root> refers to the directory containing this command file's parent -- i.e., the plugins/cext-review-toolkit/ directory. Resolve it relative to this file's location.

Argument Parsing

Parse arguments into three categories:

Scope (path or glob):

  • . or omitted → entire project (default)
  • src/ → specific directory tree
  • src/myext.c → specific file

Aspects (which agents to run):

  • refcounts → refcount-auditor
  • errors → error-path-analyzer
  • null-safety → null-safety-scanner
  • gil → gil-discipline-checker
  • module-state → module-state-checker
  • type-slots → type-slot-checker
  • abi → stable-abi-checker
  • compat → version-compat-scanner
  • pyerr-clear → pyerr-clear-auditor
  • resources → resource-lifecycle-checker
  • parity → parity-checker
  • complexity → c-complexity-analyzer
  • history → git-history-analyzer
  • external-tools → run external tools only (clang-tidy, cppcheck)
  • all → all agents (default)

Options:

  • deep → full detail, no output truncation
  • summary → summary tier only (faster)
  • parallel → run agents concurrently where possible
  • --max-parallel N → cap concurrent agents per group (default: 2)
  • --runs N → run agents N times (default: 1). Run 2+ are independent naive passes. Findings are deduplicated across runs. If run 2 finds 0 new findings, report "high confidence — converged on first pass."
  • --informed-reruns → when used with --runs 3, run 3 agents receive a summary of runs 1-2 findings with the instruction: "These bugs were already found. Look at ADJACENT code, unexplored error paths, and patterns similar to these confirmed bugs that the prior runs might have missed." This targets the informed-rerun technique that found 33% more bugs on simplejson.

Read the full file on GitHub · 337 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 First seen · 337 lines · 87 tokens per session scan A a41a7efd6a36

Subscribe to this mod's changes

explore is a command published in the GitHub repository ReviewToolkits/cext-review-toolkit (29 stars, last pushed 2mo ago), licensed MIT. It adds 87 tokens to every session and 4,024 once invoked, about $0.0003 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-30.