Agentic AI
Google Launches Quality Flywheel Skill for Automated Agent Testing and Improvement
A new automated evaluation framework helps developers systematically test, measure, and refine AI agents in production and development environments.
Google Developers Blog (AI)
Google has introduced a Quality Flywheel skill that brings systematic evaluation and continuous improvement to AI agent development. The tool, built in partnership with Google DeepMind, addresses a core challenge in agent development: the gap between tweaks that "look good" on a few test cases and changes that actually improve performance across real-world usage.
The Core Problem#
Developers shipping agents often face a difficult question: when you modify a prompt to fix one reported issue, how do you know you haven't broken something else? Most teams have evaluation test cases and iterate on prompts, but few connect the two rigorously enough to know whether a change genuinely improved metrics or merely improved the "vibe" on cherry-picked examples. The most dangerous failures aren't loud crashes—they're agents that appear confident and well-reasoned while silently delivering wrong answers to users.
The Flywheel Methodology#
Google proposes a three-phase cycle for building high-quality agents: Build & Test → Ship & Monitor → Learn & Refine. The new skill focuses on the Build & Test phase while extending into production monitoring. It operates through five concrete stages, starting with data preparation and running iteratively until quality targets are met:
- Prepare Data: Assemble evaluation datasets from existing OpenTelemetry traces, hand-crafted test cases, or simulated scenarios.
- Run Inference: Execute the agent over the dataset to generate traces (or skip this if traces already exist).
- Grade: Score traces using Google's adaptive AutoRaters—model-based judges that score traces and explain verdicts—or custom metrics.
- Analyze Failures: For ten or more failures, cluster and analyze them with Automatic Loss Analysis to understand root causes.
- Optimize & Iterate: Apply targeted fixes, re-run stages 2–4, and compare against previous baselines.
Key Architectural Decisions#
A critical design choice keeps the optimizer and evaluator separate: whatever proposes a fix—whether a coding agent, automated optimizer, or human—never grades its own work. The Gemini Enterprise Agent Platform's GenAI evaluation service scores independently. This decoupling prevents optimizers from learning to game metrics rather than genuinely improve agents.

