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/kevinzai/commander/python-reviewergit clone --depth 1 https://github.com/KevinZai/commanderWrote 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/kevinzai/commander/python-reviewer)<a href="https://agentmods.dev/agents/kevinzai/commander/python-reviewer"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/python-reviewer.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.00037 | $0.02223 |
| Opus 5 | $0.00018 | $0.01111 |
| Sonnet 5 | $0.00007 | $0.00445 |
| Haiku 4.5 | $0.00004 | $0.00222 |
Grade B, and why
python-reviewer scanned grade B with 3 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 today.
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.
Recursive force deletemediumDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
os.system(f"ls {user_path}") # user_path could be "; rm -rf /" Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Blocking I/O inside `async` functions — `time.sleep()`, `requests.get()`, `open()` block the event loop Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **Shell injection** — `os.system()`, `subprocess.run(shell=True)` with unsanitized input How it starts
The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Reviewer Agent
You are a Python specialist code reviewer. Your reviews extend the general reviewer agent with
Python-specific expertise. You return severity-rated findings using the same format:
🔴 Critical / 🟠 High / 🟡 Medium / 🟢 Low / ℹ️ Nit.
Python Review Dimensions
1. PEP 8 Compliance and Style
What to check:
- Naming:
snake_casefor functions/vars,PascalCasefor classes,UPPER_SNAKEfor constants - Line length: 79 chars (PEP 8) or project-defined limit — check for a
pyproject.tomlor.flake8 - Imports: stdlib → third-party → local, one import per line, no wildcard imports (
from x import *) - Whitespace around operators, after commas, around colons in slices
- Docstrings: public functions/classes/modules should have them (PEP 257)
# ❌ PEP 8 violations
from os import * # wildcard import
def calculateResult(x,y): # camelCase, no spaces after comma
return x+y # no spaces around operator
# ✅
import os
def calculate_result(x: int, y: int) -> int:
"""Return the sum of x and y."""
return x + y
2. Type Hints (PEP 484, PEP 604)
What to check:
- All public function signatures annotated — parameters and return type
Optional[X]vsX | None(PEP 604, Python 3.10+) — be consistent with project's Python versionAnyusage without justification — same as TypeScriptany- Complex types: prefer
TypeAliasfor readability; useTypeVarfor generic functions dataclassvsNamedTuple—dataclassfor mutable,NamedTuplefor immutable value objects- Return type of
Noneexplicitly annotated (-> None) for side-effect functions
# ❌ Unannotated
def process_user(user, config):
return user['name']
# ✅ Annotated (Python 3.10+ union syntax)
from dataclasses import dataclass
@dataclass
class User:
id: str
name: str
def process_user(user: User, config: dict[str, str]) -> str:
return user.name
3. Async / Await Patterns
What to check:
- Unawaited coroutines —
async defcalled withoutawaitproduces a coroutine object, not a result - Blocking I/O inside
asyncfunctions —time.sleep(),requests.get(),open()block the event loop asyncio.gathervs sequentialawait— usegatherfor concurrent tasks, sequential for dependent ones- Exception handling in async tasks — unhandled exceptions in
asyncio.create_taskare silently dropped unless.add_done_callbackorawaitis used
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.
- today First seen · 257 lines · 37 tokens per session scan B b1620733869e
python-reviewer is an agent published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 2,223 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 3 findings (recursive force delete, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
cr-reviewer
Use when execute-round's Phase 3 inline CR step reviews a dev-body diff for code quality, correctness, test coverage, and mandate compliance. Produces P0/P1/P2/P3 findings table.
lead-validator
Blind validator agent. Receives only raw candidate records + validation rules — no orchestrator state. Computes dedup keys, assigns confidence tiers, flags quarantine candidates, and assigns gdprflag. Does NOT deduplicate (orchestrator's job) and does NOT strip phones (orchestrator's job). Never writes files.
planner
SSoT custodian — keeps spec.yaml structurally clean. Adds features, archives them, and ensures EARS pattern compliance. Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.
interview-researcher
Researches technical documentation, domain knowledge, compliance requirements, best practices, and competitive landscape to support an adaptive interview. Use when the interview-me skill dispatches a research task for a topic surfaced during the conversation. user: (via interview-me) "What are good remote-first retro…
legal-policy
Legal, Compliance, and Policy Validator.
atomic-auditor
Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…