GoogleDima Melnyk, Jason DaiTutorial
Driving the Agent Quality Flywheel from Your Coding Agent
Summary
The quality-flywheel skill addresses the gap between prompt tweaks that improve a few examples and evidence that an agent improved without regressions. A coding agent orchestrates dataset preparation, inference, trace grading, failure analysis, and optimization, using Google's adaptive AutoRaters or custom metrics while keeping the optimizer and evaluator independent. In a travel-concierge example, the revision_honored rubric found that 21% of cases ignored mid-conversation trip changes, exceeding the stated action threshold. A separate software-bug-assistant cycle raised tool-disclosure responses from 0% to 96% across 15 cases, while production traces and online monitors extend the same loop beyond synthetic scenarios. Human approval remains required, and adaptive scores are treated as directional signals rather than absolute grades.
Context
Prompt changes can appear to improve a few examples while silently breaking other cases. The described workflow targets failures where agents seem successful but misunderstand the user's actual goal, including missed mid-conversation revisions and omitted tool disclosures.
Approach / What changed
A coding-agent skill orchestrates five stages: Prepare Data, Run Inference, Grade, Analyze Failures, and Optimize & Iterate. It uses OpenTelemetry traces, synthesized or hand-crafted datasets, Google's adaptive AutoRaters or custom metrics, and independent evaluation through the GenAI evaluation service. Human approval remains required, and production traces can replace synthetic scenarios.
Takeaways
The workflow runs Prepare Data, Run Inference, Grade, Analyze Failures, and Optimize & Iterate; grading always runs, while inference is skipped when complete traces already exist.
The optimizer never grades its own work: fixes are proposed by a coding agent or other optimizer, then scored independently by the Gemini Enterprise Agent Platform GenAI evaluation service.
Adaptive AutoRaters provide broad directional signals, while stable custom rubrics or counts can measure a specific behavior across iterations; synthetic scenarios bootstrap evaluation, but production traces sharpen the loop.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.