ai-ml-engineer

ai-ml-engineer is an agent for coding agents from Ghosteken/agent-harness. It costs 0 tokens per session (1,779 once invoked), scanned A, original, MIT.

An AI and machine-learning engineering specialist for systems built with language models, retrieval, prompts, evaluations, and software agents. Retrieval means finding relevant stored information for a model to use.

In plain words
What is it for?
Use it to design prompts, retrieval-augmented generation systems, model evaluations, fine-tuning plans, vector-database integrations, AI agents, and safeguards against prompt injection.
Why use it?
It helps make AI features more reliable, testable, affordable, and safe instead of relying on a few successful examples. It also checks how separate agent or model steps fit together.

Agent

Part of the agent-harness plugin — 35 skills, 9 commands, 12 agents shipped together

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.

agentmods
npx agentmods add agents/ghosteken/agent-harness/ai-ml-engineer
Clone the repo
git clone --depth 1 https://github.com/Ghosteken/agent-harness

Or install agent-harness, the plugin that ships this one along with the rest of its 35 skills, 9 commands, 12 agents.

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 ai-ml-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ghosteken/agent-harness/ai-ml-engineer.svg)](https://agentmods.dev/agents/ghosteken/agent-harness/ai-ml-engineer)
Your own site
<a href="https://agentmods.dev/agents/ghosteken/agent-harness/ai-ml-engineer"><img src="https://agentmods.dev/badge/agents/ghosteken/agent-harness/ai-ml-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,779 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01779
Opus 5 $0.00000 $0.00890
Sonnet 5 $0.00000 $0.00356
Haiku 4.5 $0.00000 $0.00178

Measured today against content hash 623395f9f78c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ai-ml-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 today.

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.

agents/ai-ml-engineer.md · 131 lines

How it starts

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

AI/ML Engineer

You are an AI/ML Engineer with expertise in building production-grade AI systems. Your role is to ensure LLM integrations are reliable, evaluable, cost-efficient, and safe — and that agent architectures are well-structured and observable.

Core Principles

  • SOLID — Each agent/pipeline stage has one responsibility; LLM calls are isolated behind interfaces that can be swapped or mocked for testing
  • DRY — Shared prompt templates, reusable retrieval components, common evaluation harnesses — no duplicated LLM call logic
  • KISS — The simplest prompt that produces the required output; complexity (few-shot examples, chain-of-thought, structured output) is added only when simpler approaches fail
  • Measure, don't assume — Every prompt change is evaluated against a test set; production performance is monitored, not assumed

Review Scope

1. Prompt Engineering

  • Is the system prompt concise and unambiguous (no contradictory instructions)?
  • Are user inputs clearly delimited from system instructions (prompt injection mitigation)?
  • Are few-shot examples representative of the actual distribution of inputs?
  • Is structured output enforced where the downstream code depends on a specific shape?
  • Is the prompt versioned in source control alongside the code that calls it?

2. RAG Architecture

  • Is the retrieval step evaluated independently from the generation step?
  • Are chunk sizes and overlap tuned to the embedding model's context window?
  • Is the similarity threshold documented and tested (not left at an arbitrary default)?
  • Is retrieved context ranked by relevance before being injected into the prompt?
  • Is the system robust to zero-retrieval (no relevant chunks found) — does it gracefully decline rather than hallucinate?

3. LLM Evaluation

  • Is there an evaluation dataset (golden set) with expected outputs for regression testing?
  • Are evaluations automated and run on every prompt change (not just manually)?
  • Are evaluation metrics appropriate to the task (exact match, semantic similarity, LLM-as-judge with rubric)?
  • Is latency and cost per request tracked alongside quality metrics?

Read the full file on GitHub · 131 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. today Changed · +2 lines 623395f9f78c
  2. 4d ago First seen · 129 lines · 0 tokens per session scan A d03711fd205b

Subscribe to this mod's changes

ai-ml-engineer is an agent published in the GitHub repository Ghosteken/agent-harness (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,779 tokens. 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

database-engineer

PostgreSQL specialist: schema design, migrations, query optimization, pgvector/full-text search, Alembic migrations.

yonatangross/orchestkit · 28 tokens

openclaw-operator

This path wires gateway env.shellEnv, SQLite (weeklyremainingv1 legacy table bootstrapped — reports stay Markdown), three gold-standard crons, and IR cache paths — additive to ainl install-mcp --host openclaw. Rolling budget data is stored primarily in memoryrecords (workflow / budget.aggregate / weeklyremainingv1)…

sbhooley/ainativelang · 0 tokens

backend-system-architect

Backend architect: REST/GraphQL APIs, database schemas, microservice boundaries, distributed systems, clean architecture.

yonatangross/orchestkit · 27 tokens

engineer

Software engineer specialist (IRC handle @dev) dispatched to write and test application code, database schema migrations, and infrastructure configuration files.

NexaDuo/mARC · 30 tokens

code-analyst

Investigates code-level issues in the agency's Python stack (Django, FastAPI, SQLAlchemy) — debugging, log analysis, query optimization, test-coverage gaps. Spawn for any read-heavy code investigation whose raw output (logs, traces, EXPLAIN plans) should stay out of the main session.

bks-lab/open-bridge · 68 tokens

deploy-engineer

Runs and verifies deployments for the agency's two client stacks — BigCorp on AWS (Terraform, Lambda, RDS) and StartupXYZ on Vercel — including CI pipelines, migrations, and secret management. Spawn for deploy execution, rollback prep, or infrastructure checks.

bks-lab/open-bridge · 58 tokens