WRI-534 Add Antigravity CLI worker support#76
Open
fazpu wants to merge 1 commit into
Open
Conversation
fazpu
commented
May 28, 2026
fazpu
left a comment
Member
Author
There was a problem hiding this comment.
Self-review completed. I rechecked the command construction, generated config round-trip behavior, resume metadata, docs, and validation notes. No blocking issues found.
On --print-timeout: I think it should stay in the default Antigravity template. agy --help shows print mode has a built-in 5-minute timeout; the other worker CLIs do not expose an equivalent default timeout in their harness invocation path. Team-harness workers are expected to run longer than 5 minutes for normal delegated implementation/research tasks, so --print-timeout 60m prevents Antigravity from ending the worker before team-harness can manage it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Google Antigravity CLI (
agy) as a first-class built-in team-harness worker type. The newantigravitytemplate runs workers throughagy --printso they can execute as non-interactive subprocesses, matching the official Antigravity CLI positioning as a terminal-first agent surface and the localagy --helpcommand surface.Context
Linear: WRI-534 (
TH - add Antigravity CLI support)Docs reviewed:
I also verified the installed local CLI (
agy --version->1.0.0) andagy --help, which exposes:--print/--prompt/-pfor non-interactive single-prompt execution--dangerously-skip-permissionsfor auto-approving tool permissions--print-timeoutfor print-mode wait control--conversation <id>for explicit conversation resumemodel_flag = falseImplementation
antigravitytoDEFAULT_AGENT_TEMPLATESwith:command = ["agy"]shared_flags = ["--dangerously-skip-permissions", "--print", "--print-timeout", "60m"]resume_flags = ["--conversation", "{session_id}"]model_flag = Nonebecause the CLI does not expose a model override flag--dangerously-skip-permissionsand--printflagsth initdocuments the new worker and includesantigravityin the commented allowlist.resumemode when a caller already has a conversation id. Automatic capture remains unset because print mode does not emit stream-json session events.Validation
Passed:
uv run pytest src/tests/test_registry.py src/tests/test_config.py src/tests/test_worker_sessions.py src/tests/test_agent_tools.py uv run pytest -k 'not test_stream_token_bold_rendering and not test_stream_token_heading_rendering' uv run ruff check src uv run ruff format --check src uv run pyright git diff --checkNotes:
uv run pytestwithout exclusions currently fails on two unrelated console ANSI-style assertions:test_stream_token_bold_renderingandtest_stream_token_heading_rendering. The output text is rendered, but the expected bold ANSI escape sequence is absent in this local environment.uv run ruff check .also reports issues in pre-existing untracked.agents/skills/skill-creator/...files. This PR leaves those untracked files untouched and validates tracked source withruff check src.User-facing behavior
After this change, users with Antigravity CLI installed and authenticated can run workers with:
or include it in config allowlists as
antigravity.Model overrides passed through
spawn_agent(model=...)are intentionally ignored for this worker until Antigravity CLI exposes a stable model flag.