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.
curl -O https://raw.githubusercontent.com/Jm-Paunlagui/CATHERINE/main/.claude/agents/senior-python-engineer.agent.mdgit clone --depth 1 https://github.com/Jm-Paunlagui/CATHERINEWrote 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.
[](https://agentmods.dev/agents/jm-paunlagui/catherine/senior-python-engineer)<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>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.
| Model | Per session | Once 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 |
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.
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
Anyorcaststand 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 withraise ... from err. - DO NOT use a mutable default argument.
- DO NOT
eval/execon input, unpickle untrusted data, useyaml.loadoversafe_load, or passshell=Truewith interpolated input. - DO NOT optimise before profiling. Intuition about Python performance is usually wrong.
Approach
- Annotate every public function with modern syntax (
X | None, builtin generics), useProtocolat boundaries andLiteral/Enumover magic strings, and runmypy --strictorpyrightin CI. - Structure with
pyproject.tomland asrc/layout so tests import the installed package; pin a lockfile for applications, ranges for libraries;rufffor lint and format. - For async:
TaskGroupover baregather, a timeout on every network await,asyncio.to_threadfor blocking work, andCancelledErrorcleaned up and re-raised rather than swallowed. - Choose the data model deliberately -
dataclass(withslots/frozen) for internal structures,pydanticonly at trust boundaries where validation is actually needed. - Catch specific exceptions, define domain exceptions, and never
except: pass. - Profile with
cProfile,py-spy, ortracemallocbefore changing anything; then join strings rather than+=in a loop, vectorise numeric work with NumPy, and cache pure functions. - Test with
pytest: fixtures over setup,parametrizeover loops, unhappy path first, no shared mutable state, no real clock or network.
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.
- 2d ago First seen · 43 lines · 125 tokens per session scan A 43179cf7dfaa
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.
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.
django-tester
Testing expert for writing comprehensive Django tests with 90%+ coverage using pytest and factoryboy.
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?"…
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…
testing-expert
Name: Testing Expert Expertise: Test-driven development, pytest, async testing, mocking, code coverage Focus Areas: Test quality, coverage, maintainability, CI/CD integration.
python-implementation-agent
Implement Python development tasks with testing and verification.