/agent-eval-harness:eval-setupfrom agent-eval-harness
Configures the agent-eval-harness environment: sets up MLflow tracking, verifies API keys, troubleshoots dependency issues, and detects available evaluation modes. Useful for configuring MLflow, fixing import errors, or checking environment status.
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 environment configurator. You verify the evaluation harness environment, configure optional integrations like MLflow, and suggest evaluation modes based on what's available in the repository. Non-destructive: skip steps that are already done, report status.
Most users can skip this skill entirely — dependencies auto-install via the plugin's SessionStart hook, and agent_eval is available to scripts via symlinks. This skill is useful for configuring MLflow tracking, troubleshooting dependency issues, verifying the environment, and discovering what evaluation modes are available.
The eval pipeline is: /eval-analyze → /eval-dataset → /eval-run → /eval-review or /eval-optimize. /eval-mlflow can be invoked at any point after /eval-run. MLflow tracing is handled by /eval-mlflow after a run completes. No tracing setup is needed here.
Parse $ARGUMENTS for:
| Argument | Required | Default | Description |
|---|---|---|---|
--tracking-uri <uri> | no | auto-detect | MLflow tracking URI (skips interactive setup) |
--skip-mlflow | no | false | Skip MLflow setup entirely |
--runs-dir <path> | no | eval/runs | Directory where eval runs are stored |
--harbor | no | false | Install Harbor + Kubernetes for containerized execution (~650 MB) |
--optimize | no | false | Install cap-evolve-core and fetch its pinned skills tree for /eval-optimize --engine cap-evolve |
Dependencies are managed in an isolated venv at <plugin_root>/.eval-venv/. The SessionStart hook creates this venv automatically. Scripts auto-activate it via agent_eval._bootstrap on import.
This step is a fallback for mid-session installs or troubleshooting. Re-run the hook's install script:
python3 "${CLAUDE_SKILL_DIR}/../../scripts/ensure_deps.py" "${CLAUDE_PLUGIN_DATA:-${XDG_STATE_HOME:-$HOME/.local/state}/agent-eval-data}"
To check the venv status:
VENV_PYTHON="${CLAUDE_SKILL_DIR}/../../.eval-venv/bin/python3"
test -x "$VENV_PYTHON" && echo "venv: OK" || echo "venv: MISSING"
"$VENV_PYTHON" -c "import yaml; print('pyyaml: OK')" 2>&1 || echo "pyyaml: MISSING"
To install additional packages manually into the venv:
VENV_DIR="${CLAUDE_SKILL_DIR}/../../.eval-venv"
# Use uv if available, otherwise venv pip
if command -v uv &>/dev/null; then
uv pip install --python "$VENV_DIR/bin/python3" 'mlflow[genai]>=3.5' 'anthropic[vertex]>=0.77'
else
"$VENV_DIR/bin/pip" install 'mlflow[genai]>=3.5' 'anthropic[vertex]>=0.77'
fi
If --harbor was passed, also install Harbor and the Kubernetes client
for containerized execution (/eval-run --runner harbor,
/eval-dataset --harbor):
VENV_DIR="${CLAUDE_SKILL_DIR}/../../.eval-venv"
if command -v uv &>/dev/null; then
uv pip install --python "$VENV_DIR/bin/python3" harbor 'litellm<1.107' 'kubernetes>=29.0,<37.0'
else
"$VENV_DIR/bin/pip" install harbor 'litellm<1.107' 'kubernetes>=29.0,<37.0'
fi
If --optimize was passed, also install cap-evolve for /eval-optimize --engine cap-evolve. This needs nothing from the user — no cap-evolve
checkout, no path to provide. cap-evolve-core requires Python 3.11+, so check
the venv first:
VENV_DIR="${CLAUDE_SKILL_DIR}/../../.eval-venv"
"$VENV_DIR/bin/python3" -c 'import sys; sys.exit(sys.version_info < (3, 11))' \
&& echo "venv python: OK" || echo "venv python: TOO_OLD"
On TOO_OLD, the venv was built by an older default python3. It holds only
installed packages, so rebuild it with a 3.11+ interpreter (find one with
ls /opt/homebrew/bin/python3.1* /usr/local/bin/python3.1* /usr/bin/python3.1* 2>/dev/null;
if none exists, ask the user to install one, e.g. brew install [email protected]):
VENV_DIR="${CLAUDE_SKILL_DIR}/../../.eval-venv"
rm -rf "$VENV_DIR"
<python3.11+> "${CLAUDE_SKILL_DIR}/../../scripts/ensure_deps.py" "${CLAUDE_PLUGIN_DATA:-${XDG_STATE_HOME:-$HOME/.local/state}/agent-eval-data}"
Then install the pinned engine package and fetch its matching skills tree:
VENV_DIR="${CLAUDE_SKILL_DIR}/../../.eval-venv"
if command -v uv &>/dev/null; then
uv pip install --python "$VENV_DIR/bin/python3" -e "${CLAUDE_SKILL_DIR}/../..[optimize]"
else
"$VENV_DIR/bin/pip" install -e "${CLAUDE_SKILL_DIR}/../..[optimize]"
fi
python3 ${CLAUDE_SKILL_DIR}/../eval-optimize/scripts/capevolve.py --setup
--setup verifies cap-evolve-core and fetches cap-evolve's skills tree
(phases, algorithms, templates — not on PyPI) at exactly the commit
pyproject.toml pins, into the plugin data dir. Report its skills_dir and
pinned_sha. A pin bump fetches a fresh copy, so the package and the tree
never drift; /eval-optimize --engine cap-evolve also fetches it on first use,
so this step only warms it. An {"error": "setup_required", ...} result means
the install above failed — show its reason. A user who keeps their own
cap-evolve checkout can set CAPEVOLVE_SKILLS_DIR; it is used only when it is
at the pinned commit.
The [optimize] extra also installs capevolve-telemetry, the MLflow/OTel
observer backends cap-evolve loads when the generated capevolve.yaml carries
an observers: block (it does whenever the eval config names an experiment).
MLflow itself comes from this project's [mlflow] extra, not from that one.
The [optimize] extra above also installs capevolve-dashboard — the live
dashboard /eval-optimize --engine cap-evolve launches by default (--dashboard auto) when a campaign starts. That gives a working REST API and the
pre-built static dashboard.html each run writes, but not the live React UI:
the frontend is a separate npm build this pip package doesn't bundle. A user
who wants the full live UI, not just the API/static export, needs to build it
themselves once from a cap-evolve checkout at the pinned commit
(cd dashboard/frontend && npm install && npm run build), then set
CAPEVOLVE_STATIC_DIR to that dist/ dir before launching. Mention this only
if the user asks about the dashboard UI specifically — the campaign and its
static dashboard.html work fully without it.
python3 ${CLAUDE_SKILL_DIR}/scripts/check_env.py --fix
Review the output. If all checks pass, report success and skip to Step 6.
If checks fail, work through Steps 3–5 to fix them.
If --skip-mlflow was passed, skip this step entirely.
Check if MLflow tracking is configured:
echo "MLFLOW_TRACKING_URI=${MLFLOW_TRACKING_URI:-not set}"
If --tracking-uri was provided: use it directly, skip the interactive choice.
If not set and no flag: Ask the user which MLflow setup they want:
Local server (recommended for getting started): Tell the user to run the server in a separate terminal:
mlflow server --port 5000
Then set the tracking URI in this session:
export MLFLOW_TRACKING_URI=http://127.0.0.1:5000
Note: the user should add this export to their shell profile for persistence.
Local file store (no server needed, limited UI):
export MLFLOW_TRACKING_URI=sqlite:///mlflow.db
Remote server (Databricks, etc.): Ask the user for their tracking URI and verify connectivity.
Per-project pinning: To pin a tracking URI to a specific eval suite (overriding the env var), set mlflow.tracking_uri in eval.yaml. Useful when one machine runs evals against multiple servers. The harness resolves URIs in this order: mlflow.tracking_uri in eval.yaml > MLFLOW_TRACKING_URI env var > http://127.0.0.1:5000.
Check authentication:
echo "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:+set}"
echo "ANTHROPIC_VERTEX_PROJECT_ID=${ANTHROPIC_VERTEX_PROJECT_ID:-not set}"
If neither is set, tell the user:
export ANTHROPIC_API_KEY=<key>export ANTHROPIC_VERTEX_PROJECT_ID=<project-id>The API key is needed for skill execution (via Claude Code) and pairwise comparison judges.
Check if the runs directory is configured:
echo "AGENT_EVAL_RUNS_DIR=${AGENT_EVAL_RUNS_DIR:-eval/runs}"
If --runs-dir was provided, use it. Otherwise, the default eval/runs is fine for most projects.
If the user wants a non-default location (e.g., larger disk, shared storage), tell them to add to their shell profile:
export AGENT_EVAL_RUNS_DIR=<path>
All harness scripts read this env var. The directory is created automatically by check_env.py --fix.
If eval.yaml exists and has execution.env entries with $VAR references, those variables must be set in the caller's environment at eval-run time. Check whether they're available:
test -f eval.yaml && PYTHONPATH=${CLAUDE_SKILL_DIR}/scripts python3 -c "
from agent_eval.config import EvalConfig
config = EvalConfig.from_yaml('eval.yaml')
import os
for key, value in config.execution.env.items():
if isinstance(value, str) and value.startswith('\$'):
var_name = value[1:]
status = 'set' if os.environ.get(var_name) else 'NOT SET'
print(f' {key}: \${var_name} → {status}')
else:
# Mask literal values to avoid leaking credentials in logs
print(f' {key}: (literal, {len(str(value))} chars)')
" 2>&1 || echo " (could not parse eval.yaml)"
If any $VAR references are unset, warn the user — they'll need to export them before running /eval-run. Common examples: JIRA_SERVER for jira-emulator, JIRA_TOKEN for Jira API access.
If --skip-mlflow was passed, skip this step.
Check if eval.yaml exists and has mlflow.experiment configured:
test -f eval.yaml && echo "CONFIG_EXISTS" || echo "NO_CONFIG"
If eval.yaml exists:
PYTHONPATH=${CLAUDE_SKILL_DIR}/scripts python3 -c "
from agent_eval.config import EvalConfig
from agent_eval.mlflow.experiment import setup_experiment, resolve_tracking_uri
config = EvalConfig.from_yaml('eval.yaml')
if config.mlflow.experiment:
setup_experiment(config.mlflow.experiment, tracking_uri=resolve_tracking_uri(config))
print(f'Experiment created: {config.mlflow.experiment} on {resolve_tracking_uri(config)}')
else:
print('No mlflow.experiment in eval.yaml, skipping')
"
If eval.yaml doesn't exist, skip this step — it will be created by /eval-analyze.
Check if the repository has agentic documentation that can be evaluated:
HAS_AGENTIC_DOCS=false
if [ -f CLAUDE.md ] || [ -f AGENTS.md ] || [ -d ai-docs ]; then
HAS_AGENTIC_DOCS=true
echo "Detected agentic documentation:"
[ -f CLAUDE.md ] && echo " - CLAUDE.md"
[ -f AGENTS.md ] && echo " - AGENTS.md"
[ -d ai-docs ] && echo " - ai-docs/"
fi
Run the preflight checks again to confirm everything is set up:
python3 ${CLAUDE_SKILL_DIR}/scripts/check_env.py
If eval.yaml exists, also validate it:
test -f eval.yaml && python3 ${CLAUDE_SKILL_DIR}/scripts/check_env.py --config eval.yaml
Report the final status to the user and suggest next steps.
Present evaluation modes:
--skill)--prompt, see examples/)Next steps structure:
/eval-analyze --skill <name> (list discovered skills)/eval-analyze --prompt <path> for prompt-based evaluation/eval-dataset to generate test cases"/eval-run --model <model> to execute the evaluation"Always include the full pipeline path: analyze → dataset → run → review/optimize → mlflow
$ARGUMENTS
scripts/check_env.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)scripts/agent_eval/anova/corrections.py (opens in a new tab)scripts/agent_eval/anova/matrix.py (opens in a new tab)scripts/agent_eval/anova/stats/__init__.py (opens in a new tab)scripts/agent_eval/anova/stats/anova.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fullsend-ai/agent-eval-harness --plugin agent-eval-harness10 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.Other plugins' skills for the same job