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.
- Omni Flash prompts in English, captions in your language
Google says Omni fully supports English; other languages are unevaluated. Prompt in English, then add captions in your language with Sume's captions API.
- Gemini Omni Flash resolution: "4K" or "4k" on Sume
Sume accepts 4k as an alias of 4K for Gemini Omni Flash 1.1 and translates it to the lowercase token fal expects. Billed rate and Google's 4K caveat.
Written by Sume