# Hill-Climbing Agent Quality with Agents CLI Evaluation

DevFeed: [Hill-Climbing Agent Quality with Agents CLI Evaluation](<https://devfeed.tech/articles/hill-climbing-agent-quality-with-agents-cli-evaluation-105742.md>)

Original publisher: [Read original article](<https://developers.googleblog.com/hill-climbing-agent-quality-with-agents-cli-evaluation/>)

Author: Pier Paolo Ippolito; Elia Secchi

Published: 2026-10-29T03:38:31.321833Z

Content type: tutorial

Language: en

Sources: [Google Developers Blog](<https://devfeed.tech/sources/google-developers-blog.md>)

Topics: [agent observability](<https://devfeed.tech/topics/agent-observability.md>), [google-adk](<https://devfeed.tech/topics/google-adk.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [alerting](<https://devfeed.tech/tags/alerting.md>), [automate](<https://devfeed.tech/tags/automate.md>), [automated](<https://devfeed.tech/tags/automated.md>), [backend](<https://devfeed.tech/tags/backend.md>), [behaviors](<https://devfeed.tech/tags/behaviors.md>), [cli](<https://devfeed.tech/tags/cli.md>), [comparisons](<https://devfeed.tech/tags/comparisons.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [developers](<https://devfeed.tech/tags/developers.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [model](<https://devfeed.tech/tags/model.md>), [nightly](<https://devfeed.tech/tags/nightly.md>), [performance](<https://devfeed.tech/tags/performance.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [quality](<https://devfeed.tech/tags/quality.md>), [testing](<https://devfeed.tech/tags/testing.md>), [trace](<https://devfeed.tech/tags/trace.md>)

## AI overview

Agents CLI supports an evaluation loop that runs agent cases, grades traces, compares results per case, and analyzes failures; ADK projects can also use eval optimize to propose prompt variants. In the example, changing a weather agent's system prompt to a chef persona lowered the mean score from 4.0 to 2.75 across four cases, with per-case comparison showing missed tool use and off-topic recipe suggestions. A model swap produced the same mean drop but concentrated the loss in one recent-events case, showing why averages alone can mislead. The article recommends a small representative dataset for frequent checks, retaining full result files, and separating test inputs from grading expectations. Nightly runs can use cron or Cloud Scheduler plus a threshold script that exits nonzero to trigger alerts; Agents CLI itself does not include a scheduler. Prompt optimization is limited to prompts, is not supported for the LangChain extension, and requires human review because candidates may overfit the metric. The examples use a fixed judge model; model comparisons should account for prompt tuning and keep judge changes separate.

## Source excerpt

This post walks through the Agents CLI evaluation loop for systematically improving agent performance through continuous testing and grading. It demonstrates how to catch prompt regressions, evaluate model backend swaps using side-by-side trace comparisons, and automate evaluation passes. Developers will also learn how to integrate nightly scheduled runs with threshold-based alerting to track quality over time.