How joshluxton/agents-cli works
agents-cli is a developer-facing CLI and skills suite for building, running, evaluating, deploying, and registering ADK agents on Google Cloud. The principal workflow starts with a developer or coding assistant invoking the CLI, scaffolds or enhances an agent project, runs it locally, evaluates it, and optionally deploys and publishes it. The map includes project configuration, authentication, subprocess/tool handling, and command dispatch as shared internal layers. Several command implementations are documented but unsampled; their feature coverage follows the README, while uncertain internal call edges are omitted.
Main entry points: main.py Command dispatcher · cmd_deploy.py Agent deployment · cmd_run.py Local agent run · create.py Project scaffolding
Components 29
CLI and skills
- Command dispatcher
src/google/agents/cli/main.py - Setup and skills
src/google/agents/cli/setup/cmd_setup.py - Skill bundle
src/google/agents/cli/skills/_bundle.py - CLI extensions
src/google/agents/cli/extension/_loader.py
Agent development
- Project scaffolding
src/google/agents/cli/scaffold/commands/create.py - Template generation
src/google/agents/cli/scaffold/utils/template.py - Local agent run
src/google/agents/cli/run/cmd_run.py - Local server
src/google/agents/cli/run/_local_server.py - ADK HTTP client
src/google/agents/cli/_adk_client.py
Evaluation
- Evaluation commands
src/google/agents/cli/eval/cmd_run.py - Generate eval cases
src/google/agents/cli/eval/cmd_generate.py - Analyze and compare
src/google/agents/cli/eval/cmd_analyze.py
Cloud lifecycle
- Agent deployment
src/google/agents/cli/deploy/cmd_deploy.py - Agent Runtime
src/google/agents/cli/deploy/agent_runtime.py - Enterprise publishing
src/google/agents/cli/publish/cmd_publish.py - Infrastructure and CI/CD
src/google/agents/cli/infra/cmd_infra.py - Data ingestion
src/google/agents/cli/data/cmd_data_ingestion.py
Shared services
- Project configuration
src/google/agents/cli/_project.py - Authentication
src/google/agents/cli/auth.py - Cloud project lookup
src/google/agents/cli/_gcp_project.py - Remote agent access
src/google/agents/cli/_remote.py - Process runner
src/google/agents/cli/_runner.py - Tool resolution
src/google/agents/cli/_tools.py - CLI output
src/google/agents/cli/_output.py
Other components
- Developer
- Coding assistant
- Google Cloud
- ADK agent
- Gemini Enterprise
Connections 34
- Developer → Command dispatcher: invokes
- Coding assistant → Command dispatcher: invokes
- Command dispatcher → Setup and skills: dispatches
- Command dispatcher → Project scaffolding: dispatches
- Command dispatcher → Local agent run: dispatches
- Command dispatcher → Evaluation commands: dispatches
- Command dispatcher → Agent deployment: dispatches
- Command dispatcher → Enterprise publishing: dispatches
- Command dispatcher → Infrastructure and CI/CD: dispatches
- Command dispatcher → CLI extensions: loads extensions
src/google/agents/cli/main.py - Setup and skills → Skill bundle: installs skills
- Project scaffolding → Template generation: generates project
src/google/agents/cli/scaffold/commands/create.py - Project scaffolding → Project configuration: reads project
src/google/agents/cli/scaffold/commands/create.py - Local agent run → Project configuration: reads project
src/google/agents/cli/run/cmd_run.py - Local agent run → Local server: starts server
src/google/agents/cli/run/cmd_run.py - Local agent run → ADK HTTP client: uses client
src/google/agents/cli/run/cmd_run.py - ADK HTTP client → ADK agent: streams requests
src/google/agents/cli/_adk_client.py - Generate eval cases → Local server: uses server
src/google/agents/cli/eval/cmd_generate.py - Evaluation commands → Generate eval cases: generates traces
- Evaluation commands → Analyze and compare: analyzes results
- Agent deployment → Agent Runtime: deploys to
src/google/agents/cli/deploy/cmd_deploy.py - Agent deployment → Project configuration: reads project
src/google/agents/cli/deploy/cmd_deploy.py - Agent deployment → Authentication: uses credentials
src/google/agents/cli/deploy/cmd_deploy.py - Agent deployment → Cloud project lookup: gets project
src/google/agents/cli/deploy/cmd_deploy.py - Agent deployment → Google Cloud: deploys agent
- Infrastructure and CI/CD → Google Cloud: provisions resources
- Enterprise publishing → Gemini Enterprise: registers agent
- Enterprise publishing → Authentication: uses credentials
src/google/agents/cli/publish/cmd_publish.py - Enterprise publishing → Cloud project lookup: gets project
src/google/agents/cli/publish/cmd_publish.py - Local agent run → Remote agent access: uses remote access
src/google/agents/cli/run/cmd_run.py - Remote agent access → Authentication: uses credentials
src/google/agents/cli/_remote.py - Process runner → Tool resolution: resolves executables
src/google/agents/cli/_runner.py - Project scaffolding → Process runner: runs commands
- Command dispatcher → CLI output: formats output
src/google/agents/cli/main.py