cost. Eval runs call the model for every case and for grading, so large datasets add up on your Google Cloud or AI Studio bill.
Who it is forA developer who needs evidence that an agent change made it better, not worse.
The problemPrompt tweaks without evals regress quietly.
The outcomeGraded eval results, a comparison between two runs, and tuned prompts.
What you need first
- Python 3.11+, uv and Node.js
- A coding agent such as Claude Code, Codex or Antigravity CLI
- A Google Cloud or AI Studio account for login and deployment
Steps
- Synthesize multi-turn scenarios with
agents-cli eval dataset synthesize - Run inference and grading with
agents-cli eval run - Cluster failures with
agents-cli eval analyzeand compare two result files withagents-cli eval compare - Auto-tune prompts using eval data with
agents-cli eval optimize
Prompt for your agent
In my google/agents-cli project, run `agents-cli eval run`, then `agents-cli eval analyze`, summarize the top failure modes, and try `agents-cli eval optimize` before rerunning and comparing.
Caveat. List the available metrics first with `agents-cli eval metric list`.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for google/agents-cli and "Evaluate an agent and auto-tune its prompts"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer