Gemini CLI v0.63 plan execution in CI: gate paid Sume calls first
Gemini CLI preview v0.63.0 adds autonomous plan execution in non-interactive mode. Before unattended runs, gate Sume paid tools with dry_run and max_spend_usd.

When a CLI agent can execute a plan on its own with nobody watching, the safeguards have to live in the tool arguments and the credential. Gemini CLI's preview v0.63.0 adds autonomous plan execution in non-interactive mode, so a CI job that renders marketing assets should combine a read-only first pass with dry_run and max_spend_usd on the paid step.
The release page lists stable v0.62.0, preview v0.63.0 and a nightly v0.64.0 dated 2026-10-03.
Three levels of the Gemini CLI release channels
Because plan execution is in the preview channel, treat it as a build you test, not one you hand a production key.
| Channel | Version | Relevant change |
|---|---|---|
| Stable | v0.62.0 | Current stable build. |
| Preview | v0.63.0 | Autonomous plan execution in non-interactive mode. |
| Nightly | v0.64.0 (2026-10-03) | Next build; not described further on the page. |
Use scope as the first gate
Sume's hosted MCP separates visibility by credential. An OAuth session with mcp:read sees only read-only tools. Mutating and paid tools such as generate_image are hidden until the session has mcp:write, and a call to one returns insufficient_scope. An API key sees the full set.
For a CI job, that suggests two stages. Plan with a read-only credential, review the plan, and only then run a stage that holds a write-capable credential.
Use arguments as the second gate
Paid and write tools require an idempotency_key. The optional fields do the safety work.
dry_run=truepreviews admission and cost without submitting a job.max_spend_usdis enforced only when you provide it, so provide it.generation_admission_previewreports balance and queue behaviour before a burst.- A stable key per planned step means a retried step returns the original job instead of billing twice.
A plan-step contract
Give the agent a plan format where each paid step carries its own cap and key. A step might read: tool generate_image, key launch-hero-001, dry_run true, max_spend_usd 2. The first run previews. A second run, approved by a person or a policy, repeats the step with dry_run false.
The docs say ordinary single creates do not need admission theater, but expensive bursts do. A plan that fans out many calls is a burst.
After the plan runs
Plan execution ends when the agent stops, not when the render finishes. Jobs are durable, so have the pipeline record job ids and read results later.
- Use
jobs_waitwith batches of up to 20 ids; each call holds at most 55 seconds. - On
wait_slice_expired, repeat the wait with the same ids rather than resubmitting. - Read
jobs_resultfor completed jobs and keep themedia.sume.comURLs. - Fail the CI step if a job is
failedorcanceled, and log the request id.
Sources
Related posts
More in Developers
- Headless Gemini CLI and MCP auth: use a Sume API key
A headless Gemini CLI run cannot finish a browser consent. Connect to hosted Sume MCP with an API key header instead, and keep paid calls bounded.
- Gemini CLI untrusted tool output provenance: Sume results as data
Gemini CLI 0.60 and 0.61 release notes name fixes for untrusted tool output and indirect prompt injection. Keep Sume write tools behind scope and caps.
- gemini-omni-1.1-flash vs gemini-omni-flash-1.1: the Sume id map
Google names it gemini-omni-1.1-flash; Sume's id is gemini-omni-flash-1.1. A small Python map from Google ids, Veo 3.1 previews included, that fails loudly.
- Gemini Omni API first-day checklist: billing, $10 window, $250 cap
Before your first Omni call on the Gemini API: link billing for Tier 1, know the $10 window and $250 cap, use the right model id, and test a 3-second 360p clip.
Written by Sume