feat: rename agy provider to antigravity with gemini model support - #193
Merged
Conversation
**Added:** - Antigravity model normalization mapping Gemini names onto tiered CLI IDs (`gemini-3.1-pro` → `gemini-3.1-pro-low`) with `-preview`/`-latest` suffix stripping - agenticcli/agenticcli.go - Working directory pinning via `--add-dir` and a prompt-injected `cd` note, since Antigravity's backend ignores the child process cwd - agenticcli/agenticcli.go - `EnforcesReadOnly` spec field with fail-loud rejection when readonly is requested against a CLI that can't enforce it - Antigravity failure-detail extraction from the `error` JSON field (e.g. invalid `--model` selection) - Manifest gemini-entry borrowing for the antigravity CLI (parallel to claude-code borrowing anthropic), with `manifestModelFor` helper - runner/run.go - Tests covering model normalization, readonly rejection, error-field parsing, workdir rooting, and the `agy`→`antigravity` alias resolution **Changed:** - Renamed the `agy` provider to `antigravity` throughout specs, docs, tests, and supported-provider lists; `agy` remains a legacy alias via `normalizeProvider` - runner/model.go, metrics/apikey.go, metrics/metrics.go - Updated install hint and package doc to reference Google Antigravity instead of Augment - Renamed `agyPrintTimeout` → `antigravityPrintTimeout` and `agyOutput` → `antigravityOutput` - Documented antigravity's readonly rejection, workdir rooting behavior, and lack of `--interactive` support - docs/configuration.md - README and `--provider` flag help updated to list `antigravity` in place of `agy` **Removed:** - `--mode plan` mapping for readonly on the antigravity CLI, since plan mode does not actually block writes (verified against agy 1.1.13)
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Key Changes:
agysquad provider toantigravitythroughout the codebase, keepingagyas a legacy alias resolved inrunner.normalizeProvidergemini-3.1-pro→gemini-3.1-pro-low)--add-dirand an in-prompt note so the agent operates in squad's target directory instead of its own backend workspaceAdded:
EnforcesReadOnlyfield onagenticcli.Specso providers that cannot honor read-only mode are rejected before the CLI is even looked up -agenticcli/agenticcli.goNormalizeAntigravityModelhelper that appends the CLI's cheapest tier to bare Gemini names and strips API-only-preview/-latestsuffixes, withmanifestModelForfactored out for reuse across borrowing branches -agenticcli/agenticcli.go,runner/run.goworkDirNoteandabsWorkDirhelpers that pin the Antigravity agent to squad's working directory in both the prompt and the--add-dirflag, plus surfacing the CLI'serrorfield on failure envelopes -agenticcli/agenticcli.goagylegacy alias resolving toantigravity-agenticcli/agenticcli_test.go,runner/run_test.go,runner/model_provider_test.goChanged:
agytoantigravityacross specs, flag help, docs, metrics, agentic-CLI dispatch, and signoff constraints;agycontinues to resolve vianormalizeProviderfor existing manifests and configs -agenticcli/,cmd/squad/run.go,metrics/,runner/,docs/configuration.md,README.mdapplyAgenticCLIModelextended so Antigravity borrows the manifest'sgeminientry (mapped throughNormalizeAntigravityModel) mirroring howclaude-codeborrows theanthropicentry, keeping agent tuning calibrated to the pinned model -runner/run.goantigravityOutputenvelope now carries anerrorfield and surfaces it in failure messages whenresponseis empty (e.g. invalid--modelselection) -agenticcli/agenticcli.gohttps://antigravity.googleand documentation reworded to describe the CLI as Google Antigravity throughout -agenticcli/agenticcli.go,docs/configuration.md,README.mdRemoved:
--mode planflag from the Antigravity invocation, since it does not actually block writes -agenticcli/agenticcli.goagy" from package docs, configuration guide, and README in favor of the Google Antigravity branding -agenticcli/agenticcli.go,docs/configuration.md,README.md