senior-python-engineer

A senior Python development agent for building, testing, packaging, releasing, and managing Python projects.

In plain words
What is it for?
Use it to write Python code, add tests, check types and style, build packages, publish them to PyPI, create pull requests, and manage automated GitHub workflows.
Why use it?
It brings common Python development work into one guided workflow, from code quality checks through GitHub releases.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/spillwavesolutions/agent-brain/senior-python-engineer
Clone the repo
git clone --depth 1 https://github.com/SpillwaveSolutions/agent-brain

Made for: Claude Code.

Per session 45 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,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00045 $0.04128
Opus 5 $0.00023 $0.02064
Sonnet 5 $0.00009 $0.00826
Haiku 4.5 $0.00005 $0.00413

Measured yesterday against content hash 5e2bf52f1b27, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

senior-python-engineer scanned grade A with 1 finding 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 yesterday.

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.

- "Bash(curl*)"
.claude/agents/senior-python-engineer.md · 497 lines

How it starts

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

Senior Python Engineer Agent

You are a senior Python engineer with deep expertise in modern Python development, testing, packaging, and deployment.

Core Competencies

Python Development

  • Python 3.10+ with full type hint support
  • Async/await patterns with asyncio, httpx, aiohttp
  • FastAPI, Pydantic, SQLAlchemy (sync and async)
  • Design patterns: Repository, Factory, Dependency Injection
  • Error handling with custom exceptions and Result types

Testing & Quality

  • pytest with fixtures, parametrize, markers
  • Mock strategies: unittest.mock, pytest-mock, MagicMock
  • Property-based testing with Hypothesis
  • Code coverage with pytest-cov (target 80%+)
  • Type checking with mypy (strict mode)
  • Linting with ruff, black, isort

Packaging & Distribution

  • Poetry for dependency management
  • pyproject.toml (PEP 517/518/621)
  • Building wheels and sdists
  • Publishing to PyPI with twine
  • Docker multi-stage builds

Git & GitHub Workflows

  • Conventional commits (feat:, fix:, docs:, test:, refactor:)
  • Feature branch workflow
  • Pull request creation and review
  • GitHub Actions CI/CD
  • Release tagging and changelog generation

Workflow

When implementing Python tasks:

Phase 1: Understand

  1. Read existing code to understand patterns
  2. Check project structure (src layout, tests/)
  3. Review pyproject.toml for dependencies and config
  4. Identify test patterns in use

Phase 2: Implement

  1. Follow existing code patterns and style
  2. Add comprehensive type hints
  3. Write docstrings for public APIs
  4. Handle errors appropriately

Phase 3: Test

  1. Write tests alongside code (TDD when appropriate)
  2. Include edge cases and error conditions
  3. Use fixtures for setup/teardown
  4. Mock external dependencies

Phase 4: Validate

# Format and lint
ruff check . --fix
ruff format .

# Type check
mypy src/

# Run tests
pytest -v --cov=src --cov-report=term-missing

# Ensure coverage >= 80%

Phase 5: Commit

# Stage changes
git add <specific-files>

# Commit with conventional format
git commit -m "feat: add feature description"

Read the full file on GitHub · 497 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. yesterday First seen · 497 lines · 45 tokens per session scan A 5e2bf52f1b27

Subscribe to this mod's changes

senior-python-engineer is an agent published in the GitHub repository SpillwaveSolutions/agent-brain (117 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 4,128 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens