Skip to content

feat(antigravity): add Gemini 4 Carbon and Hydrogen models - #501

Merged
shuv1337 merged 1 commit into
integration-v2from
gemini-4-models
Nov 17, 2026
Merged

shuv1337 merged 1 commit into
integration-v2from
gemini-4-models

Conversation

@shuv1337

Copy link
Copy Markdown
Owner

Summary

Adds the Gemini 4 models Google now offers in Antigravity to the bundled Google AI Pro / Antigravity plugin:

  • Gemini 4 Carbon: gemini-4-carbon-high / -medium / -low
  • Gemini 4 Hydrogen: gemini-4-hydrogen-xhigh / -high / -medium / -low
  • Gemini 4 Argon is unchanged.

The model IDs and model_enum values come from a live v1internal:fetchAvailableModels response for an entitled account (Carbon M427/M437/M438, Hydrogen M528/M525/M526/M527), and they match the IDs inside the agy 1.5.10 binary. Accounts without access get gemini-4-carbon-disabled / gemini-4-hydrogen-disabled entries; the existing prefix suppression already hides every matching shipped variant for them.

No feature flag. This only adds catalog entries to a plugin that already ships.

Verification

  • packages/antigravity-plugin: bun test (80 pass), bun run typecheck
  • packages/core: provider-antigravity.test.ts and session-antigravity-error.test.ts (14 pass)
  • Pre-push bun run check passed
  • Live smoke test through wrapGenerateRequest + applyRequestHeaders on an entitled account: gemini-4-hydrogen-low, gemini-4-hydrogen-xhigh and gemini-4-carbon-low each returned 200 with the expected reply

Visual

<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none" stroke="currentColor" font-family="ui-sans-serif,system-ui" font-size="10">
<style>.r{opacity:0;animation:a 4.5s infinite}.r2{animation-delay:.5s}.r3{animation-delay:1s}@keyframes a{0%,8%{opacity:0;transform:translateX(-6px)}18%,85%{opacity:1;transform:none}100%{opacity:0}}@media (prefers-reduced-motion:reduce){.r{animation:none;opacity:1}}</style>
<rect x="8" y="6" width="224" height="60" rx="8" opacity=".35"/>
<g class="r"><circle cx="22" cy="21" r="3" fill="currentColor" stroke="none"/><text x="32" y="24" fill="currentColor" stroke="none">Gemini 4 Carbon</text><text x="176" y="24" fill="currentColor" stroke="none" opacity=".5">new</text></g>
<g class="r r2"><circle cx="22" cy="36" r="3" fill="currentColor" stroke="none" opacity=".5"/><text x="32" y="39" fill="currentColor" stroke="none" opacity=".6">Gemini 4 Argon</text></g>
<g class="r r3"><circle cx="22" cy="51" r="3" fill="currentColor" stroke="none"/><text x="32" y="54" fill="currentColor" stroke="none">Gemini 4 Hydrogen</text><text x="176" y="54" fill="currentColor" stroke="none" opacity=".5">new</text></g>
</svg>

@shuv1337
shuv1337 merged commit 72b3987 into integration-v2 Nov 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant