you can use agy in batch and/or JSON mode - it's what I do for few of my projects. You can also use "agy acp" to get ACP server now (used to be a separate binary)
The requirement is that you use antigravity harness to access subscription-based accounts, not that you can't wrap it
That violates the ToS for both, and they absolutely will ban you (there's tons of examples of people complaining about their cool tool to get Claude Code shimmed over an API not working/getting them banned, same with OAI).
I never had any issue using Claude for code review in Codex and vice versa.
I remember that half a year ago, Anthropic planned a change to make claude -p draw from a separate usage pool at API pricing, but after feedback that change was scrapped.
What people were banned for is using the subscription authentication in a third party tool, using many accounts, or reselling.
Invoking the official CLI from another agent for legitimate personal use during development should not be a problem.
That being said, you can do whatever you want with API tokens.