python-reviewer

python-reviewer is an agent for Claude Code from TheBeardedBearSAS/claude-craft. It costs 31 tokens per session (4,655 once invoked), scanned A, original, MIT.

A code-review agent for Python 3.14+ applications, especially FastAPI services. FastAPI is a Python framework for building web APIs.

In plain words
What is it for?
Use it to review architecture, type hints, asynchronous code, Pydantic models, SQLAlchemy sessions, tests, input handling, and secrets.
Why use it?
It targets issues that can cause blocked asynchronous work, memory problems, typing errors, database-session mistakes, or security bugs.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the claude-craft plugin — 58 skills, 96 commands, 58 agents, 5 hooks shipped together

Good fit Use it to review architecture, type hints, asynchronous code, Pydantic models, SQLAlchemy sessions, tests, input handling, and secrets.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thebeardedbearsas/claude-craft/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/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 58 skills, 96 commands, 58 agents, 5 hooks.

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/thebeardedbearsas/claude-craft/python-reviewer/github.svg)](https://agentmods.dev/agents/thebeardedbearsas/claude-craft/python-reviewer)
Your own site
<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/python-reviewer"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/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/thebeardedbearsas/claude-craft/python-reviewer"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/python-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 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,655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00031 $0.04655
Opus 5.5 $0.00012 $0.01862
Sonnet 5.5 $0.00006 $0.00931
Haiku 4.5 $0.00003 $0.00466

Measured 20d ago against content hash 9da43de5618a, 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 2 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 20d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Exemples : time.sleep(), open(), requests.get(),

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(), os.read()
.claude/agents/python-reviewer.md · 627 lines

How it starts

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

Agent Auditeur Python 3.14+ / FastAPI

Identite

Je suis un specialiste de la revue de code Python 3.14+ avec un focus sur les applications FastAPI. Mon approche cible les erreurs specifiques a Python : les appels bloquants dans du code async, la couverture de type hints avec Pydantic v2, la gestion des sessions SQLAlchemy, et les anti-patterns Python classiques (arguments mutables par defaut, etat global). Je ne fais pas un audit generique -- je detecte ce qui provoque des deadlocks, des fuites de memoire ou des bugs subtils en production. Je connais aussi les nouveautés de Python 3.15 (stable depuis le 9 octobre 2026) : imports paresseux (PEP 810), frozendict, sentinel, package profiling.

Systeme de notation (100 points)

Categorie Points Focus
Architecture et Typing 30 Clean Architecture, type hints, Pydantic models
Async Correctness 20 Blocking calls, await manquants, gestion des tasks
Tests 25 pytest, couverture, fixtures, mocks
Securite 25 Injection, validation, secrets, deserialisation

1. Architecture et Typing (30 points)

Arbre de decision : Organisation du code

Le projet suit-il une architecture en couches ?
  NON --> MAJEUR : tout dans un seul fichier ou structure plate
  OUI --> Le Domain depend-il de frameworks (FastAPI, SQLAlchemy) ?
    OUI --> CRITIQUE : Domain couple a l'infrastructure
    NON --> Les interfaces (Protocol/ABC) sont-elles definies dans le Domain ?
      NON --> MAJEUR : pas d'inversion de dependance
      OUI --> OK

Le fichier contient-il des imports circulaires ?
  OUI --> CRITIQUE : restructurer les modules

Type hints : arbre de decision

La fonction est-elle publique ?
  OUI --> Tous les parametres et le retour sont-ils types ?
    NON --> MAJEUR : type hints manquants
    OUI --> Utilise-t-elle des types modernes (Python 3.10+) ?
      list[str] au lieu de List[str] ? --> BON
      str | None au lieu de Optional[str] ? --> BON
      Utilise-t-elle Any ? --> Justifie ?
        NON --> MAJEUR : Any injustifie
        OUI --> MINEUR : documenter pourquoi

Read the full file on GitHub · 627 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. 20d ago Changed 9da43de5618a
  2. 3mo ago First seen · 627 lines · 31 tokens per session scan A 2324ce714b50

Subscribe to this mod's changes

python-reviewer is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (108 stars, last pushed 14d ago), licensed MIT. It adds 31 tokens to every session and 4,655 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

python-reviewer compared with agents from other repositories

python-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-reviewerTheBeardedBearSAS/claude-craftAgent10814d agoMITA31Claude Code
django-fastapi-experttravisjneuman/.claudeAgent1152d agoMITA86Claude Code
python-experttravisjneuman/.claudeAgent1152d agoMITA31Claude Code
python-refactor-expertgiuseppe-trisciuoglio/developer-kitAgent3722mo agoMITA58Claude Code
python-code-review-expertgiuseppe-trisciuoglio/developer-kitAgent3722mo agoMITA63Claude Code
ia-kieran-revieweriliaal/whetstoneAgent37todayMITA54Claude Code
dnp-performance-analystzdanovichnick/dotnet-pilotAgent58d agoMITA33Claude Code