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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00050 $0.00410
Sonnet 5.5 $0.00025 $0.00205
Haiku 4.5 $0.00013 $0.00103

Measured 2mo ago against content hash 43179cf7dfaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 2mo 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. 2mo 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.0005 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-09-05.

Related

senior-python-engineer compared with agents from other repositories

senior-python-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
senior-python-engineerJm-Paunlagui/CATHERINEAgent22d agoApache-2.0A125Claude Code
Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-PentestAgent5033d agoMITA45Claude Code, OpenCode
python-proechoVic/blade-codeAgent18124d agoMITA51Claude Code
temporal-test-buildercanonical/copilot-collectionsAgent323d agoApache-2.0A56Claude Code
package-revieweroborchers/fractional-ctoAgent3612d agoMITA287Claude Code
script-operatorMadGraphTeam/MadAgentsAgent153mo agoMITA24Claude Code
python-reviewerFmarzochi/EGCAgent68yesterdayApache-2.0A43Claude Code, Kiro