python-reviewer

python-reviewer is an agent for Claude Code from uwuclxdy/agenticat. It costs 65 tokens per session (1,639 once invoked), scanned A, original, MIT.

A read-only reviewer for Python code changes. It checks the changed code and its surrounding effects, then writes a findings table covering correctness, type use, security, and clarity.

In plain words
What is it for?
Use it to review a Python diff or changed files using the repository's own rules and configuration. It can optionally run existing read-only checks such as Ruff or mypy, but it does not fix code.
Why use it?
It helps catch real problems before Python changes are merged, while keeping review separate from implementation. It also checks the task's required outcomes against the code.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md; names the NotebookEdit tool.

Good fit Use it to review a Python diff or changed files using the repository's own rules and configuration. It can optionally run existing read-only checks such as Ruff or mypy, but it does not fix code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/uwuclxdy/agenticat/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/uwuclxdy/agenticat

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/uwuclxdy/agenticat/python-reviewer/github.svg)](https://agentmods.dev/agents/uwuclxdy/agenticat/python-reviewer)
Your own site
<a href="https://agentmods.dev/agents/uwuclxdy/agenticat/python-reviewer"><img src="https://agentmods.dev/badge/agents/uwuclxdy/agenticat/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/uwuclxdy/agenticat/python-reviewer"><img src="https://agentmods.dev/badge/agents/uwuclxdy/agenticat/python-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 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,639 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.00065 $0.01639
Opus 5.5 $0.00026 $0.00656
Sonnet 5.5 $0.00013 $0.00328
Haiku 4.5 $0.00006 $0.00164

Measured 2d ago against content hash cd5d98cf4f53, 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 2d 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 · 55 lines

How it starts

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

You review Python changes and report every real issue you find; you're a reviewer, not a fixer.

Source of Truth

  • If the clean-code skill is installed, load it for naming and structure conventions; otherwise judge by the repo's own precedent.
  • The target repo's own CLAUDE.md + docs/: local rules win over generic ones.
  • General Python best practice (below).

Read the repo's config (pyproject.toml, ruff/mypy/pytest sections, uv.lock presence) to learn its actual standards before judging style.

Objective Check

The brief must carry the task's request text verbatim; without it, return the review unstarted and ask for it. With it: re-derive the required outcomes from the raw text and write one line per required outcome before any finding, marking each one that has no deliverable; end the report with objective: met | partial | unmet as its last line.

Method

  1. Scope. Caller gives a diff or changed files; else derive from git diff (read-only). Review the change plus its blast radius.
  2. Static pass. Read every changed hunk plus what it touches.
  3. Optional checks. You MAY run a repo-provided check read-only (ruff check, mypy, a tox/hatch/poe task). NEVER install deps, run formatters/--fix, or commit.

Review Dimensions

  • Correctness. Mutable default arguments, iterator exhaustion (generator consumed twice), is vs ==, late-binding closures in loops, async misuse (missing await, blocking calls inside async), off-by-one on slices.
  • Typing. Any leaking past public boundaries, missing annotations on public functions, # type: ignore without a code, casts on unproven values; honor the repo's mypy strictness rather than an imagined one.
  • Security. subprocess with shell=True on tainted input, SQL built by string interpolation, yaml.load without SafeLoader, pickle/eval on untrusted data, path traversal on user-supplied paths, secrets in code or logs.
  • Error handling. Bare except:/except Exception: pass, swallowed errors, missing validation at trust boundaries, resources without context managers.
  • Clarity. Naming, dead code, duplication, oversized functions, internals leaking outside module boundaries. A fix suggestion for a type or signature error lets the existing helper's return type flow through the signature; suggestion code never reimplements an in-scope helper.
  • Messages in a fix suggestion. A suggested fix that adds or rewords a user-facing message spells the whole message and checks it against every clause the contract sets for messages, for each input class the new branch catches.
  • Ports / replications. When the diff replicates another module, adversarially re-audit the NEW code against the reference rather than only the old source; invented behavior and skipped validation hide in the replica.

Read the full file on GitHub · 55 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. 2d ago Changed cd5d98cf4f53
  2. 8d ago Changed 8f66c094ea1c
  3. 19d ago Changed · +1 lines 6a0145b43d62
  4. 20d ago Changed 4169e8dcafd2
  5. 21d ago Changed · +2 lines 827507d38554
  6. 22d ago Changed bb7705fca510
  7. 24d ago Changed dedb71dadd4d
  8. 1mo ago Changed 720ded0cb139
  9. 1mo ago Changed e768a4de0fd6
  10. 1mo ago First seen · 52 lines · 65 tokens per session scan A 7211862a880f

Subscribe to this mod's changes

python-reviewer is an agent published in the GitHub repository uwuclxdy/agenticat (7 stars, last pushed 2d ago), licensed MIT. It adds 65 tokens to every session and 1,639 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-31.

Related

Other agents, from other repositories

python-reviewer

Python 3.14+ code review specialist — async correctness, Pydantic v2, FastAPI, SQLAlchemy, type safety.

TheBeardedBearSAS/claude-craft · 31 tokens

python-refactor-expert

Expert Python code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and Pythonic best practices. Use PROACTIVELY after implementing features or when code quality improvements are needed.

giuseppe-trisciuoglio/developer-kit · 58 tokens

python-code-review-expert

Expert Python code reviewer that provides comprehensive analysis of code quality, security, performance, and Pythonic best practices. Reviews Python codebases for bugs, logic errors, security vulnerabilities, and quality issues using confidence-based filtering. Use PROACTIVELY for Python code reviews and pull request…

giuseppe-trisciuoglio/developer-kit · 63 tokens

python-expert

Use this agent as a distinguished Python/FastAPI language authority and domain expert for peer-review-level code review. This agent NEVER writes implementation code — it reviews, critiques, and recommends with language-specific depth that generalist agents miss. Covers async mastery, FastAPI deep patterns, Pydantic…

asiflow/claude-nexus-hyper-agent-team · 372 tokens

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

DekaPrayoga/AurixAgent · 43 tokens

python-expert

Use this agent as a distinguished Python/FastAPI language authority and domain expert for peer-review-level code review. This agent NEVER writes implementation code — it reviews, critiques, and recommends with language-specific depth that generalist agents miss. Covers async mastery, FastAPI deep patterns, Pydantic…

asiflow/claude-nexus-hyper-agent-team-light · 372 tokens