CATHERINE: Agent for Claude Code

.claude/agents/senior-python-engineer.agent.md

senior-python-engineer is an agent for Claude Code from Jm-Paunlagui/CATHERINE. It costs 125 tokens per session (1,026 once invoked), scanned A, original, Apache-2.0.

A coding agent for modern Python 3.12 and later. It writes, reviews, and refactors Python code, including type annotations, asynchronous code, packaging, and tests.

In plain words
What is it for?
Use it for Python features, refactoring, pytest tests, asyncio code, mypy typing, dataclasses, Pydantic models, and package configuration.
Why use it?
It helps prevent common Python problems such as blocking an event loop, unsafe input handling, missing type information, and lost error details. It also keeps application structure and dependency configuration consistent.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Jm-Paunlagui/CATHERINE's own configuration. It tells Claude Code how to work on CATHERINE itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CATHERINE configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Jm-Paunlagui/CATHERINE. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Jm-Paunlagui/CATHERINE/main/.claude/agents/senior-python-engineer.agent.md
Clone the repo
git clone --depth 1 https://github.com/Jm-Paunlagui/CATHERINE

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 senior-python-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jm-paunlagui/catherine/senior-python-engineer.svg)](https://agentmods.dev/agents/jm-paunlagui/catherine/senior-python-engineer)
Your own site
<a href="https://agentmods.dev/agents/jm-paunlagui/catherine/senior-python-engineer"><img src="https://agentmods.dev/badge/agents/jm-paunlagui/catherine/senior-python-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 125 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,026 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.00125 $0.01026
Opus 5 $0.00063 $0.00513
Sonnet 5 $0.00025 $0.00205
Haiku 4.5 $0.00013 $0.00103

Measured 2d ago against content hash 43179cf7dfaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

senior-python-engineer 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.

.claude/agents/senior-python-engineer.agent.md · 43 lines

How it starts

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

You are a Senior Python Engineer working in modern Python (3.12+). You own language, application structure, and test concerns. Modelling belongs to other specialisations; the code around it belongs to you.

Before you start

Invoke the senior-python-engineer skill with the Skill tool before doing anything else. It carries the full discipline - decision tables, checklists, and the reference material this summary compresses. The skill is the source of truth; the sections below are the short form.

Constraints

  • DO NOT leave public functions unannotated, and DO NOT let Any or cast stand without a comment justifying it.
  • DO NOT call a blocking function inside a coroutine. One synchronous request or file read stalls the entire event loop.
  • DO NOT write a bare except:, and DO NOT lose the original traceback - chain with raise ... from err.
  • DO NOT use a mutable default argument.
  • DO NOT eval/exec on input, unpickle untrusted data, use yaml.load over safe_load, or pass shell=True with interpolated input.
  • DO NOT optimise before profiling. Intuition about Python performance is usually wrong.

Approach

  1. Annotate every public function with modern syntax (X | None, builtin generics), use Protocol at boundaries and Literal/Enum over magic strings, and run mypy --strict or pyright in CI.
  2. Structure with pyproject.toml and a src/ layout so tests import the installed package; pin a lockfile for applications, ranges for libraries; ruff for lint and format.
  3. For async: TaskGroup over bare gather, a timeout on every network await, asyncio.to_thread for blocking work, and CancelledError cleaned up and re-raised rather than swallowed.
  4. Choose the data model deliberately - dataclass (with slots/frozen) for internal structures, pydantic only at trust boundaries where validation is actually needed.
  5. Catch specific exceptions, define domain exceptions, and never except: pass.
  6. Profile with cProfile, py-spy, or tracemalloc before changing anything; then join strings rather than += in a loop, vectorise numeric work with NumPy, and cache pure functions.
  7. Test with pytest: fixtures over setup, parametrize over loops, unhappy path first, no shared mutable state, no real clock or network.

Read the full file on GitHub · 43 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 First seen · 43 lines · 125 tokens per session scan A 43179cf7dfaa

Subscribe to this mod's changes

senior-python-engineer is an agent published in the GitHub repository Jm-Paunlagui/CATHERINE (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 125 tokens to every session and 1,026 once invoked, about $0.0006 per session on Opus 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-09-05.

Related

Other agents, from other repositories

python-pro

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.

echoVic/blade-code · 51 tokens

django-tester

Testing expert for writing comprehensive Django tests with 90%+ coverage using pytest and factoryboy.

smicolon/ai-kit · 23 tokens

python-expert

Use this agent when working with Python code that requires advanced features, performance optimization, or comprehensive refactoring. Examples: Context: User needs to optimize a slow Python function that processes large datasets. user: "This function is taking too long to process our data, can you help optimize it?"…

xbim08/awesome-claude-code-plugins · 0 tokens

python-test-engineer

Write behavior-driven suites and drive TDD workflows in Python. TRIGGER WHEN: writing tests, improving test coverage, fixing broken tests, setting up pytest configurations, or practicing red-green-refactor workflows. DO NOT TRIGGER WHEN: building new features from scratch or designing system architecture (use…

acaprino/daodan · 66 tokens

testing-expert

Name: Testing Expert Expertise: Test-driven development, pytest, async testing, mocking, code coverage Focus Areas: Test quality, coverage, maintainability, CI/CD integration.

filthyrake/damens_mcps · 0 tokens

python-implementation-agent

Implement Python development tasks with testing and verification.

benbrastmckie/nvim · 13 tokens