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?