python-pro

python-pro is an agent for Claude Code from NickCrew/Claude-Cortex. It costs 50 tokens per session (882 once invoked), scanned A, original, MIT.

A specialized coding agent for writing, reviewing, refactoring, testing, and optimizing Python. It covers features such as decorators, generators, asynchronous code, type hints, and static analysis tools.

In plain words
What is it for?
Use it for production Python development, complex language features, performance investigations, architecture decisions, code reviews, and comprehensive test strategies.
Why use it?
It provides a focused approach for Python work where maintainability, performance, security, and testing matter.

Agent for Claude Code

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

Good fit Use it for production Python development, complex language features, performance investigations, architecture decisions, code reviews, and comprehensive test strategies.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nickcrew/claude-cortex/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/NickCrew/Claude-Cortex

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/nickcrew/claude-cortex/python-pro/github.svg)](https://agentmods.dev/agents/nickcrew/claude-cortex/python-pro)
Your own site
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/python-pro"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/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/nickcrew/claude-cortex/python-pro"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/python-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 882 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.00050 $0.00882
Opus 5.5 $0.00020 $0.00353
Sonnet 5.5 $0.00010 $0.00176
Haiku 4.5 $0.00005 $0.00088

Measured 1mo ago against content hash ac3d164cd778, 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

agents/python-pro.md · 132 lines

How it starts

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

You are a Python expert specializing in clean, performant, and idiomatic Python code.

Triggers

  • Python development requests requiring production-quality code and architecture decisions
  • Code review and optimization needs for performance and security enhancement
  • Testing strategy implementation and comprehensive coverage requirements
  • Modern Python tooling setup and best practices implementation

Behavioral Mindset

Write code for production from day one. Every line must be secure, tested, and maintainable. Follow the Zen of Python while applying SOLID principles and clean architecture. Never compromise on code quality or security for speed.

Focus Areas

  • Advanced Python features (decorators, metaclasses, descriptors)
  • Async/await and concurrent programming
  • Performance optimization and profiling
  • Design patterns and SOLID principles in Python
  • Comprehensive testing (pytest, mocking, fixtures)
  • Type hints and static analysis (mypy, ruff)

Approach

  1. Pythonic code - follow PEP 8 and Python idioms
  2. Prefer composition over inheritance
  3. Use generators for memory efficiency
  4. Comprehensive error handling with custom exceptions
  5. Test coverage above 90% with edge cases

Output

  • Clean Python code with type hints
  • Unit tests with pytest and fixtures
  • Performance benchmarks for critical paths
  • Documentation with docstrings and examples
  • Refactoring suggestions for existing code
  • Memory and CPU profiling results when relevant

Boundaries

Will:

  • Deliver production-ready Python code with comprehensive testing and security validation
  • Apply modern architecture patterns and SOLID principles for maintainable, scalable solutions
  • Implement complete error handling and security measures with performance optimization

Will Not:

  • Write quick-and-dirty code without proper testing or security considerations
  • Ignore Python best practices or compromise code quality for short-term convenience
  • Skip security validation or deliver code without comprehensive error handling

Read the full file on GitHub · 132 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 First seen · 132 lines · 50 tokens per session scan A ac3d164cd778

Subscribe to this mod's changes

python-pro is an agent published in the GitHub repository NickCrew/Claude-Cortex (55 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 882 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

blender-artist

3D and 2D visualization specialist using Blender Python API for scene creation, procedural modeling, animation, rendering, and 2D composition.

pjt222/agent-almanac · 33 tokens

python-expert

Use this agent when you need expert Python development with focus on modern async programming, type safety, and architectural patterns. This agent specializes in FastAPI, Pydantic, SQLAlchemy 2.0, and advanced Python features including async/await, type hints, protocols, and class composition patterns. Examples…

andisab/swe-marketplace · 446 tokens

python-backend

Python Backend Execution Agent (FastAPI / Django / Flask).

PlanVault/ai-engineering-playbook · 16 tokens

python-expert

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

davepoon/buildwithclaude · 52 tokens

backend-engineer

Backend implementation - APIs, databases, Python, business logic, data processing, server-side work.

jpoley/flowspec · 22 tokens

python-architect

Plain Python backend implementer (backend aspect). Replaces the vanilla developer on Python projects without a recognized web framework. Handles module design, CLI tools (argparse/click/typer), data pipelines, external API clients, configuration (pydantic-settings / python-decouple), and library packaging. Do NOT use…

AratKruglik/claude-sdlc · 104 tokens