# AI use cases for Agents CLI (google/agents-cli)

Repo: [google/agents-cli](https://github.com/google/agents-cli) | Use cases: 3 | Page: https://dedupedai.com/use-cases/google-agents-cli/

agents-cli is Google's CLI and set of agent skills that teach any coding assistant to create, evaluate, deploy and publish agents built with ADK. It installs skills into tools like Claude Code, Codex and Antigravity CLI, and provides commands for scaffolding, eval runs and comparisons, prompt optimization, and deployment to Google Cloud.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Have your coding assistant scaffold an ADK agent: https://dedupedai.com/use-cases/google-agents-cli/scaffold-an-adk-agent-from-your-coding-assistant-with-agents/
- Evaluate an agent and auto-tune its prompts: https://dedupedai.com/use-cases/google-agents-cli/evaluate-and-tune-an-agent-with-agents-cli/
- Deploy an agent to Google Cloud with CI/CD: https://dedupedai.com/use-cases/google-agents-cli/deploy-an-agent-to-google-cloud-with-agents-cli/

## How to have your coding assistant scaffold an ADK agent with Agents CLI

Repo: [google/agents-cli](https://github.com/google/agents-cli) | Difficulty: Beginner | Time: 30 minutes | Basis: From the README

Install the CLI and skills, then ask your coding agent to build a new agent project from the adk_python template.

**Who it is for:** A developer starting a first agent on Google's stack.

**The problem:** ADK has a lot of surface area; coding assistants guess at its APIs without guidance.

**The outcome:** A new agent project created with defaults that you can run with a single prompt.

### Steps

1. Install everything with `uvx google-agents-cli setup`, or just the skills with `npx skills add google/agents-cli`
2. Open Claude Code, Codex, Antigravity CLI or another coding agent
3. Ask it to build an agent, for example the README's caveman style text compressor
4. Test it with `agents-cli run "prompt"` and check code with `agents-cli lint`

### Prompt to paste into your agent

```text
Using google/agents-cli, run `uvx google-agents-cli setup`, then use agents-cli to build an agent that <what my agent should do> and test it with `agents-cli run "prompt"`.
```

### Caveat

The full step by step walkthrough is in the linked tutorial, not in the README.

Risk, privacy: The CLI sends telemetry by default; set `export AGENTS_CLI_TELEMETRY=0` or `export DO_NOT_TRACK=1` to opt out.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/google-agents-cli/scaffold-an-adk-agent-from-your-coding-assistant-with-agents/

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

Repo: [google/agents-cli](https://github.com/google/agents-cli) | Difficulty: Intermediate | Time: 1 hour | Basis: From the README

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

**Who it is for:** A developer who needs evidence that an agent change made it better, not worse.

**The problem:** Prompt tweaks without evals regress quietly.

**The outcome:** Graded eval results, a comparison between two runs, and tuned prompts.

### 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 to paste into your agent

```text
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`.

Risk, 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.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/google-agents-cli/evaluate-and-tune-an-agent-with-agents-cli/

## How to deploy an agent to Google Cloud with CI/CD with Agents CLI

Repo: [google/agents-cli](https://github.com/google/agents-cli) | Difficulty: Advanced | Time: 2 hours | Basis: From the README

Log in, add deployment to the project, provision infrastructure and ship it, then register it with Gemini.

**Who it is for:** A developer moving a working agent from laptop to production.

**The problem:** Wiring Cloud Run or Agent Runtime, secrets and pipelines by hand is slow and error prone.

**The outcome:** An agent deployed to Google Cloud with a staging and prod pipeline.

### Steps

1. Authenticate with `agents-cli login` and confirm with `agents-cli login --status`
2. Add deployment or CI/CD to an existing project with `agents-cli scaffold enhance`
3. Set up the pipeline and staging and prod infrastructure with `agents-cli infra cicd`
4. Ship it with `agents-cli deploy`, and register it with `agents-cli publish gemini` if you want it in Gemini

### Prompt to paste into your agent

```text
For my google/agents-cli project, check `agents-cli login --status`, run `agents-cli scaffold enhance` and `agents-cli infra cicd`, then `agents-cli deploy`, and report the deployed endpoint.
```

### Caveat

Deployment targets named in the README are Agent Runtime in Gemini platform, Cloud Run and GKE.

Risk, cost: Deploying provisions billable Google Cloud resources; check what infra cicd creates and tear down what you do not need.

Risk, credentials: Logging in grants the CLI access to your Google Cloud project.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/google-agents-cli/deploy-an-agent-to-google-cloud-with-agents-cli/
