Is this Pipeline Valid through TOS?pls help

Hi Antigravity Team,

I’m working on a local animation generation pipeline and would appreciate some official guidance or clarification regarding running the `agy` CLI from an external Python orchestration script.

What I’m Doing:

To process multiple video segments in batch, I wrote a lightweight native Python runner (`subprocess.Popen` / `ThreadPoolExecutor`) that calls the official CLI binary directly:

- Runs headless in print / Q&A mode: `agy -p “”`

- Uses `–model gemini-3.8-flash-high` with high reasoning effort.

- Restricts local worker concurrency (e.g., maximum 3 to 5 parallel processes).

- Uses thread-safe launch staggering (5–6 second hold between subprocess launches) and exponential backoff to respect gateway rate limits.

- Captures standard output stream (`stdout`) once each segment finishes, saves the code locally, and compiles it with downstream Node.js/HTML scripts.

My Question:

Is driving the official `agy` CLI headlessly through a native Python batch runner like this an accepted / supported workflow for batch automation? Are there any specific CLI flags, environment variables, or concurrency recommendations from the team to ensure we stay fully aligned with best practices?

Hi @Rishu_Yt,

Thanks for checking before scaling up your pipeline. Here is how current policies and CLI guidance apply:

  • Direct scripting vs. parallel batch runs: Running the unmodified agy -p binary from your own standalone Python script on tasks you write and trigger yourself is supported (Headless mode, FAQ), with no third-party coding agent orchestration, credential extraction, or account rotation. However, consumer plans enforce automated rate, capacity, and anti-abuse protections (Plans, Terms), so avoid 3–5 concurrent workers or sustained unattended loops on consumer sign-in—use a Gemini API key or Pay As You Go instead.
  • Recommended CLI settings: Update to Antigravity CLI v1.5.13 (Releases), pass --output-format json with --print-timeout and scoped permissions.allow rules (Permissions), set AGY_CLI_DISABLE_AUTO_UPDATE=true to prevent updater locks (Troubleshooting), and keep Use AI Credits off on consumer sign-in to avoid overages (AI credits).

Let us know if you have questions about API key setup.