<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Elia Secchi</title>
    <description>The latest articles on DEV Community by Elia Secchi (@eliasecchi).</description>
    <link>https://dev.to/eliasecchi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4228703%2F01ffca4d-4322-4a02-9046-d6ed74ee3f29.png</url>
      <title>DEV Community: Elia Secchi</title>
      <link>https://dev.to/eliasecchi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eliasecchi"/>
    <language>en</language>
    <item>
      <title>Why millions of agents don't need millions of VMs on Agent Substrate</title>
      <dc:creator>Elia Secchi</dc:creator>
      <pubDate>Mon, 23 Nov 2026 19:48:10 +0000</pubDate>
      <link>https://dev.to/googlecloud/why-millions-of-agents-dont-need-millions-of-vms-on-agent-substrate-2ech</link>
      <guid>https://dev.to/googlecloud/why-millions-of-agents-dont-need-millions-of-vms-on-agent-substrate-2ech</guid>
      <description>&lt;p&gt;Imagine you just deployed an agent: everything works, it can edit files, run commands, start background processes and keep the whole session in memory, so a person can leave for a while and come back to an agent that knows where it was. To make that possible you gave every user their own VM. That's fine for ten users, but at a hundred most of those VMs sit idle and you still pay for them. But would it scale to a thousand users, or to millions?&lt;/p&gt;

&lt;p&gt;Today we're going to see how to run thousands, and eventually millions, of agents efficiently with &lt;a href="https://github.com/agent-substrate/substrate" rel="noopener noreferrer"&gt;Agent Substrate&lt;/a&gt;, which hit 1.0 on November 5! It keeps each agent's memory and files and frees its place in a shared pool of workers while the agent waits, which Substrate calls a suspend. Then it wakes the agent in &lt;a href="https://docs.cloud.google.com/kubernetes-engine/docs/concepts/machine-learning/agent-workloads" rel="noopener noreferrer"&gt;under a second&lt;/a&gt;, with &lt;a href="https://cloud.google.com/blog/products/containers-kubernetes/open-infrastructure-for-autonomous-agents-comes-to-cncf" rel="noopener noreferrer"&gt;sub-500 ms resumes&lt;/a&gt; highlighted in the 1.0 release.&lt;/p&gt;

&lt;h2&gt;
  
  
  One agent, one VM
&lt;/h2&gt;

&lt;p&gt;Let's start with one user and one agent. Between two messages the agent has to keep its workspace: its files, its running processes, and its memory. A VM that stays on keeps all three in one place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn761mw94zt7wcrvifleb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn761mw94zt7wcrvifleb.webp" alt="A stick figure labeled user points at a box labeled workspace (VM) that holds an agent and three cards labeled files, processes, and memory." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 1. One agent in its own VM, with its files, processes, and memory.&lt;/p&gt;

&lt;p&gt;No other user can reach that VM, and nothing is lost between messages. The machine stays on while its user is away, a small price for one user, so let's add more.&lt;/p&gt;

&lt;h2&gt;
  
  
  100 users, 100 VMs
&lt;/h2&gt;

&lt;p&gt;Now 100 users sign up and we create 100 VMs, but only a few are busy at any moment. An agent &lt;a href="https://cloud.google.com/blog/products/containers-kubernetes/open-infrastructure-for-autonomous-agents-comes-to-cncf" rel="noopener noreferrer"&gt;runs code for a few seconds&lt;/a&gt; and then waits on a model call, an external API, or a person. A dedicated container, or a VM like ours, keeps its memory and CPU reserved through every wait, including while the person from our opening is away.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs3lucnvcz6nuck6i96pv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs3lucnvcz6nuck6i96pv.webp" alt="A grid of small boxes labeled 100 VMs, where a few are green for busy and most are gray for waiting." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 2. A few of the 100 VMs are busy and the rest wait.&lt;/p&gt;

&lt;p&gt;You pay the same for a waiting VM as for a busy one, so your bill grows with every signup while the work grows only with the agents running at once. If you shut a VM down when its agent goes quiet, that stops its running processes and clears its memory. The user's next message then waits for a machine to boot.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one Pod per agent doesn't scale to millions
&lt;/h2&gt;

&lt;p&gt;At 1,000 users there are 10 times as many waiting VMs, so let's try Kubernetes, the system that runs containers across a cluster of machines. We can give each agent its own Pod (the unit Kubernetes runs containers in) instead of a VM.&lt;/p&gt;

&lt;p&gt;A dedicated Pod still locks up memory and CPU while the agent waits. At millions of agents, the control plane (the part that manages the cluster) also has to &lt;a href="https://cloud.google.com/blog/products/containers-kubernetes/open-infrastructure-for-autonomous-agents-comes-to-cncf" rel="noopener noreferrer"&gt;track millions of persistent objects&lt;/a&gt; it wasn't designed to hold.&lt;/p&gt;

&lt;p&gt;Whether you use a VM or a Pod per agent, the workspace lives on the machine, so you can't keep one and release the other.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three parts of Agent Substrate
&lt;/h2&gt;

&lt;p&gt;Agent Substrate separates the workspace from the machine. It is an open source runtime for Kubernetes with three parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Actors hold each agent's memory, files, and identity, so an actor is the Figure 1 workspace with no machine attached.&lt;/li&gt;
&lt;li&gt;Workers are pre-started Pods that wait in a warm pool, and one worker hosts many awake actors at once, each in its own sandbox (an isolated environment for running code).&lt;/li&gt;
&lt;li&gt;Gateways handle network traffic: an ingress router sends requests to actors, and an egress gateway adds credentials on outbound calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How an agent harness runs on Substrate
&lt;/h2&gt;

&lt;p&gt;First, you set up three things. You package your agent's tools and its harness (the program that runs its loop of model and tool calls) as a standard container image. That works with &lt;a href="https://adk.dev" rel="noopener noreferrer"&gt;Agent Development Kit (ADK)&lt;/a&gt;, LangChain, Claude Code, Codex, &lt;a href="https://antigravity.google" rel="noopener noreferrer"&gt;Google Antigravity&lt;/a&gt;, or any other agent framework or harness. Next, you define an ActorTemplate (the image, environment variables, and compute resources) and a WorkerPool (the warm pool of workers), then create one actor per user session.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhny8g79m9p9gup612k3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhny8g79m9p9gup612k3.webp" alt="A stick figure labeled user points to a box labeled your app, then a router, then a warm worker box that holds a sandbox with an actor inside; an arrow labeled restore comes up from a bucket labeled snapshot storage, and arrows continue from the actor to an egress gateway and on to a box labeled model and tools." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 3. A request reaches the actor through the router, and its outbound calls leave through the egress gateway, which adds credentials outside the sandbox.&lt;/p&gt;

&lt;p&gt;Once that is in place, each message follows the path in Figure 3:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Your app sends the message to the router, naming the user's actor. The router picks a warm worker with room, restores the snapshot (the actor's saved memory and files) if the actor was suspended, and forwards the request.&lt;/li&gt;
&lt;li&gt;Inside the worker, the actor runs in its own &lt;a href="https://gvisor.dev" rel="noopener noreferrer"&gt;gVisor&lt;/a&gt; sandbox or &lt;a href="https://www.cloudhypervisor.org" rel="noopener noreferrer"&gt;Cloud Hypervisor&lt;/a&gt; microVM (a small virtual machine). A single worker &lt;a href="https://docs.cloud.google.com/kubernetes-engine/docs/how-to/design-substrate-infrastructure" rel="noopener noreferrer"&gt;accepts up to 1,000 actors&lt;/a&gt; by default while it has CPU and memory left. Even so, each actor sees only its own files, processes, and memory, on a private network with no path to other actors or the control plane.&lt;/li&gt;
&lt;li&gt;Outbound calls are &lt;a href="https://github.com/agent-substrate/substrate/blob/release-1.0/docs/guides/egress-traffic.md" rel="noopener noreferrer"&gt;blocked&lt;/a&gt; until you add an egress policy for the hosts the agent may reach. Approved calls to the model and tools pass through the egress gateway, which adds their credentials outside the sandbox, so your keys never sit where generated code runs.&lt;/li&gt;
&lt;li&gt;When the turn ends, your app or orchestrator tells Substrate to suspend the actor.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How Substrate suspends and wakes an agent
&lt;/h2&gt;

&lt;p&gt;Think of a suspend like closing a laptop lid and later finding your editor and terminal as you left them. When your app or orchestrator suspends an actor, Substrate saves a snapshot of its memory and files to local disk and to &lt;a href="https://cloud.google.com/storage" rel="noopener noreferrer"&gt;Cloud Storage&lt;/a&gt;, and frees the actor's place on its worker.&lt;/p&gt;

&lt;p&gt;If the next request arrives within 30 minutes of suspending, Substrate schedules the actor back onto the same node and restores it from the local cache. After that, it wakes on any worker with room from Cloud Storage in under a second, so unlike your laptop, it can wake on a different machine from the one it went to sleep on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvimtmpmduh22hwuokco7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvimtmpmduh22hwuokco7.webp" alt="A worker box holds an actor with files, processes, and memory; an arrow labeled suspend goes to a bucket labeled snapshot in Cloud Storage, and an arrow labeled next request: wake in under 1 s goes back to any worker." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 4. A suspended actor waits as a snapshot in Cloud Storage until the next request wakes it in under a second.&lt;/p&gt;

&lt;p&gt;Let's replay our opening with memory snapshots on. The person leaves for a while and your app suspends the actor at the end of the turn, so its files and session memory wait in the snapshot. Because RAM and the filesystem are restored intact, its running processes come back with them. The person's next message wakes the actor, and they come back to an agent that knows where it was.&lt;/p&gt;

&lt;p&gt;To see that in a small example, you can run the &lt;a href="https://github.com/agent-substrate/substrate/blob/release-1.0/demos/counter/README.md" rel="noopener noreferrer"&gt;counter demo&lt;/a&gt; on a local cluster set up from the repo (after its install and &lt;code&gt;go run ./cmd/ate-setup deploy demo counter&lt;/code&gt; steps). The proxy keeps running in its own terminal, while a second one sends a request, suspends the actor (calling the same control-plane &lt;code&gt;SuspendActor&lt;/code&gt; API your app uses), and wakes it with another request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# terminal 1, from the substrate repo&lt;/span&gt;
go install ./cmd/kubectl-ate
kubectl ate create actor my-counter-1 -a ate-demo-counter --template counter
kubectl ate proxy actor my-counter-1 -a ate-demo-counter

&lt;span class="c"&gt;# terminal 2&lt;/span&gt;
curl -X POST http://localhost:8000
kubectl ate &lt;span class="nb"&gt;suspend&lt;/span&gt; actor my-counter-1 -a ate-demo-counter
curl -X POST http://localhost:8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the demo README, the two requests return:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;preserved memory count: 1 | preserved file counter: 1 | preserved rootfs counter: 1
preserved memory count: 2 | preserved file counter: 2 | preserved rootfs counter: 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All three counters go from 1 to 2 across the suspend, and the one in process memory keeps its value because the demo's actor template asks for &lt;code&gt;SNAPSHOT_FIDELITY_MEMORY&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to suspend an agent
&lt;/h2&gt;

&lt;p&gt;On &lt;a href="https://cloud.google.com/kubernetes-engine" rel="noopener noreferrer"&gt;Google Kubernetes Engine (GKE)&lt;/a&gt;, your app or orchestrator decides when to suspend an actor by calling &lt;code&gt;SuspendActor&lt;/code&gt;. Putting that call in your backend lets you suspend at the exact right moment, when a turn ends or while the agent waits on an approval. After a wake, open connections such as database or Model Context Protocol (MCP) sessions &lt;a href="https://docs.cloud.google.com/kubernetes-engine/ai-ml/about-agent-substrate" rel="noopener noreferrer"&gt;need to reconnect&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Every suspend adds a wake to the user's next message, so wake time matters. Restoring a memory snapshot from Cloud Storage takes under a second, compared with three to five seconds for a GKE Pod snapshot, as long as the worker matches the original hardware, sandbox runtime, and container image. Wake time grows with snapshot size, so a large workspace can go on an external &lt;a href="https://cloud.google.com/filestore" rel="noopener noreferrer"&gt;Filestore&lt;/a&gt; agent volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  From a thousand agents to millions
&lt;/h2&gt;

&lt;p&gt;So how big does the pool of workers have to be? It only has to fit the agents awake at your busiest moment, your peak running actors. The pool works a bit like a restaurant, which needs enough seats for the people eating at the same moment, however many regulars it has.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.cloud.google.com/kubernetes-engine/docs/how-to/design-substrate-infrastructure" rel="noopener noreferrer"&gt;infrastructure guide&lt;/a&gt; estimates peak running actors as total actors times the average fraction active (the share of users with an agent mid-turn) times a burst factor. You divide that peak by 80% of the actors one worker can hold to get the number of workers, and every other actor waits as a snapshot. For example, if 8% of 1,000 actors are active at once with a 2x burst factor, peak concurrency is 160 running actors. If each worker's CPU and memory fit 50 of our agents, dividing 160 by 80% of 50 (40 per worker) takes 4 workers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0uc2ljxlcv2ew93535qj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0uc2ljxlcv2ew93535qj.webp" alt="A cloud labeled 1,000 actors full of gray sleeping boxes and a few green awake ones, with a legend for asleep and awake, and an arrow from the cloud to a box labeled warm pool of workers." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 5. A thousand actors, most of them asleep, share a small warm pool of workers, and each worker hosts many awake actors.&lt;/p&gt;

&lt;p&gt;We asked whether it would scale to a thousand users, or to millions, and it does once every user's workspace is an actor with no machine attached. The &lt;a href="https://github.com/agent-substrate/substrate" rel="noopener noreferrer"&gt;Substrate README&lt;/a&gt; shows about 250 stateful actors running on eight worker pods, and at 1.0 Agent Substrate is built for production workloads across &lt;a href="https://cloud.google.com/blog/products/containers-kubernetes/open-infrastructure-for-autonomous-agents-comes-to-cncf" rel="noopener noreferrer"&gt;millions of sandboxes&lt;/a&gt; at 10 times the density of standard container runtimes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to take away
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Separate the agent's workspace from its machine, so your compute scales with active turns instead of total signups.&lt;/li&gt;
&lt;li&gt;Call &lt;code&gt;SuspendActor&lt;/code&gt; from your app when a turn ends, reconnect database or MCP sessions after a wake, and put large workspaces on Filestore volumes to keep snapshots fast.&lt;/li&gt;
&lt;li&gt;Size your warm pool for peak running actors with 20% headroom, and keep workers on matching hardware, runtime, and image so any worker can restore memory.&lt;/li&gt;
&lt;li&gt;Keep your existing framework in a standard container image, while isolating each session in a sandbox with credentials injected outside at the egress gateway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Want to watch an actor suspend and wake on your own cluster? Agent Substrate 1.0 is open source under Apache 2.0 in the Cloud Native Computing Foundation Sandbox, and runs on GKE Standard 1.37+ (x86 nodes) for eligible Google Cloud customers. Check the &lt;a href="https://docs.cloud.google.com/kubernetes-engine/ai-ml/install-overview-substrate" rel="noopener noreferrer"&gt;install guide&lt;/a&gt; for prerequisites and cluster access, then run this locally (not in Cloud Shell, and it creates billable resources) to spin up the demo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sSL https://raw.githubusercontent.com/ai-on-gke/substrate-gke/main/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash -s -- --demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dig into the &lt;a href="https://github.com/agent-substrate/substrate" rel="noopener noreferrer"&gt;substrate repo&lt;/a&gt;, the &lt;a href="https://github.com/ai-on-gke/substrate-gke" rel="noopener noreferrer"&gt;substrate-gke installer&lt;/a&gt;, and the &lt;a href="https://docs.cloud.google.com/kubernetes-engine/ai-ml/about-agent-substrate" rel="noopener noreferrer"&gt;About page&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>architecture</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>Use your eval as a CI gate with Agents CLI</title>
      <dc:creator>Elia Secchi</dc:creator>
      <pubDate>Wed, 11 Nov 2026 18:15:10 +0000</pubDate>
      <link>https://dev.to/googlecloud/use-your-eval-as-a-ci-gate-with-agents-cli-1ha1</link>
      <guid>https://dev.to/googlecloud/use-your-eval-as-a-ci-gate-with-agents-cli-1ha1</guid>
      <description>&lt;p&gt;Unit tests check that an agent's code runs, so a one-line change to its instruction can make its answers worse while the tests keep passing.&lt;/p&gt;

&lt;p&gt;Last year we covered this in the Kaggle AI Agents Intensive with Google, in &lt;a href="https://www.kaggle.com/whitepaper-prototype-to-production" rel="noopener noreferrer"&gt;Prototype to Production&lt;/a&gt;, the Day 5 whitepaper. It says no agent version should reach users until it passes an automated evaluation, and &lt;a href="https://github.com/google/agents-cli" rel="noopener noreferrer"&gt;Agents CLI&lt;/a&gt;, the command-line tool for building, evaluating, and deploying agents on Google Cloud, turns the pre-merge part of that rule into one setting in v1.13.0. In this post I add it to a fresh project and then to the project's CI, the continuous integration checks that run on every pull request.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp341vltnc6f5xobmjxcz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp341vltnc6f5xobmjxcz.webp" alt="A pull request goes into agents-cli eval run with a threshold of 4 out of 5; PASS exits 0 and merges, FAIL exits 1 and blocks." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 1. The eval passes or fails the pull request check through the exit code your CI already reads.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agents need a different gate
&lt;/h2&gt;

&lt;p&gt;An agent decides what to do on each request, so you grade its replies and its tool calls (the functions it runs, such as a weather lookup) on a set of known cases. An eval runs the agent on a dataset of prompts and scores each reply.&lt;/p&gt;

&lt;p&gt;The whitepaper described two ways to use an eval as a gate. You can run it by hand before you open a pull request, or you can wire it into the pipeline so a failing eval blocks the change automatically. Agents CLI covers both with the same command, &lt;code&gt;agents-cli eval run&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed in v1.13.0
&lt;/h2&gt;

&lt;p&gt;According to the &lt;a href="https://github.com/google/agents-cli/blob/main/RELEASE_NOTES.md" rel="noopener noreferrer"&gt;release notes&lt;/a&gt;, &lt;code&gt;eval run&lt;/code&gt; and &lt;code&gt;eval grade&lt;/code&gt; now end with a &lt;code&gt;RESULT: PASS&lt;/code&gt; or &lt;code&gt;RESULT: FAIL&lt;/code&gt; line, with the failing metrics and cases listed above it. A threshold is the lowest mean score you accept for a metric. You set it with a &lt;code&gt;thresholds:&lt;/code&gt; map in the eval config, or for one run with &lt;code&gt;--fail-under METRIC=SCORE&lt;/code&gt;, and a missed threshold exits 1. A run where any case errored also exits 1, so a broken eval can't pass by accident.&lt;/p&gt;

&lt;p&gt;Every program ends with an exit code, 0 for success and anything else for failure. CI systems such as GitHub Actions treat a non-zero exit as a failed step, so the threshold fails the build without a plugin or a parser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start from the eval you already have
&lt;/h2&gt;

&lt;p&gt;You need a Google Cloud project with the Vertex AI API turned on and local credentials from &lt;code&gt;gcloud auth application-default login&lt;/code&gt;, or a Gemini API key. &lt;code&gt;setup&lt;/code&gt; installs the &lt;code&gt;agents-cli&lt;/code&gt; command and its skills for your coding agent, and &lt;code&gt;create&lt;/code&gt; writes your project into the &lt;code&gt;.env&lt;/code&gt;. A new project ships with an eval:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx google-agents-cli setup
agents-cli create gate-agent -y
&lt;span class="nb"&gt;cd&lt;/span&gt; gate-agent &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; agents-cli install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;uvx&lt;/code&gt; runs a Python tool without installing it first, so &lt;code&gt;uvx google-agents-cli&lt;/code&gt; is the same CLI as &lt;code&gt;agents-cli&lt;/code&gt;. &lt;code&gt;-y&lt;/code&gt; skips the prompts and takes the defaults, and &lt;code&gt;install&lt;/code&gt; fetches the project's dependencies.&lt;/p&gt;

&lt;p&gt;The dataset in &lt;code&gt;tests/eval/datasets/basic-dataset.json&lt;/code&gt; holds three cases: a greeting, a weather question, and "What is the capital of France?", which has a reference answer for the judge to compare against. The metric, &lt;code&gt;custom_response_quality&lt;/code&gt;, is an LLM-as-judge, which means a second large language model (LLM) reads each reply and grades it from 1 (poor) to 5 (excellent).&lt;/p&gt;

&lt;p&gt;Both the agent and the judge call Gemini through the Google Cloud project in your &lt;code&gt;.env&lt;/code&gt;, or through a &lt;code&gt;GEMINI_API_KEY&lt;/code&gt; if you switch the &lt;code&gt;.env&lt;/code&gt; to it, as the comments in the file show. The eval config also ships a threshold, commented out until you know your bar.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set the bar and run it
&lt;/h2&gt;

&lt;p&gt;I set the bar at 4 out of 5:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ agents-cli &lt;span class="nb"&gt;eval&lt;/span&gt; run --fail-under &lt;span class="nv"&gt;custom_response_quality&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;4
...
custom_response_quality:
  num_cases_total: 3
  num_cases_valid: 3
  num_cases_error: 0
  mean_score: 5.0000
  stdev_score: 0.0000
  pass_rate: 1.0000
...
RESULT: PASS &lt;span class="o"&gt;(&lt;/span&gt;custom_response_quality 5.00 &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; 4.00&lt;span class="o"&gt;)&lt;/span&gt;
$ &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$?&lt;/span&gt;
0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;eval run&lt;/code&gt; chains two steps, &lt;code&gt;eval generate&lt;/code&gt; to run the agent on each case and &lt;code&gt;eval grade&lt;/code&gt; to score the replies. &lt;code&gt;pass_rate&lt;/code&gt; is the share of cases that scored at least 4 on their own. The exit code depends only on the mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  Break it on purpose
&lt;/h2&gt;

&lt;p&gt;Then I shortened the instruction to one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;-    instruction="You are a helpful AI assistant designed to provide accurate and useful information.",&lt;/span&gt;
&lt;span class="gi"&gt;+    instruction="Answer in one word. Never call tools.",&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The scaffold's placeholder unit test still passes, and the gate fails the run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ agents-cli &lt;span class="nb"&gt;eval&lt;/span&gt; run --fail-under &lt;span class="nv"&gt;custom_response_quality&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;4
...
custom_response_quality:
  num_cases_total: 3
  ...
  mean_score: 3.0000
  ...
  pass_rate: 0.3333
...
Failures:
  custom_response_quality: below threshold 4: &lt;span class="k"&gt;case&lt;/span&gt; 0 &lt;span class="o"&gt;(&lt;/span&gt;2.00&lt;span class="o"&gt;)&lt;/span&gt;, ...
Next: open ... to &lt;span class="nb"&gt;read&lt;/span&gt; the failing cases, ...
RESULT: FAIL &lt;span class="o"&gt;(&lt;/span&gt;custom_response_quality 3.00 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; 4.00&lt;span class="o"&gt;)&lt;/span&gt;
$ &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$?&lt;/span&gt;
1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The full &lt;code&gt;Failures:&lt;/code&gt; line lists case 0 and case 1, the greeting and the weather question, both at 2.00. The judge gave both a 2, because "Anything" was a vague answer to the greeting and "Foggy" skipped the weather tool. "Paris" still matched the reference and kept its 5, which is why &lt;code&gt;pass_rate&lt;/code&gt; is 0.3333. The &lt;code&gt;Next:&lt;/code&gt; line points to the HTML report with each case's reply and score. It also suggests &lt;code&gt;agents-cli eval compare&lt;/code&gt; to diff two runs, so the person whose build failed knows where to look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put it in CI
&lt;/h2&gt;

&lt;p&gt;For CI, move the bar into the repo by uncommenting the block in &lt;code&gt;tests/eval/eval_config.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;thresholds&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;custom_response_quality&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;  &lt;span class="c1"&gt;# the judge scores 1-5
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now &lt;code&gt;eval run&lt;/code&gt; needs no flag. The bar lives in the repo next to the prompt and the dataset, and the whitepaper says to version both along with your code. With the original instruction back, the call CI will make passes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ uvx google-agents-cli &lt;span class="nb"&gt;eval&lt;/span&gt; run
...
RESULT: PASS &lt;span class="o"&gt;(&lt;/span&gt;custom_response_quality 5.00 &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; 4.00&lt;span class="o"&gt;)&lt;/span&gt;
$ &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$?&lt;/span&gt;
0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Add the gate to GitHub Actions
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;agents-cli scaffold enhance --cicd-runner github_actions&lt;/code&gt; in the project to add CI. The generated &lt;code&gt;.github/workflows/pr_checks.yaml&lt;/code&gt; already authenticates to Google Cloud and runs your unit and integration tests on pull requests to &lt;code&gt;main&lt;/code&gt; that touch &lt;code&gt;app/&lt;/code&gt;, &lt;code&gt;tests/&lt;/code&gt;, &lt;code&gt;deployment/&lt;/code&gt; or &lt;code&gt;uv.lock&lt;/code&gt;. Add the gate as one more step after the integration tests. Your &lt;code&gt;.env&lt;/code&gt; stays out of the repo, so the step sets the same three variables itself, which tell the Gemini client to use your Google Cloud project in the global region.&lt;br&gt;
&lt;code&gt;CICD_PROJECT_ID&lt;/code&gt; is a repository variable you set in GitHub to the project CI runs in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Eval gate&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;GOOGLE_GENAI_USE_ENTERPRISE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'true'&lt;/span&gt;
          &lt;span class="na"&gt;GOOGLE_CLOUD_PROJECT&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ vars.CICD_PROJECT_ID }}&lt;/span&gt;
          &lt;span class="na"&gt;GOOGLE_CLOUD_LOCATION&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;global&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;uvx google-agents-cli eval run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the whitepaper's pipeline this is the pre-merge stage, the checks that run before a change reaches your main branch. Staging and production come later.&lt;/p&gt;

&lt;p&gt;To stop a failing pull request from merging, mark the &lt;code&gt;test&lt;/code&gt; job of the PR Checks workflow as a required status check in your branch protection rules. The workflow only runs when one of those paths changes, and GitHub keeps a required check pending on a pull request that skips it, so delete the &lt;code&gt;paths:&lt;/code&gt; block in &lt;code&gt;pr_checks.yaml&lt;/code&gt; when you make &lt;code&gt;test&lt;/code&gt; required.&lt;/p&gt;

&lt;p&gt;Pick the bar with some margin, because the agent's answers change between runs. The broken agent answered the weather question "Foggy" in one run and "Unknown" in another, so it scored 3.00 in one run and 2.67 in the other. The working agent scored 5.00 in all three of its runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to take away
&lt;/h2&gt;

&lt;p&gt;We started from the eval the scaffold ships, gave it a bar, then moved the bar into the config and a CI step. Three cases make a small gate, so the whitepaper's advice to turn each production failure into a new eval case is the next step, since every case you add to &lt;code&gt;basic-dataset.json&lt;/code&gt; shifts the mean that later changes are scored on.&lt;/p&gt;

&lt;p&gt;To try it on your own agent, install the CLI and run your eval with a bar, using your own metric's name and a score on its scale:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx google-agents-cli setup
agents-cli &lt;span class="nb"&gt;eval&lt;/span&gt; run --fail-under &lt;span class="nv"&gt;custom_response_quality&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://github.com/google/agents-cli/blob/main/RELEASE_NOTES.md" rel="noopener noreferrer"&gt;v1.13.0 release notes&lt;/a&gt; and the &lt;a href="https://google.github.io/agents-cli/" rel="noopener noreferrer"&gt;Agents CLI docs&lt;/a&gt; cover the eval commands in detail, and the code is in the &lt;a href="https://github.com/google/agents-cli" rel="noopener noreferrer"&gt;Agents CLI repo&lt;/a&gt;. The &lt;a href="https://www.kaggle.com/whitepaper-prototype-to-production" rel="noopener noreferrer"&gt;Prototype to Production whitepaper&lt;/a&gt; covers the rest of the pipeline, from staging to production.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>cicd</category>
      <category>cli</category>
      <category>testing</category>
    </item>
    <item>
      <title>Take a Claude Agent SDK agent from install to deploy with Agents CLI</title>
      <dc:creator>Elia Secchi</dc:creator>
      <pubDate>Mon, 09 Nov 2026 13:21:04 +0000</pubDate>
      <link>https://dev.to/googlecloud/take-a-claude-agent-sdk-agent-from-install-to-deploy-with-agents-cli-2680</link>
      <guid>https://dev.to/googlecloud/take-a-claude-agent-sdk-agent-from-install-to-deploy-with-agents-cli-2680</guid>
      <description>&lt;p&gt;A Claude Agent SDK agent is a few lines of Python. Running it for real users takes more than the agent: somewhere to store each conversation so it isn't lost when the server restarts, traces that show what the agent did at each step when something goes wrong, evals (tests for agent answers) to run before each change, and a secure deploy. That's usually the part teams build by hand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/google/agents-cli" rel="noopener noreferrer"&gt;Agents CLI&lt;/a&gt; already handles these for agents built on the Agent Development Kit (ADK). Since v1.12.0, a first-party extension does the same for Claude Agent SDK agents: you keep writing a &lt;code&gt;ClaudeAgentOptions&lt;/code&gt;, and you get the same create, run, eval, and deploy commands as an ADK agent. We took one agent from install to a validated deploy on v1.13.0.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcswcds22cvxtmua4ulsd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcswcds22cvxtmua4ulsd.webp" alt="The Claude agent in the middle, connected to Sessions (Cloud SQL), Traces (Cloud Trace), Logs and metrics (Logging, Monitoring) and Eval (eval generate and grade)." width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 1. You write &lt;code&gt;app/agent.py&lt;/code&gt;, and the template wires in sessions, traces, logs, metrics, and eval.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Install and create
&lt;/h2&gt;

&lt;p&gt;One command installs Agents CLI and its skills for your coding agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx google-agents-cli setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then create a project from the Claude template, with Cloud Run as the target and Cloud SQL for sessions, and send it a prompt. &lt;code&gt;run&lt;/code&gt; calls Claude in process through the SDK, and the reply ends with a session ID you can resume:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;agents-cli create claude-agent &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="go"&gt;    --agent google/agents-cli/extensions/claude/template@v1.13.0 \
    -d cloud_run --session-type cloud_sql -y
&lt;/span&gt;&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="go"&gt;✅ Success! Your agent project is ready.
&lt;/span&gt;&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;claude-agent &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; agents-cli &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;agents-cli run &lt;span class="s2"&gt;"what's the weather in San Francisco?"&lt;/span&gt;
&lt;span class="go"&gt;running 'run' via extension 'claude' (project scope)
&lt;/span&gt;&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="go"&gt;The weather in San Francisco is currently **60 degrees and foggy**. Typical San Francisco weather! You might want to bring a jacket if you're heading outside.

Session: 84a0699d5de54c748333b24bf00b3b14
&lt;/span&gt;&lt;span class="gp"&gt;  Resume with: agents-cli run "&amp;lt;message&amp;gt;&lt;/span&gt;&lt;span class="s2"&gt;" --session-id 84a0699d5de54c748333b24bf00b3b14
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The project's &lt;code&gt;app/agent.py&lt;/code&gt; is plain Claude Agent SDK code: a &lt;code&gt;@tool&lt;/code&gt; for the weather, an in-process Model Context Protocol (MCP) server that exposes the tool to Claude, and options that switch off Claude Code's built-in tools (such as running shell commands) so the agent can only call what you allow.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;root_agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ClaudeAgentOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;claude-haiku-4-5&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;system_prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;You are Skye, a helpful assistant. Use get_weather for weather questions.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;mcp_servers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;weather&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;weather_server&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;
    &lt;span class="n"&gt;allowed_tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mcp__weather__get_weather&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;max_turns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model has to be enabled in Model Garden, the Google Cloud page where you turn on models for your project. &lt;code&gt;create&lt;/code&gt; writes the project to &lt;code&gt;.env&lt;/code&gt; as &lt;code&gt;GOOGLE_CLOUD_PROJECT&lt;/code&gt;, but &lt;code&gt;ANTHROPIC_VERTEX_PROJECT_ID&lt;/code&gt; wins if your shell sets it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Evaluate it like any other agent
&lt;/h2&gt;

&lt;p&gt;An eval has two steps. &lt;code&gt;eval generate&lt;/code&gt; runs the agent on a set of test prompts and saves its answers, and &lt;code&gt;eval grade&lt;/code&gt; has a model score those answers. The extension replaces only the first step and saves the answers in the same format ADK agents use, so &lt;code&gt;eval grade&lt;/code&gt; works unchanged. Both test cases, &lt;code&gt;greeting&lt;/code&gt; and &lt;code&gt;weather_lookup&lt;/code&gt;, scored 5 out of 5:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;agents-cli &lt;span class="nb"&gt;eval &lt;/span&gt;generate &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="go"&gt;    --dataset tests/eval/datasets/basic-dataset.json \
    -o tests/eval/output/
running 'eval generate' via extension 'claude' (project scope)
[claude-generate] wrote tests/eval/output/eval_dataset_20261109_110946.json
&lt;/span&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;agents-cli &lt;span class="nb"&gt;eval &lt;/span&gt;grade &lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="go"&gt;    --traces tests/eval/output/eval_dataset_20261109_110946.json \
    --config tests/eval/eval_config.yaml
&lt;/span&gt;&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="go"&gt;Evaluation Summary

custom_response_quality:
  num_cases_total: 2
  num_cases_valid: 2
  num_cases_error: 0
  mean_score: 5.0000
  stdev_score: 0.0000

&lt;/span&gt;&lt;span class="gp"&gt;RESULT: PASS (no thresholds set;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;add &lt;span class="s1"&gt;'thresholds'&lt;/span&gt; to the &lt;span class="nb"&gt;eval &lt;/span&gt;config or pass &lt;span class="nt"&gt;--fail-under&lt;/span&gt; to gate on scores&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The template leaves &lt;code&gt;thresholds:&lt;/code&gt; commented out in &lt;code&gt;tests/eval/eval_config.yaml&lt;/code&gt;, since only you know your bar. Once you set it, &lt;code&gt;eval grade&lt;/code&gt; and &lt;code&gt;eval run&lt;/code&gt; exit 1 when a score falls below it (&lt;a href="https://github.com/google/agents-cli/blob/main/RELEASE_NOTES.md" rel="noopener noreferrer"&gt;v1.13.0&lt;/a&gt;), so the same command can gate CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: See what production adds
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;agents-cli infra single-project&lt;/code&gt; uses Terraform, a tool that describes cloud resources as code, to plan everything the agent needs in your project: the Cloud Run service, the database for sessions, and the logging and tracing setup. Without &lt;code&gt;--apply&lt;/code&gt;, it only prints the plan, 42 resources in all:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;agents-cli infra single-project &lt;span class="nt"&gt;--project&lt;/span&gt; my-project
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;  #&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;google_cloud_run_v2_service.app will be created
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;  #&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;google_logging_project_sink.genai_logs_to_bq will be created
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;  #&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;google_project_iam_member.agent_identity_roles[&lt;span class="s2"&gt;"roles/cloudtrace.agent"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; will be created
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;  #&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;google_project_iam_member.agent_identity_roles[&lt;span class="s2"&gt;"roles/logging.logWriter"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; will be created
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;  #&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;google_project_iam_member.agent_identity_roles[&lt;span class="s2"&gt;"roles/monitoring.metricWriter"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; will be created
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="gp"&gt;  #&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;google_sql_database_instance.session_db will be created
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="go"&gt;Plan: 42 to add, 0 to change, 0 to destroy.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Apply it once before the first deploy. That creates the Cloud SQL instance, connects the Cloud Run service to it, and gives the agent's identity the Cloud Trace role. We didn't apply it for this post:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Not run for this post: creates the resources in the plan above.&lt;/span&gt;
agents-cli infra single-project &lt;span class="nt"&gt;--apply&lt;/span&gt; &lt;span class="nt"&gt;--project&lt;/span&gt; my-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Think of the template as a chassis: you bring the engine, and the wiring is already there.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sessions:&lt;/strong&gt; with &lt;code&gt;--session-type cloud_sql&lt;/code&gt; and the infra applied, transcripts go to Cloud SQL, so a conversation can resume on another instance or after a restart. Without the database, they stay on the instance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traces:&lt;/strong&gt; once the infra grants the Cloud Trace permission, every turn and every tool call is recorded as a span (one timed step), and you can open the whole turn as one trace in Cloud Trace.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logs and metrics:&lt;/strong&gt; logs go to Cloud Logging tagged with the turn's trace, and turn duration and token usage go to Cloud Monitoring. BigQuery Agent Analytics is optional.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Deploy
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;agents-cli deploy&lt;/code&gt; builds your code and deploys it to Cloud Run with &lt;code&gt;gcloud beta run deploy --source .&lt;/code&gt;. With &lt;code&gt;--dry-run&lt;/code&gt;, it first checks that your project has the right APIs turned on and that you have the permissions to deploy, without changing anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;agents-cli deploy &lt;span class="nt"&gt;--dry-run&lt;/span&gt; &lt;span class="nt"&gt;--project&lt;/span&gt; my-project
&lt;span class="c"&gt;...
&lt;/span&gt;&lt;span class="go"&gt;🔎 Validating the deployment (no resources are changed)...
&lt;/span&gt;&lt;span class="c"&gt;  ...
&lt;/span&gt;&lt;span class="go"&gt;  ✅ APIs enabled: run.googleapis.com, artifactregistry.googleapis.com, cloudbuild.googleapis.com
  ✅ Target service: creates a new service named 'claude-agent'
  ✅ IAM permissions: all 4 permissions granted
&lt;/span&gt;&lt;span class="c"&gt;  ...
&lt;/span&gt;&lt;span class="go"&gt;  Would run: gcloud beta run deploy claude-agent --project my-project --region us-east1 --source . --memory 4Gi --cpu 1 --min-instances 0 --max-instances 10 --concurrency 8 --no-allow-unauthenticated --no-cpu-throttling --functional-type agent --identity-type agent-identity --update-env-vars '...' --update-labels '...'
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--no-allow-unauthenticated&lt;/code&gt; keeps the service private, so only callers with access can reach it. &lt;code&gt;--identity-type agent-identity&lt;/code&gt; gives the agent its own identity in Google Cloud, with only the permissions &lt;code&gt;deploy&lt;/code&gt; grants it, so it doesn't borrow your account or a shared one. That is the default for new projects since v1.13.0.&lt;/p&gt;

&lt;p&gt;Once deployed, the agent speaks the Agent2Agent (A2A) protocol, a standard way for agents and apps to call each other, and you can reach it from your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;agents-cli run &lt;span class="nt"&gt;--url&lt;/span&gt; https://&amp;lt;service-url&amp;gt; &lt;span class="nt"&gt;--mode&lt;/span&gt; a2a &lt;span class="nt"&gt;--app-name&lt;/span&gt; app &lt;span class="s2"&gt;"hello"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What to take away
&lt;/h2&gt;

&lt;p&gt;Of the commands we ran, the extension handled only &lt;code&gt;run&lt;/code&gt; and &lt;code&gt;eval generate&lt;/code&gt;. &lt;code&gt;eval grade&lt;/code&gt;, &lt;code&gt;infra&lt;/code&gt;, and &lt;code&gt;deploy&lt;/code&gt; ran exactly as they do for an ADK agent. Apply the infra before the first deploy, because that step creates the session database.&lt;/p&gt;

&lt;p&gt;To bring an existing agent over, run &lt;code&gt;scaffold enhance&lt;/code&gt;. It writes the template into your project and moves the files it replaces to &lt;code&gt;.agents-cli-original/&lt;/code&gt;. Then move your &lt;code&gt;ClaudeAgentOptions&lt;/code&gt; into &lt;code&gt;app/agent.py&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;agents-cli scaffold enhance google/agents-cli/extensions/claude/template@v1.13.0 &lt;span class="nt"&gt;-d&lt;/span&gt; cloud_run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To start fresh, install Agents CLI and follow Step 1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx google-agents-cli setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://google.github.io/agents-cli/guide/extensions/first-party/" rel="noopener noreferrer"&gt;extension guide&lt;/a&gt; covers migration step by step, and Agents CLI is on &lt;a href="https://github.com/google/agents-cli" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cli</category>
      <category>python</category>
    </item>
    <item>
      <title>Find the production agent failures that every health check misses</title>
      <dc:creator>Elia Secchi</dc:creator>
      <pubDate>Thu, 05 Nov 2026 15:46:25 +0000</pubDate>
      <link>https://dev.to/googlecloud/find-the-production-agent-failures-that-every-health-check-misses-39j8</link>
      <guid>https://dev.to/googlecloud/find-the-production-agent-failures-that-every-health-check-misses-39j8</guid>
      <description>&lt;p&gt;Your agent returns HTTP 200 and stays inside its latency budget, and no tool call raises an error. Yet it records seat 3A as confirmed without ever asking the seat-selection sub-agent whether 3A is free. Nothing in your dashboards turns red, because the only evidence of the mistake sits inside the conversation.&lt;/p&gt;

&lt;p&gt;AQuA (Ambient Quality Agent) is an open-source quality agent. It surfaces that kind of failure across many sessions and, when you ask, traces a failure to the line of code behind it. We built AQuA, and Dima Melnyk and I wrote the full &lt;a href="https://developers.googleblog.com/the-outer-loop-insights-first-an-ambient-quality-agent-that-diagnoses-your-production-agent/" rel="noopener noreferrer"&gt;Developers Blog post&lt;/a&gt; about it. This companion walks through the same sweep and shows how to run the dashboard on your laptop with no cloud project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is hard
&lt;/h2&gt;

&lt;p&gt;Getting an agent to the first 80%, where it handles the cases you anticipated, takes days with an eval dataset and a run, grade, fix and compare loop. Then you launch and the curve flattens. Usage shifts, and a model, harness or tool change can alter task success while health checks stay green.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx7gilarnyjws5liubh8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx7gilarnyjws5liubh8.webp" alt="A quality curve that climbs before launch, flattens with silent failures after it, and climbs again once AQuA runs." width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 1. Quality stalls after launch on failures that report 200 OK.&lt;/p&gt;

&lt;p&gt;Diagnosing a failure is harder still, because several layers look identical from the outside. The model may have dropped a constraint, the harness may have misrouted to a sub-agent, a tool contract may have rejected an undocumented value, or the instructions may lack a rule. A raw trajectory shows what happened but says little about why, and nobody can read failing trajectories next to the code that produced them by hand at production volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  What AQuA is
&lt;/h2&gt;

&lt;p&gt;AQuA is an &lt;a href="https://adk.dev" rel="noopener noreferrer"&gt;Agent Development Kit (ADK)&lt;/a&gt; agent that runs unattended beside your agent in your Google Cloud project, outside the request path. It sweeps production sessions from &lt;a href="https://docs.cloud.google.com/trace/docs" rel="noopener noreferrer"&gt;Cloud Trace&lt;/a&gt;, &lt;a href="https://docs.cloud.google.com/logging/docs" rel="noopener noreferrer"&gt;Cloud Logging&lt;/a&gt; or &lt;a href="https://docs.cloud.google.com/bigquery/docs" rel="noopener noreferrer"&gt;BigQuery&lt;/a&gt; on a schedule, after each deployment, or on demand. Each sweep has five stages:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9pe3jk0asa6bp4me5r5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9pe3jk0asa6bp4me5r5.webp" alt="Five boxes, Sample (random sessions), Review (one finding per failure), Cluster (same cause, grouped), Verify (opt-in, false alarms dropped) and Track (NEW or RECURRING), lead in turn to a larger box labelled Root cause at file:line." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 2. Each stage narrows the findings, and when you ask, AQuA adds a root cause at file:line.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Sample:&lt;/strong&gt; AQuA pulls a random sample of up to 1,000 recent sessions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review:&lt;/strong&gt; a review agent reads a shortened copy of each session, can query the full session with a &lt;code&gt;jq&lt;/code&gt; tool, and writes an &lt;code&gt;actual / expected&lt;/code&gt; finding for every failure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cluster:&lt;/strong&gt; AQuA groups findings that share a failure mechanism into candidate issues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify (opt-in):&lt;/strong&gt; with &lt;code&gt;agents-cli aqua attach --verification&lt;/code&gt;, a separate model checks each candidate against up to three transcripts, and &lt;code&gt;--enforce-verification&lt;/code&gt; withholds rejected candidates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Track:&lt;/strong&gt; AQuA matches the survivors against open insights as &lt;code&gt;NEW&lt;/code&gt;, &lt;code&gt;RECURRING&lt;/code&gt;, or &lt;code&gt;RESOLVED&lt;/code&gt; after 14 days unseen.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Root-cause analysis runs only on request, from the dashboard &lt;strong&gt;Chat&lt;/strong&gt; or &lt;code&gt;agents-cli aqua run&lt;/code&gt;. AQuA reads the failing trajectories against the source snapshot captured at deploy time and cites lines as &lt;code&gt;&amp;lt;path&amp;gt;:&amp;lt;start&amp;gt;-&amp;lt;end&amp;gt;&lt;/code&gt;. It proposes an edit and never applies it or opens a pull request. When the fault lies outside your code, it pins the failure to a step in the trajectory without citing a line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Walkthrough: a sweep on travel-concierge
&lt;/h2&gt;

&lt;p&gt;We pointed an earlier AQuA release, with verification on, at &lt;code&gt;travel-concierge&lt;/code&gt; from &lt;code&gt;google/adk-recipes&lt;/code&gt;, an agent that routes a traveler across sub-agents. We ran 32 replays of four scripted journeys, which produced 1,583 OpenTelemetry spans. Five of the 32 sessions passed, and 27 produced 42 findings, such as this one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;actual:   When the user selected outbound flight UA204 and requested seats 3A and 3B in the same
          turn, planning_agent saved those seat numbers directly to session state without calling
          flight_seat_selection_agent to check whether 3A and 3B were available.
expected: planning_agent should call flight_seat_selection_agent to verify seat availability and
          pricing before saving outbound or return seat numbers to session state.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clustering grouped the 42 findings into 9 candidates. The verifier rejected 3, including one that merged unrelated mismatches from two sub-agents. The 6 verified issues included skipped seat checks (15 sessions), a vegan profile lost between &lt;code&gt;inspiration_agent&lt;/code&gt; and &lt;code&gt;place_agent&lt;/code&gt; (7 sessions), and a &lt;code&gt;poi_agent&lt;/code&gt; declared with &lt;code&gt;tools=[]&lt;/code&gt; despite needing verified map data (5 sessions).&lt;/p&gt;

&lt;p&gt;In that release, choosing &lt;strong&gt;Investigate&lt;/strong&gt; on the top insight sent the diagnosis agent through the 33-file snapshot of the deployed revision (in v0.3.0 you ask &lt;strong&gt;Chat&lt;/strong&gt; for a root cause). It traced the seat bug to line 93 of &lt;code&gt;travel_concierge/sub_agents/planning/prompt.py&lt;/code&gt;, where the instructions call the seat sub-agent only when presenting a seat map. It traced the vegan bug to line 23 of &lt;code&gt;travel_concierge/sub_agents/inspiration/prompt.py&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdxcyveg90f8ia4fdcdrb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdxcyveg90f8ia4fdcdrb.webp" alt="On the left, a box reading 200 OK and seat 3A confirmed; an arrow leads to a box on the right reading planning/prompt.py:93 and 15 sessions never checked the seat, with 5/32 to 13/32 full passes below it." width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 3. The failure as your dashboard sees it and as AQuA sees it; the full-pass gain came from this fix and the vegan one.&lt;/p&gt;

&lt;p&gt;After the two one-line prompt fixes shipped as a second revision, we replayed the same 32 sessions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measure&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Seat check bypass&lt;/td&gt;
&lt;td&gt;15 sessions&lt;/td&gt;
&lt;td&gt;2 sessions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vegan profile dropped&lt;/td&gt;
&lt;td&gt;7 sessions&lt;/td&gt;
&lt;td&gt;0 sessions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;poi_agent&lt;/code&gt; empty tool list&lt;/td&gt;
&lt;td&gt;5 sessions&lt;/td&gt;
&lt;td&gt;untouched, still tracked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full-session passes&lt;/td&gt;
&lt;td&gt;5/32&lt;/td&gt;
&lt;td&gt;13/32&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Cost and limits
&lt;/h2&gt;

&lt;p&gt;In the earlier release, the 32-session sweep cost $3.76 at standard Gemini platform pricing, about $0.12 per session at about 50 spans each. A 96-session sweep of a single agent (5 to 6 spans per session) cost $0.70, and on-demand root-cause analysis cost $0.33 to $2.47 per insight. v0.3.0 reviews each session with an agent that can query the whole session, so its costs differ. An agent that diagnoses your agent will sometimes be wrong, so these limits and safeguards matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sampling is random.&lt;/strong&gt; A sweep reads up to 1,000 sessions, so a regression that breaks 1% of a critical workflow can slip through. You can store an SQL selector with &lt;code&gt;agents-cli aqua attach --selector-file&lt;/code&gt; to choose which conversations it reads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verification is opt-in and bounded.&lt;/strong&gt; It covers up to 50 clusters per run and three transcripts each. AQuA does not check every member session, so a cluster's trace count is only a rough priority.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Insights carry citations.&lt;/strong&gt; The insight schema has no confidence field. The server validates every cited &lt;code&gt;&amp;lt;path&amp;gt;:&amp;lt;start&amp;gt;-&amp;lt;end&amp;gt;&lt;/code&gt; range against the snapshot and rejects a reference to a nonexistent file or line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These numbers come from scripted journeys, not your traffic. Two one-line prompt edits moved full passes from 5/32 to 13/32, and no health check pointed at either line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The demo needs Python 3.11 to 3.13, &lt;code&gt;uv&lt;/code&gt; and &lt;code&gt;npm&lt;/code&gt;. It shows a generated month of data with no Google Cloud project, credentials or model calls. &lt;code&gt;make install&lt;/code&gt; creates the virtual environment, and &lt;code&gt;make demo&lt;/code&gt; builds the front end and then starts the dashboard:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/google/adk-recipes.git
&lt;span class="nb"&gt;cd &lt;/span&gt;adk-recipes/core/python/ambient-quality-agent
make &lt;span class="nb"&gt;install
&lt;/span&gt;make demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2rdutp1v1c7dtq4k3hi3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2rdutp1v1c7dtq4k3hi3.webp" alt="A terminal showing selected startup lines of make demo: 16 generated insights, the guided-tour link and the dashboard serving on port 8080." width="800" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 4. Selected lines of what &lt;code&gt;make demo&lt;/code&gt; printed at startup, read from its log with &lt;code&gt;sed&lt;/code&gt;: the generated data, the tour link and the dashboard on port 8080.&lt;/p&gt;

&lt;p&gt;Open &lt;code&gt;http://localhost:8080/?tour&lt;/code&gt; for a guided tour. The demo observes &lt;code&gt;travel_desk_agent&lt;/code&gt;, a synthetic travel-and-expense agent so its insights differ from the walkthrough. None has a root cause unless you start the demo with &lt;code&gt;MOCK_ROOT_CAUSE=0.5 make demo&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3zdw5615d1yzcokpp0a2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3zdw5615d1yzcokpp0a2.webp" alt="The top of the AQuA insights page, listing three recurring failures of the demo agent with their occurrence and trajectory counts." width="652" height="554"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Figure 5. The insights page on demo data: 16 insights affecting 3,742 trajectories, ranked by impact.&lt;/p&gt;

&lt;p&gt;To attach AQuA to your own &lt;a href="https://google.github.io/agents-cli/" rel="noopener noreferrer"&gt;Agents CLI&lt;/a&gt; project, add the extension, which pins v0.3.0 here. Agents CLI extensions are experimental, and AQuA needs &lt;code&gt;agents-cli&lt;/code&gt; 1.10 or later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;agents-cli extension add google/adk-recipes#core/python/ambient-quality-agent &lt;span class="nt"&gt;--ref&lt;/span&gt; ambient-quality-agent/v0.3.0
agents-cli &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Deployment needs a Google Cloud project in an organization, because the dashboard sits behind &lt;a href="https://docs.cloud.google.com/iap/docs" rel="noopener noreferrer"&gt;Identity-Aware Proxy&lt;/a&gt; (IAP). Without an organization, set &lt;code&gt;TF_VAR_ui_iap_enabled=false&lt;/code&gt; and open it with &lt;code&gt;agents-cli aqua ui-proxy&lt;/code&gt;. The &lt;a href="https://github.com/google/adk-recipes/tree/main/core/python/ambient-quality-agent" rel="noopener noreferrer"&gt;AQuA README&lt;/a&gt; covers deployment and the &lt;code&gt;agents-cli aqua&lt;/code&gt; commands. The &lt;a href="https://developers.googleblog.com/the-outer-loop-insights-first-an-ambient-quality-agent-that-diagnoses-your-production-agent/" rel="noopener noreferrer"&gt;Developers Blog post&lt;/a&gt; has the full design discussion and the team credits.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>debugging</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
