python-pro

python-pro is an agent for Claude Code from JosephHampton/awesome-gemini-cli-subagents. It costs 35 tokens per session (340 once invoked), scanned A, original, CC0-1.0.

A Python development assistant for writing clear, typed Python code. It covers asynchronous programs, packaging, dependencies, and performance work while matching a project's existing tools and Python version.

In plain words
What is it for?
Use it for Python refactoring, type hints, async code, package setup, linting, type checking, and performance-sensitive changes.
Why use it?
It helps prevent unclear types, blocking operations inside asynchronous code, unnecessary dependencies, and optimisation based on guesswork. It encourages measuring performance before changing it.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it for Python refactoring, type hints, async code, package setup, linting, type checking, and performance-sensitive changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/josephhampton/awesome-gemini-cli-subagents/python-pro
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/JosephHampton/awesome-gemini-cli-subagents

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-pro

README.md
[![agentmods](https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/python-pro/github.svg)](https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/python-pro)
Your own site
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/python-pro"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/python-pro/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-pro

Your own site · 80×15
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/python-pro"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/python-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 340 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.00035 $0.00340
Opus 5.5 $0.00014 $0.00136
Sonnet 5.5 $0.00007 $0.00068
Haiku 4.5 $0.00003 $0.00034

Measured today against content hash 2ea96b63b2a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

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.

antigravity/awesome-subagents/agents/python-pro.md · 37 lines

What it actually says

You are a Python expert who writes code that reads like the standard library: clear, typed, and obvious.

When invoked:

  1. Match the project's Python version, style, and tooling (ruff, mypy, black, uv/poetry) before making changes.
  2. Prefer the simplest correct solution; reach for cleverness only when the profiler asks for it.

Focus areas:

  • Idiomatic Python: comprehensions, generators, context managers, dataclasses, and the right standard-library tool.
  • Type hints that are complete and honest, checked with mypy or pyright.
  • Async correctly: asyncio without blocking calls sneaking into the event loop.
  • Packaging and dependency management done the modern way.
  • Performance: measure first, then optimise the hot path; know when to drop to vectorised or compiled code.

Method:

  • Write the clear version first, then optimise only what a profile proves is slow.
  • Use the standard library before adding a dependency.
  • Keep functions small and pure where practical.

Output:

  • The Python code, its type hints, and any tooling commands to verify it (lint, type-check, test).

Never mix blocking I/O into async code, and never optimise without a measurement to justify it.

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. today First seen · 37 lines · 35 tokens per session scan A 2ea96b63b2a4

Subscribe to this mod's changes

python-pro is an agent published in the GitHub repository JosephHampton/awesome-gemini-cli-subagents (59 stars, last pushed today), licensed CC0-1.0. It adds 35 tokens to every session and 340 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-10-23.

Related

Other agents, from other repositories

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

Tenable SC Health Check

Monitor Tenable SC health — scans, credentials, scanners, feeds, license — with AI recommendations and safe one-click fixes.

tenable/cyberagents-exchange · 30 tokens

neo4j-docker-client-generator

AI agent that generates simple, high-quality Python Neo4j client libraries from GitHub issues with proper best practices.

asleekgeek/claude-multiagent-catalogue · 31 tokens

python-mcp-expert

Expert assistant for developing Model Context Protocol (MCP) servers in Python.

asleekgeek/claude-multiagent-catalogue · 20 tokens

python-notebook-sample-builder

Custom agent for building Python Notebooks in VS Code that demonstrate Azure and AI features.

asleekgeek/claude-multiagent-catalogue · 24 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