ccc-python-review

ccc-python-review is a command for Claude Code from KevinZai/commander. It costs 48 tokens per session (1,212 once invoked), scanned A, a copy of python-review, MIT.

A Python-focused code review that checks style, type hints, security risks, and common Python mistakes.

In plain words
What is it for?
Use it after changing Python files, during pull-request reviews, or when learning the conventions of an unfamiliar Python project.
Why use it?
It brings several Python checks together and groups findings by severity, helping catch defects before code is committed or reviewed.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: runs codex exec; mentions Codex.

Good fit Use it after changing Python files, during pull-request reviews, or when learning the conventions of an unfamiliar Python project.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-python-review
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/KevinZai/commander

Made for: Claude Code.

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 ccc-python-review

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-python-review"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-python-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 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,212 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 95% copy Near-identical to another mod 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.00048 $0.01212
Opus 5.5 $0.00019 $0.00485
Sonnet 5.5 $0.00010 $0.00242
Haiku 4.5 $0.00005 $0.00121

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

Security

Grade A, and why

ccc-python-review 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.

Origin

This is a copy

95% identical to python-review — 335 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/ccc-python-review.md · 100 lines

How it starts

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

/ccc-python-review — Python review with a merge verdict

CC Commander · /ccc-python-review · static analysis plus a python-reviewer agent pass, returned as path:line findings and an approve, warn or block verdict.

Arguments

$ARGUMENTS: optional paths or a git range (for example main...HEAD). Default: uncommitted and staged changes.

What happens

  1. Find the Python changes.

    git diff --name-only --diff-filter=ACMR HEAD -- '*.py'
    git diff --name-only --diff-filter=ACMR <range> -- '*.py'   # when a range was given
    

    Include pyproject.toml, setup.cfg, requirements*.txt and lock files when they changed. If no Python files changed, say so and stop.

  2. Run static analysis. Run each tool only when it is installed (command -v <tool>) or declared in the project's dev dependencies; prefer the project's own task runner (make lint, tox, nox, uv run, poetry run) when it defines these checks. Scope to the changed files where the tool allows it.

    ruff check <files>
    ruff format --check <files>      # or: black --check <files>
    isort --check-only <files>       # only when the project uses isort
    mypy <files>
    bandit -q <files>
    pip-audit                         # dependency audit, when dependencies changed
    pytest --cov=<package> --cov-report=term-missing   # when tests exist
    

    Record pass, fail or not installed for each. Do not install missing tools.

  3. Delegate the code review. Call the Agent tool with the python-reviewer agent (read-only), passing the changed file list, the diff, the static-analysis output and the detected framework (Django, FastAPI, Flask or none). Ask it to return findings as path:line + severity + issue + fix. Codex fallback: run the same review with codex exec --sandbox read-only and the same instructions.

  4. Check the findings. Open each CRITICAL and HIGH finding at its path:line and confirm it against the code before reporting it; drop any the code does not support.

  5. Report in the output format below and give the verdict.

Read the full file on GitHub · 100 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. 5d ago Changed · -198 lines · +17 tokens per session fe005a3b4ac7
  2. 1mo ago First seen · 298 lines · 31 tokens per session scan A 7e1ee65e9cc9

Subscribe to this mod's changes

ccc-python-review is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,212 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to python-review, differing in 335 lines, and is treated as a copy.