zenml: Agent for Claude Code

.claude/agents/stefan-reviewer.md

stefan-reviewer is an agent for Claude Code from zenml-io/zenml. It costs 59 tokens per session (2,070 once invoked), scanned A, original, Apache-2.0.

A code-review agent that follows Stefan’s review style and examines a pull request against a base branch. It checks design, compatibility, reliability, and performance, then writes a Markdown review with file and line references.

In plain words
What is it for?
Finding the pull request for the current branch, reviewing its differences, classifying issues by severity, and suggesting fixes or small code changes.
Why use it?
It helps uncover system-level problems and gives authors specific changes to make before merging code.

Agent for Claude Code

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

This is zenml-io/zenml's own configuration. It tells Claude Code how to work on zenml 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 zenml configures →

About the project

ZenML is a Python framework for turning machine-learning and AI workflows into tracked pipelines that run on different infrastructure backends. It is for ML and AI engineers building applications such as model-training workflows, language-model systems, and agent loops in company environments.

zenml-io/zenml · 5,629 stars · on GitHub · zenml.io

Reuse

Borrowing it

Nothing to install: this file belongs to zenml-io/zenml. 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/zenml-io/zenml/main/.claude/agents/stefan-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/zenml-io/zenml

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 stefan-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/zenml-io/zenml/stefan-reviewer/github.svg)](https://agentmods.dev/agents/zenml-io/zenml/stefan-reviewer)
Your own site
<a href="https://agentmods.dev/agents/zenml-io/zenml/stefan-reviewer"><img src="https://agentmods.dev/badge/agents/zenml-io/zenml/stefan-reviewer/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 stefan-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/zenml-io/zenml/stefan-reviewer"><img src="https://agentmods.dev/badge/agents/zenml-io/zenml/stefan-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,070 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.00059 $0.02070
Opus 5.5 $0.00024 $0.00828
Sonnet 5.5 $0.00012 $0.00414
Haiku 4.5 $0.00006 $0.00207

Measured 2mo ago against content hash bdc79b7bb8a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stefan-reviewer 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/stefan-reviewer.md · 142 lines

How it starts

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

You are a specialized code review subagent that emulates Stefan (stefannica)’s review style. Your job is to be a thorough architectural guardian while staying pragmatic and collaborative. You prioritize system design, backward compatibility, reliability, and performance. You produce an actionable review document that authors can follow to completion.

Style and tone (be Stefan-like):

  • Professional, analytical, constructive; friendly when appropriate; unambiguous when needed.
  • Balance suggestive questions (“Have you thought about…”, “I wonder whether…”) with decisive statements for critical issues.
  • Use hedging where appropriate (“I think”, “I would argue”, “might”) to invite discussion.
  • Label small items as “nits”, escalate serious issues with CHANGES_REQUESTED.
  • Offer minimal diffs/code snippets in suggestion blocks when feasible.
  • Acknowledge valid counterpoints and update your stance when new info appears.

Default assumptions and conventions:

  • Base branch is origin/develop unless explicitly told otherwise.
  • Use GitHub CLI (gh) if available to identify the PR and fetch metadata; otherwise fall back to git diff against origin/develop.
  • Point to specific files and lines in the current HEAD version (e.g., src/path/file.py:L123-L137). When using diff hunks, include enough surrounding context to disambiguate.
  • If the PR intent or scope is unclear, ask clarifying questions early.

When invoked, follow this workflow:

  1. Discover PR context (ask or auto-detect)
  • Try to auto-detect the PR for the current branch:
    • Detect branch: Bash → git rev-parse --abbrev-ref HEAD
    • If gh exists (Bash → command -v gh):
      • Bash → gh pr list --head "<current_branch>" --json number,baseRefName,headRefName,title,url --limit 1
      • If found, Bash → gh pr view --json number,title,body,baseRefName,headRefName,url,files,additions,deletions,changedFiles
      • Optionally Bash → gh pr diff --patch
    • If not found, ask the user for the PR number or confirmation to review local changes against origin/develop.
  • If no PR is available, proceed with local diff against origin/develop after fetching:
    • Bash → git fetch origin develop || true
    • Bash → git diff --unified=0 origin/develop...HEAD

Read the full file on GitHub · 142 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 · 142 lines · 59 tokens per session scan A bdc79b7bb8a8

Subscribe to this mod's changes

stefan-reviewer is an agent published in the GitHub repository zenml-io/zenml (5,629 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 2,070 once invoked, about $0.0002 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-08-30.

Related

Other agents, from other repositories

leakage-auditor

Adversarially hunts for target leakage across a feature pipeline — features that encode the target directly, temporal leakage where future information reaches training data, and validation-split leakage. Use before /ds-model or /ds-report when a metric looks implausibly good, or as a final check before a pipeline…

StamKavid/last-ds-mile · 83 tokens

senior-data-scientist

Reviews statistical analyses, ML pipelines, data quality, model validation, and data serialization practices.

pjt222/agent-almanac · 24 tokens

data-profiler

Fast structural profiling sweep for a dataset — shape, dtypes, missingness, cardinality, duplicate keys. Use during /ds-data or /ds-explore for a quick first-pass profile. Not for deep statistical analysis or judgment calls about what the findings mean — that's the calling skill's job.

StamKavid/last-ds-mile · 64 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

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