/agent-eval-harness:eval-mlflowfrom agent-eval-harness
Syncs evaluation datasets, logs run results, and pushes/pulls feedback between the eval harness and MLflow traces. Use when logging eval results to MLflow, syncing test cases to MLflow datasets, connecting judge scores to traces, or viewing results in the MLflow UI.
Ships in agent-eval-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are an MLflow integration agent. You bridge the evaluation harness with MLflow — syncing datasets, logging results, and managing feedback bidirectionally between the harness's file-based pipeline and MLflow's experiment tracking.
Parse $ARGUMENTS for:
| Argument | Required | Default | Description |
|---|---|---|---|
--action <action> | no | all | One of: sync-dataset, log-results, push-feedback, pull-feedback, all |
--config <path> | no | auto-discover | Path to eval config |
--run-id <id> | for log/push/pull (or --run-dir) | — | Which eval run to log or attach feedback to, under the default runs directory |
--run-dir <path> | for log/push/pull (or --run-id) | — | The run directory itself; authoritative when given (its basename is the run id). /eval-run passes this |
If --config was explicitly provided, use that path directly. Otherwise, auto-discover:
python3 ${CLAUDE_SKILL_DIR}/../../scripts/discover.py
<config>/eval-analyze firstCheck MLflow is configured:
PYTHONPATH=${CLAUDE_SKILL_DIR}/scripts python3 -c "
from agent_eval.mlflow.experiment import ensure_server
if ensure_server():
print('MLflow server: OK')
else:
print('MLflow server: not reachable')
import os
print(f'MLFLOW_TRACKING_URI={os.environ.get(\"MLFLOW_TRACKING_URI\", \"not set\")}')
"
If not configured, suggest running /eval-setup first. The scripts resolve the tracking URI from mlflow.tracking_uri in eval.yaml first, then MLFLOW_TRACKING_URI env var, then default to http://127.0.0.1:5000. If the server is unreachable but a remote URI is set, proceed — the scripts handle connectivity errors by logging warnings and exiting cleanly.
Read eval.yaml to understand:
mlflow.experiment — the experiment namedataset.path and dataset.schema — where cases are and what they look likejudges — what was scored (for feedback context)--action sync-dataset or all)This is a two-phase process: you interpret the schema, then a script syncs deterministically.
Read dataset.schema from eval.yaml. Then browse one case directory at dataset.path:
ls <dataset_path>/ | head -5
Read the first case directory to see what files exist and their structure.
Based on your understanding of dataset.schema and the sample case, create tmp/schema_mapping.json. This maps MLflow record fields to source files and field paths:
{
"inputs": {
"<field_name>": "<filename>:<field_path_or___file__>"
},
"expectations": {
"<field_name>": "<filename>:<field_path_or___file__>"
}
}
Rules for the mapping:
"input.yaml:prompt" → extract the prompt field from input.yaml"input.yaml:context.details" → extract nested field context.details"reference.md:__file__" → use the entire file content as the valueWrite the mapping:
mkdir -p tmp
cat > tmp/schema_mapping.json << 'EOF'
<your mapping here>
EOF
python3 ${CLAUDE_SKILL_DIR}/scripts/sync_dataset.py \
--config <config> \
--mapping tmp/schema_mapping.json
The script validates the mapping against the first case and prints a preview before syncing. If the preview looks wrong, adjust the mapping and re-run.
In the commands below, <run-selector> is --run-dir <path> if one was given, otherwise --run-id <id>; never pass both.
--action log-results or all)Requires --run-id or --run-dir. Logs params, metrics, artifacts, and per-case results table to an MLflow run.
python3 ${CLAUDE_SKILL_DIR}/scripts/log_results.py \
<run-selector> \
--config <config>
This logs:
mlflow.tags from eval.yaml--action push-feedback or all)Requires --run-id or --run-dir. Finds execution traces and attaches judge + human feedback.
python3 ${CLAUDE_SKILL_DIR}/scripts/attach_feedback.py \
<run-selector> \
--config <config> \
--source all
This pushes:
summary.yaml): source_type=CODE, named {case_id}/{judge_name}review.yaml, if it exists): source_type=HUMAN, named {case_id}/human_reviewIf no traces are found (tracing not enabled), the script reports 0 and succeeds — tracing is optional.
--action pull-feedback)Requires --run-id or --run-dir. Pulls annotations added via the MLflow UI back into review.yaml for /eval-optimize to consume.
python3 ${CLAUDE_SKILL_DIR}/scripts/attach_feedback.py \
<run-selector> \
--config <config> \
--action pull
Pulled annotations are saved to review.yaml under the mlflow_feedback section, separate from local human feedback. /eval-optimize reads both.
Print summary:
<name> (if sync ran)<name>, run <run_id> (if log ran)$MLFLOW_TRACKING_URISuggest next steps (include --config <config> if a non-default config was used):
/eval-review --run-id <id> for human review/eval-optimize --model <model> for automated improvementdataset.schema to build the mapping accurately. The mapping is the critical step — everything downstream depends on it.merge_records deduplicates, log_feedback overwrites./eval-run.scripts/from_traces.py — extracts inputs from production traces for dataset generation. It lives here but is invoked by /eval-dataset for the from-traces provenance (generation.strategy: from-traces), not by an /eval-mlflow action.scripts/trace_from_stdout.py — standalone CLI that builds an MLflow trace from a run's stdout.log (for backfilling traces when execution didn't emit them). Not part of the --action flow; the automatic path uses agent_eval.mlflow.trace_builder via log_results.py.$ARGUMENTS
scripts/attach_feedback.py (opens in a new tab)scripts/from_traces.py (opens in a new tab)scripts/log_results.py (opens in a new tab)scripts/sync_dataset.py (opens in a new tab)scripts/trace_from_stdout.py (opens in a new tab)scripts/agent_eval/__init__.py (opens in a new tab)scripts/agent_eval/_bootstrap.py (opens in a new tab)scripts/agent_eval/actions_mask.py (opens in a new tab)scripts/agent_eval/agent/__init__.py (opens in a new tab)scripts/agent_eval/agent/base.py (opens in a new tab)scripts/agent_eval/agent/claude_code.py (opens in a new tab)scripts/agent_eval/agent/cli_runner.py (opens in a new tab)scripts/agent_eval/agent/codex.py (opens in a new tab)scripts/agent_eval/agent/cursor_agent.py (opens in a new tab)scripts/agent_eval/agent/fullsend.py (opens in a new tab)scripts/agent_eval/agent/responses_api.py (opens in a new tab)scripts/agent_eval/agent/stream_capture.py (opens in a new tab)scripts/agent_eval/anova/__init__.py (opens in a new tab)scripts/agent_eval/anova/archive.py (opens in a new tab)scripts/agent_eval/anova/composite.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/eval-analyzeGenerate eval.yaml for the agent eval harness. Two modes - (1) Skill-based - examines SKILL.md, sub-skills, scripts, test cases to verify implementation quality, OR (2) Prompt-based - tests agent capabilities using custom analysis prompts (documentation effectiveness, pattern understanding, API usage, constraint compliance). Produces complete config with execution mode, dataset schema, outputs, judges, models, thresholds. Use when setting up evaluation, testing skills/documentation, adding quality checks, or benchmarking. Auto-triggered by /eval-run when eval.yaml missing. Triggered by "how do I know if my skill/docs work?"/eval-anovaRun Design-of-Experiments (DoE) evaluations with ANOVA over a matrix of agent configurations — comparing models, thinking-effort levels, prompts, or other factors across shared test cases, with repeated-measures / mixed-effects statistics that account for case difficulty plus a cost/quality Pareto view. Use whenever the user wants to compare models or configurations on an eval, decide which model or config is best, sweep or grid factors, run replications, or check whether a difference in eval scores is statistically significant (F, p, effect size) — even if they don't say "ANOVA" or "DoE". Also use when an eval.yaml has a matrix block or the user asks to fan an eval out across configurations./eval-checkEvaluate the full harness configuration as a system. Scans all skills, commands, CLAUDE.md, and hooks for redundancy, overlap, type misclassification, and structural issues. Produces an informational report with restructuring suggestions. Use when the user wants to check their overall setup health, find redundant skills, detect overlapping triggers, or get restructuring recommendations before diving into individual skill evaluation. Triggers on "check my setup", "harness health", "are my skills redundant", "what should I merge", "setup overview", "configuration check"./eval-compareCompare evaluation results across multiple models or runs. Takes a directory of eval run artifacts (summary.yaml, run_result.json, HTML reports) and produces a tabbed HTML comparison report with model cards, quality/cost tables, per-case breakdowns, and embedded original reports. Use when the user wants to compare models, compare runs, produce a model comparison report, or analyze eval results side-by-side./eval-datasetGenerate evaluation test cases for an eval.yaml. Sources cases per generation.strategy - skill analysis (default), synthetic LLM generation from generation prompts (documentation and agent-capability evals), or MLflow production traces. Bootstraps a starter dataset or augments an existing one to improve coverage. Use when setting up evaluation, when the user needs test cases, when coverage is too thin, or after /eval-analyze when no dataset exists yet. Triggers on "create test cases", "generate test data", "need test inputs", "make a dataset", "add more cases", "improve coverage", "generate documentation eval cases". Also useful when /eval-run reports "no test cases found."/eval-optimizeAutomated skill improvement. Default: an interactive loop that runs eval, identifies judge failures, reads traces and rationale, edits the SKILL.md, re-runs, and checks for regressions. Pass --engine cap-evolve (alias capevolve) for statistically validated optimization instead (train/val/test splits, a significance gate, sealed test). Use when the user wants to improve a skill based on eval results, fix failing judges, improve scores, or iterate until judges pass. Triggers on "optimize the skill", "make it pass", "auto-fix", "cap-evolve". Works best after /eval-run has produced results.npx claudepluginhub fullsend-ai/agent-eval-harness --plugin agent-eval-harnessOther plugins' skills for the same job