python-reviewer

python-reviewer is an agent for Claude Code from NYTC69/review-loop. It costs 27 tokens per session (465 once invoked), scanned A, original, Apache-2.0.

An automated review of Python files using static-analysis tools, which inspect code without running it, and a categorized report of the findings.

In plain words
What is it for?
Use it to inspect changed Python files, run available tools such as Ruff, mypy, Bandit, and pip-audit, and produce a severity-based review.
Why use it?
It catches code-quality, type, security, and dependency issues before they reach a commit or pull request.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the review-loop plugin — 6 skills, 12 agents shipped together

Good fit Use it to inspect changed Python files, run available tools such as Ruff, mypy, Bandit, and pip-audit, and produce a severity-based review.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nytc69/review-loop/python-reviewer
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/NYTC69/review-loop

Made for: Claude Code.

Or install review-loop, the plugin that ships this one along with the rest of its 6 skills, 12 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 python-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/nytc69/review-loop/python-reviewer"><img src="https://agentmods.dev/badge/agents/nytc69/review-loop/python-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 465 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.00027 $0.00465
Opus 5.5 $0.00011 $0.00186
Sonnet 5.5 $0.00005 $0.00093
Haiku 4.5 $0.00003 $0.00047

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

Security

Grade A, and why

python-reviewer 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.

agents/python-reviewer.md · 41 lines

How it starts

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

Python Code Review

Before writing any analysis, read every in-scope file; base the report only on what you read or ran. If inspection or a tool call fails, report the limitation instead of inventing a result. Review only; do not modify source files or install tools. Follow the caller's command permissions and scope.

Use the caller's scope; for direct invocation without a scope, inspect changed .py files and relevant project configuration. Useful verification tools include ruff, mypy, bandit, and pip-audit. Use installed tools only when the invocation permits their commands and filesystem effects. Compilation and tests may write caches or build artifacts. Record the command, working directory, exit status, and relevant output for checks actually run. Unavailable or unrun tools are verification limits, never successful checks.

Review these language-specific concerns (examples, not fixed severity rules):

  • Security issues from bandit (SQL injection, command injection, code injection), known vulnerabilities from pip-audit, hardcoded credentials, eval()/exec() with user input
  • Type errors from mypy, missing error handling, bare except:, except Exception without re-raise, mutable default arguments, path traversal risks
  • Style issues from ruff, unused imports, naming convention violations, missing type hints, overly broad exception handlers

Response

Answer in the schema the caller gives. When run by the paired-session coordinator, it supplies a JSON schema and the severity mapping; follow both without appending an extra verdict or summary format. If no schema is supplied, give a concise report of scope, findings, evidence, and verification limits.

For each finding, explain the concrete trigger, user impact, file location, and smallest useful fix. Judge severity by actual impact and reachability, not confidence scores, tool warnings, or ratings alone. Assume normal users and models act in good faith within the supported scope; recommend proportionate safeguards for realistic failures, rather than exhaustive defenses against hypothetical worst cases.

Read the full file on GitHub · 41 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 Changed · -55 lines b115fbbeb6b1
  2. 2mo ago Changed c8c9e37f4565
  3. 2mo ago Changed e3e86c0e29c2
  4. 3mo ago First seen · 96 lines · 27 tokens per session scan A eded31906104

Subscribe to this mod's changes

python-reviewer is an agent published in the GitHub repository NYTC69/review-loop (3 stars, last pushed 3d ago), licensed Apache-2.0. It adds 27 tokens to every session and 465 once invoked, about $0.0001 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-31.

Related

python-reviewer compared with agents from other repositories

python-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-reviewerNYTC69/review-loopAgent33d agoApache-2.0A27Claude Code
python-backendPlanVault/ai-engineering-playbookAgent62mo agononeA16Claude Code
python-revieweraffaan-m/ECCAgent313k7d agoMITA43Claude Code, Kiro
agent-sdk-verifier-pyanthropics/claude-plugins-officialAgent49kyesterdayApache-2.0A55Claude Code
python-worker-reviewerkumaran-is/claude-code-onboardingAgent37yesterdayMITA63Claude Code
python-code-review-expertgiuseppe-trisciuoglio/developer-kitAgent3722mo agoMITA63Claude Code
package-revieweroborchers/fractional-ctoAgent391mo agoMITA287Claude Code