/google-agents-cli:google-agents-cli-evalfrom google-agents-cli
Evaluates agents using agents-cli: write eval cases, run LLM-judge metrics, score results, and iterate on quality, cost, or latency. Use when testing agent answers, measuring hallucination or tool use, comparing runs, or auto-tuning instructions.
Ships in google-agents-cli. 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.
An eval runs the agent over a dataset of cases, grades each trace with metrics, and writes scores. The commands work for every agents-cli framework. agents-cli eval <cmd> --help gives flags and defaults.
Before the first eval run, read the framework's skill for this stage: the skill the project's guidance file (CLAUDE.md, GEMINI.md or AGENTS.md) names. On ADK, call the Skill tool with google-agents-cli-adk-code and read its references/adk-eval.md. No Skill tool: read its SKILL.md directly (../<skill-name>/ for a bundled skill, .agents/skills/<skill-name>/ for an extension's).
| File | Read when |
|---|---|
references/dataset_schema.md | Writing or fixing cases: single-turn, multi-turn, multi-agent, per-case rubrics |
references/metrics-guide.md | Writing eval_config.yaml or a custom metric, picking a built-in beyond the table below, or grading outside the global region |
references/user-simulation.md | Running eval dataset synthesize to generate multi-turn cases |
references/builtin-tools-eval.md | The agent uses Google Search, retrieval, URL context or code execution |
references/multimodal-eval.md | Cases carry images, audio or video, in the input or the output |
references/build-eval.md | Asked for an eval suite, or growing past the core cases |
references/hillclimb.md | Climbing toward a quality, cost or latency goal over rounds |
A scaffolded project already has a dataset (datasets/basic-dataset.json), an eval_config.yaml and a local judge metric under tests/eval/ (Python) or eval/ (Go, Java, Kotlin and TypeScript; agents-cli info prints the language). Its default cases test the sample agent; replace them when you replace it.
No eval files? Write a dataset (references/dataset_schema.md) and a config (references/metrics-guide.md), then pass them with --dataset and --config.
agents-cli eval doesn't read a framework's own eval file, such as an ADK *.evalset.json (often with a test_config.json). Port its cases into a new dataset as the framework's skill describes (ADK: adk-eval.md) and leave the original untouched.
agents-cli eval run. It runs the agent, grades the traces, prints each metric's mean, any Failures: and a final RESULT: PASS|FAIL (...) line (or RESULT: NOT GATED when no thresholds are set), and writes results_<timestamp>.json and .html to artifacts/grade_results/.RESULT: line: a passing mean can hide a failing case.Failures: list (metrics below threshold, their cases, errored cases), then read those cases' judge rationales in the results file and fix the agent (What to fix).mean_score and each case's score with the previous results file. Show the target metric rose and no other case regressed. references/build-eval.md). To climb toward a goal, follow references/hillclimb.md.eval run exits 1 when a metric's mean score is below its threshold (thresholds in the config, or --fail-under METRIC=SCORE, repeatable) or a case errored, so CI can gate on the exit code. No thresholds means only errored cases fail: agree them with the user and record them in the config (references/metrics-guide.md). Results JSON: summary_metrics[] holds each metric's mean_score and num_cases_error. Per case, eval_case_results[k].response_candidate_results[0].metric_results.<metric> holds score, explanation and error_message. Pair results with cases by eval_case_results[k].eval_case_index, not by position: evaluation_dataset[0].eval_cases[eval_case_index].eval_case_id names the case.
Check every dataset case is in the results: a case whose inference fails is dropped with a stderr warning.
Scores average only the cases that graded: when grading warns that cases errored, find the cause in the results file before trusting the mean. When a score surprises you, run the sanity checks in references/hillclimb.md.
Past about 10 cases, hold back a few in a separate dataset file to catch fixes fitted to the iterated cases, and grade them only when you think you're done (a climb grades them each round).
Keep the bar: when a case fails, change the agent, not the bar or the expected output. For a flaky case, lower the agent's temperature, raise judge_model_sampling_count on a prompt_template judge, or switch to a rubric metric, and keep the case.
The loop is done when every case, held-back ones included, meets the bar on a run after your last edit.
Split eval run into eval generate and eval grade to regrade without rerunning the agent, or to grade traces from eval dataset synthesize. eval generate --url drives a running or deployed agent.
Local eval run and eval generate set USE_IN_MEMORY_SESSION=false, overriding your env, so the agent uses its configured session store. A 403 or a session-store error during a local eval comes from that store; the framework's skill shows how to evaluate on in-memory sessions (ADK: adk-eval.md).
Redeploys included, rerun agents-cli eval run after your last code change and paste every case's score, not only the fixed ones, plus the final RESULT: line. Done when every case meets the bar on that run. Then call the Skill tool with google-agents-cli-deploy for the deploy approval gate.
Only the three multi_turn_* metrics below accept multi-turn traces; every other built-in returns a 400 on one. agents-cli eval metric list prints the built-ins.
| Goal | Metric |
|---|---|
| Did the agent achieve the user's goal (recommended first built-in) | multi_turn_task_success |
| Was the path logical and efficient | multi_turn_trajectory_quality |
| Were tool calls right | multi_turn_tool_use_quality |
| Final response quality, no reference needed (single-turn) | final_response_quality |
| Claims grounded in tool output | hallucination, or grounding when the case has context |
| Policy compliance | safety |
| Match a golden answer | final_response_match (needs reference on the case) |
| Different criteria per case | rubric_groups on the case, graded by a managed rubric metric (single-turn) or a local judge (multi-turn; references/metrics-guide.md) |
| A check no built-in covers | A custom LLM-judge or code metric (references/metrics-guide.md) |
Grade tool use with these rubric metrics, not a fixed call sequence, which fails when agents reorder calls or add steps.
| Failure | Change |
|---|---|
multi_turn_task_success low | Orchestration: missing tool calls, early stops, wrong tool choice |
multi_turn_trajectory_quality low | Planning prompts, instruction order, redundant tool calls |
multi_turn_tool_use_quality low | Tool descriptions, parameter docs, tool-selection instructions |
final_response_quality low | The instruction behind the worst-scoring rubric verdict |
hallucination low | Instructions to stay grounded in tool output; check the tool returned what the agent claimed |
| Agent skips tools | Fix the tool descriptions and the instruction; to force one call, see the framework's skill (ADK: adk-eval.md) |
| Judge ignores images or audio | A custom metric with a vision-capable judge (references/multimodal-eval.md) |
agents-cli eval dataset synthesize plays generated scenarios against a simulated user and writes multi-turn traces for eval grade (references/user-simulation.md). It and eval optimize run only on ADK Python projects and fail with an unsupported-language error on other languages; there, write multi-turn cases and tune prompts by hand.
agents-cli eval analyze clusters failure modes when many cases fail.agents-cli eval optimize tunes the agent's prompt against a metric. It is long-running and expensive: run it only when the user asks, once, after fixing by hand, and apply the prompt it prints.agents-cli eval submit and agents-cli eval results run on the managed Eval Service, for CI or large datasets.references/build-eval.md (opens in a new tab)references/builtin-tools-eval.md (opens in a new tab)references/dataset_schema.md (opens in a new tab)references/hillclimb.md (opens in a new tab)references/metrics-guide.md (opens in a new tab)references/multimodal-eval.md (opens in a new tab)references/user-simulation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (google/agents-cli) — no native marketplace selected
npx claudepluginhub p/google-google-agents-cli7 skills in this plugin
/google-agents-cli-adk-codeWrites and fixes ADK agent code in Python, Go, Java, Kotlin and TypeScript: tools, callbacks, state, sub-agents, graph workflows, MCP, Live voice and the ADK recipe catalog. Use when the project uses ADK or the user names it, and they want to add a tool, connect an MCP server, restructure into sub-agents or workflow steps, change the model or stream responses.
/google-agents-cli-deployDeploys agents with agents-cli to Agent Runtime, Cloud Run or GKE. Use when the user wants to deploy or go to production, add a deployment target or CI/CD, set up Terraform, secrets or IAM, test or roll back a deployed agent, put it behind Agent Gateway, use CMEK, or run batch inference from BigQuery.
/google-agents-cli-observabilityTraces and monitors agents, ADK or any OpenTelemetry app, locally or on Google Cloud. Use when the user wants traces or logs, token and cost tracking, alerts or dashboards, to store conversation transcripts or set their retention, to debug one production conversation, to check production quality and turn failures into eval cases, or to send traces to AgentOps, Phoenix, MLflow, Arize or Weave.
/google-agents-cli-publishRegisters deployed agents in Gemini Enterprise and Agent Registry. Use when the user wants to publish the agent to Gemini Enterprise (the Console's Gemini app), register it over A2A from its agent card, or list, update or remove agents and MCP servers in Agent Registry.
/google-agents-cli-scaffoldCreates, enhances and upgrades agents-cli projects from a framework template. Use when the user wants to scaffold the project for an agent they designed, bring an existing agent under agents-cli, or upgrade a project to the latest template. Deployment targets and CI/CD: google-agents-cli-deploy.
/google-agents-cli-workflowPlans and builds new agents with agents-cli, in ADK or a framework with an agents-cli extension. Use when the user wants to build a new agent, even with no framework named; add memory, document search, OAuth, human approval, moderation or a schedule to an agent; resume work from .agents-cli-spec.md; run the agent locally; or override or add an agents-cli command.
Other plugins' skills for the same job