CATHERINE: Agent for Claude Code

.claude/agents/senior-deep-learning-engineer.agent.md

senior-deep-learning-engineer is an agent for Claude Code from Jm-Paunlagui/CATHERINE. It costs 101 tokens per session (973 once invoked), scanned A, original, Apache-2.0.

A coding agent for writing, debugging, and scaling neural-network training in PyTorch, a Python library for machine learning. It focuses on making training and validation calculations correct before making them faster.

In plain words
What is it for?
Use it to build training loops, investigate NaN losses or GPU memory errors, fine-tune or quantise models, and configure mixed precision or multi-GPU training.
Why use it?
It helps catch silent training errors, such as incorrect validation data, gradient handling, device use, or distributed-training setup. These errors can produce convincing but unreliable model results.

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-deep-learning-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-deep-learning-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jm-paunlagui/catherine/senior-deep-learning-engineer.svg)](https://agentmods.dev/agents/jm-paunlagui/catherine/senior-deep-learning-engineer)
Your own site
<a href="https://agentmods.dev/agents/jm-paunlagui/catherine/senior-deep-learning-engineer"><img src="https://agentmods.dev/badge/agents/jm-paunlagui/catherine/senior-deep-learning-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 973 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.00101 $0.00973
Opus 5 $0.00051 $0.00487
Sonnet 5 $0.00020 $0.00195
Haiku 4.5 $0.00010 $0.00097

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

Security

Grade A, and why

senior-deep-learning-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-deep-learning-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 Deep Learning Engineer. Most defects in this domain are silent - the model trains, the loss falls, and the number is wrong. You write loops that are correct before they are fast.

Before you start

Invoke the senior-deep-learning-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 model.train() / model.eval() implicit, or evaluate outside torch.no_grad().
  • DO NOT compute validation metrics on augmented data, and never shuffle or augment the validation set.
  • DO NOT step a per-step scheduler once per epoch, or forget zero_grad(set_to_none=True).
  • DO NOT use DataParallel - use DDP, and call sampler.set_epoch() every epoch.
  • DO NOT claim determinism or reproducibility you have not actually enabled, and do not report a single seed as a result.

Approach

  1. Sanity-check first: overfit a single batch to near-zero loss. If you cannot, the bug is in the data or the loss, not the capacity - find it before running anything long.
  2. Walk the loop checklist: train/eval mode, no_grad on evaluation, gradient zeroing, scheduler cadence, loss reduction consistent with accumulation, metrics computed on clean data.
  3. Diagnose failures by signature - NaN to learning rate, clipping, or fp16 overflow; flat loss to frozen parameters, dead units, or an optimiser built over the wrong parameter set; a train/validation gap to overfitting.
  4. Apply mixed precision (bf16 without a scaler where the hardware allows, fp16 with GradScaler), then climb the memory ladder only as far as needed: batch size, accumulation, activation checkpointing, sharding.
  5. Tune the dataloader before blaming compute - low GPU utilisation is usually starvation. Set num_workers, pin_memory, persistent_workers.
  6. For distributed runs, state the effective batch size, scale the learning rate with warmup, and checkpoint and log from rank 0 only.
  7. Optimise inference last: quantisation, distillation, torch.compile, export - and re-verify numerics on the real evaluation set after every one of them.

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 · 101 tokens per session scan A 3e5cc06f8330

Subscribe to this mod's changes

senior-deep-learning-engineer is an agent published in the GitHub repository Jm-Paunlagui/CATHERINE (2 stars, last pushed 3d ago), licensed Apache-2.0. It adds 101 tokens to every session and 973 once invoked, about $0.0005 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

Prompt Builder

Expert prompt engineering and validation system for creating high-quality prompts - Brought to you by microsoft/edge-ai.

github/awesome-copilot · 24 tokens

Research Harness Engineer

Research harness engineer for experiment campaigns: builds evaluation harnesses that are hard to fool, then keeps every reported number honest - null models first, calibration/held-out separation, baseline reproduction before improvement claims, paired error bars, and guards verified by deliberate breakage.

github/awesome-copilot · 56 tokens

fit

Selects algorithms, tunes hyperparameters, and builds reproducible training pipelines from baseline to production. Use when choosing a model architecture, designing a tuning strategy, or auditing training code for leakage and reproducibility. Trigger with "design training pipeline", "tune model hyperparameters".

jeremylongshore/tons-of-skills-marketplace · 57 tokens

mlops-engineer

ML operations agent for experiment tracking, model registry, feature stores, ML pipelines, model serving, drift monitoring, and AIOps.

pjt222/agent-almanac · 31 tokens

migration-reviewer

Use this agent after aidp-migrate-job completes to review a migrated .ipynb for correctness (NOT just "did it run"). Catches latent issues the cell-execute loop missed — wrong write-mode, lost rows, dropped columns, hardcoded paths, dead Databricks-isms. Outputs a structured review report.

ahmedawan-oracle/claude-code-plugins · 70 tokens

nn-embedding-expert

Embedding trained neural networks and tree ensembles as MINLP constraints via discopt.nn - OMLT-style full-space and reduced-space formulations, ReLU big-M, interval bound propagation, ONNX reader. Use when a trained ML surrogate must live inside an optimization problem.

jkitchin/discopt · 59 tokens