engineer

engineer is an agent for Claude Code from whenpoem/aiscientist. It costs 20 tokens per session (433 once invoked), scanned A, original, MIT.

An implementation agent for running machine-learning experiments and recording their results. It works with common Python tools such as scikit-learn, PyTorch, and NumPy and preserves details about each run.

In plain words
What is it for?
Use it to write and run a defined ML experiment, save its configuration and numeric results, record failures, and preserve important metrics for later reporting.
Why use it?
It adds checks against common experiment mistakes, such as fitting data-preparation steps on test data or stopping based on test results. It also records enough information to reproduce and verify findings.

Agent for Claude Code

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

Good fit Use it to write and run a defined ML experiment, save its configuration and numeric results, record failures, and preserve important metrics for later reporting.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/whenpoem/aiscientist/engineer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/whenpoem/aiscientist

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 engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/whenpoem/aiscientist/engineer"><img src="https://agentmods.dev/badge/agents/whenpoem/aiscientist/engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 433 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.00020 $0.00433
Opus 5.5 $0.00008 $0.00173
Sonnet 5.5 $0.00004 $0.00087
Haiku 4.5 $0.00002 $0.00043

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

Security

Grade A, and why

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 1mo 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/engineer.md · 27 lines

What it actually says

You are an ML engineer executing a specific experiment.

Before writing code:

  • Call mcp__memory__match_signatures with a description of what you're about to do. If a similar past failure exists, read it and change approach.

While implementing:

  • Use scikit-learn / PyTorch / NumPy idiomatically.
  • Never fit a scaler on concatenated train+test.
  • Never early-stop on the test split.
  • Never hardcode paths into .research-agent/heldout/, .research-agent/held_out/, or any registered held-out dataset path.

After running:

  • Call mcp__verify__record_provenance with the numeric results and explicitly pass experiment inputs and configs. v5.1 automatically adds code, Git, dependency-lock, command, seed, runtime, and safe environment fingerprints.
  • If a metric is central to the claim you plan to report, also call mcp__verify__pin_metric and retain its run_manifest id/hash.
  • If the run failed, call mcp__memory__record_failure with trigger/symptom/cause/resolution.
  • Before a major branch pivot or report handoff, consider mcp__memory__snapshot so the current research state is frozen.
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. 1mo ago First seen · 27 lines · 20 tokens per session scan A faaf54c7bd91

Subscribe to this mod's changes

engineer is an agent published in the GitHub repository whenpoem/aiscientist (10 stars, last pushed 7d ago), licensed MIT. It adds 20 tokens to every session and 433 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

mle-reviewer

Production machine-learning engineering reviewer for data contracts, feature pipelines, training reproducibility, offline/online evaluation, model serving, monitoring, and rollback. Use when ML, MLOps, model training, inference, feature store, or evaluation code changes.

affaan-m/ECC · 55 tokens

model-builder

Genome-scale metabolic model builder. Loads standard models from the BIGG database or constructs custom models from reaction lists using COBRApy. Sets medium constraints, validates mass/charge balance, and prepares the model for FBA simulation. Use when the user specifies an organism, BIGG model ID, or a custom set of…

aiming-lab/AutoResearchClaw · 69 tokens

bioinformatician

Reference-build discipline (GRCh38/GENCODE/Ensembl, MANE), batch-as-covariate DE (DESeq2/edgeR), index hopping/UDI, GATK/BQSR/PLINK GWAS multiplicity, nf-core reproducibility, and scRNA-seq ambient-RNA/doublet artifacts.

K-Dense-AI/scientific-agents · 74 tokens

biological-oceanographer

Reasons from light-nutrient-grazing coupling, the microbial loop, and size-structured export through CTD/MOCNESS sampling, 14C and O2/Ar production with 234Th export flux, imaging and flow cytometry enumeration, and SILVA/PR2 metabarcoding while treating spatial patchiness, diel-migration tow aliasing, CDOM-biased…

K-Dense-AI/scientific-agents · 101 tokens

cheminformatician

Reasons from Standard InChI identity and RDKit sanitization through ChEMBL pChEMBL harmonization, Morgan/ECFP fingerprints, scaffold splits and applicability domains, while treating tautomer collapse, KNIME-vs-Python canonicalization drift, and random-split QSAR leakage as first-class failure modes.

K-Dense-AI/scientific-agents · 70 tokens

Data Scientist

Develops ML models, engineers features, works with Snowpark notebooks and Cortex ML functions, and conducts statistical analysis. Invoke with $ds.

Snowflake-Labs/cocoplus · 31 tokens