Skip to content

feat: rename agy provider to antigravity with gemini model support - #193

Merged
l50 merged 1 commit into
mainfrom
feat/antigravity-provider
Aug 15, 2026
Merged

feat: rename agy provider to antigravity with gemini model support#193
l50 merged 1 commit into
mainfrom
feat/antigravity-provider

Conversation

@l50

@l50 l50 commented Aug 15, 2026

Copy link
Copy Markdown
Member

Key Changes:

  • Renamed the agy squad provider to antigravity throughout the codebase, keeping agy as a legacy alias resolved in runner.normalizeProvider
  • Added Gemini model borrowing for the Antigravity CLI, mapping bare Gemini names onto the CLI's tiered model IDs (e.g. gemini-3.1-progemini-3.1-pro-low)
  • Made read-only mode fail loudly for Antigravity since its print mode auto-approves permissions and its plan mode does not block writes
  • Pinned Antigravity's working directory via --add-dir and an in-prompt note so the agent operates in squad's target directory instead of its own backend workspace

Added:

  • EnforcesReadOnly field on agenticcli.Spec so providers that cannot honor read-only mode are rejected before the CLI is even looked up - agenticcli/agenticcli.go
  • NormalizeAntigravityModel helper that appends the CLI's cheapest tier to bare Gemini names and strips API-only -preview/-latest suffixes, with manifestModelFor factored out for reuse across borrowing branches - agenticcli/agenticcli.go, runner/run.go
  • workDirNote and absWorkDir helpers that pin the Antigravity agent to squad's working directory in both the prompt and the --add-dir flag, plus surfacing the CLI's error field on failure envelopes - agenticcli/agenticcli.go
  • Test coverage for read-only rejection, Antigravity model normalization, Gemini-entry borrowing with tier normalization, and the agy legacy alias resolving to antigravity - agenticcli/agenticcli_test.go, runner/run_test.go, runner/model_provider_test.go

Changed:

  • Provider identity migrated from agy to antigravity across specs, flag help, docs, metrics, agentic-CLI dispatch, and signoff constraints; agy continues to resolve via normalizeProvider for existing manifests and configs - agenticcli/, cmd/squad/run.go, metrics/, runner/, docs/configuration.md, README.md
  • applyAgenticCLIModel extended so Antigravity borrows the manifest's gemini entry (mapped through NormalizeAntigravityModel) mirroring how claude-code borrows the anthropic entry, keeping agent tuning calibrated to the pinned model - runner/run.go
  • antigravityOutput envelope now carries an error field and surfaces it in failure messages when response is empty (e.g. invalid --model selection) - agenticcli/agenticcli.go
  • Install hint updated to point at https://antigravity.google and documentation reworded to describe the CLI as Google Antigravity throughout - agenticcli/agenticcli.go, docs/configuration.md, README.md

Removed:

  • --mode plan flag from the Antigravity invocation, since it does not actually block writes - agenticcli/agenticcli.go
  • References to the CLI as "Augment's agy" from package docs, configuration guide, and README in favor of the Google Antigravity branding - agenticcli/agenticcli.go, docs/configuration.md, README.md

**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)
@github-actions github-actions Bot added area/docs Changes made to project documentation area/go Changes made to Go source code (cmd/, config/, logging/) labels Aug 15, 2026
@l50
l50 merged commit 8f0c755 into main Aug 15, 2026
4 checks passed
@l50
l50 deleted the feat/antigravity-provider branch August 15, 2026 23:44
@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agenticcli/agenticcli.go 95.12% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Changes made to project documentation area/go Changes made to Go source code (cmd/, config/, logging/)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant