model,app: pin antigravity to Gemini 3.1 Pro (High); add --antigravity-model - #7
Merged
Merged
Conversation
…y-model agy is multi-model and its session default is user/config-dependent (often Gemini 3.5 Flash), which made antigravity reviews non-deterministic across machines. Pin a model via --model so reviews are reproducible and the third slot stays a distinct family (Google) from codex (GPT) and claude (Claude). - antigravitycli: pin DefaultModel = "Gemini 3.1 Pro (High)" (Pro-tier reasoning for correctness review); add SetModel override (empty = no-op) and the model.ModelSetter capability + guard. - app: --antigravity-model flag and $DIFFSMITH_ANTIGRAVITY_MODEL env, applied via applyAntigravityModel (flag wins > env > pinned default), wired on every entry point alongside --input-budget. - changelog: v0.3.1.
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.
Why
agyis multi-model (Gemini / Claude / GPT-OSS variants), and its session default is user/config-dependent — on this machine it resolves toGemini 3.5 Flash. That made antigravity reviews non-deterministic across machines and let a light model fill the third slot. Pinning a model restores reproducibility and keeps antigravity a distinct family (Google) from codex (GPT) and claude (Claude).What
Gemini 3.1 Pro (High)by default (DefaultModel) via--modelin the agy invocation. Pro-tier reasoning suits correctness review and follows the prompt-only JSON contract more reliably than Flash.SetModel(name)override (empty = no-op, mirroringSetInputBudget) + a newmodel.ModelSettercapability interface and compile-time guard.--antigravity-modelflag and$DIFFSMITH_ANTIGRAVITY_MODELenv, applied viaapplyAntigravityModel(flag wins → env → pinned default), wired on every entry point alongside--input-budget. Pick e.g.Claude Opus 4.6 (Thinking)to make antigravity a stronger synthesis lead.Testing
SetModeloverride, empty-is-no-op,ModelSettercapability.-tags=integration) re-run with real agy: confirmed it now runs--model "Gemini 3.1 Pro (High)"and self-IDs as Gemini 3.1 Pro (vs Flash before).Notes
--modelstring format ("Gemini 3.1 Pro (High)", exactly asagy modelslists it) was empirically verified before coding — agy accepts it and switches.docs/updates are local-only per the repo's.git/info/exclude;doc.go+CHANGELOG.mdare in this diff.