DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to evaluate an agent and auto-tune its prompts with Agents CLI

Run the eval dataset, grade traces, cluster failure modes and let the CLI optimize prompts from the results.

Short answer: Synthesize multi-turn scenarios with agents-cli eval dataset synthesize; then run inference and grading with agents-cli eval run; Cluster failures with agents-cli eval analyze and compare two result files with agents-cli eval compare. All steps.

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

  1. Synthesize multi-turn scenarios with agents-cli eval dataset synthesize
  2. Run inference and grading with agents-cli eval run
  3. Cluster failures with agents-cli eval analyze and compare two result files with agents-cli eval compare
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer