Skip to content

feat(antigravity-acp): add gemini-4-hydrogen and gemini-4-neon to catalog - #9082

Closed
EnesKartal wants to merge 1 commit into
lidge-jun:devfrom
EnesKartal:fix/agy-acp-gemini-4-models
Closed

EnesKartal wants to merge 1 commit into
lidge-jun:devfrom
EnesKartal:fix/agy-acp-gemini-4-models

Conversation

@EnesKartal

@EnesKartal EnesKartal commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #9037.

The antigravity-acp static catalog (AGY_ACP_SEED_MODELS and modelContextWindows) omitted gemini-4-hydrogen and gemini-4-neon even though agy acp offers them.

Changes

  • Add "gemini-4-hydrogen" and "gemini-4-neon" to AGY_ACP_SEED_MODELS in src/providers/registry/agy-acp-models.ts.
  • Add 1_048_576 context window entries for both models in src/providers/registry/entries-extended.ts.
  • Add assertions in tests/config/agy-acp-config.test.ts.

Review readiness checklist

This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:

  • Required local validation passed; commands, results, and any full-suite exception are documented.

  • I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

Summary by CodeRabbit

  • New Features
    • Added Gemini 4 Hydrogen and Gemini 4 Neon to the available Antigravity ACP models.
    • Both models support a context window of up to 1,048,576 tokens, matching the existing long-context options. Users can now select either model for supported workflows that benefit from processing larger amounts of context.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

⏳ DRAFT

  • review readiness checklist open (0/4 boxes ticked).

What to do

  • Tick all four boxes in the PR description once you're done (currently 0/4).

Review readiness checklist

  • ⬜ Required local validation passed; commands, results, and any full-suite exception are documented.
  • ⬜ I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • ⬜ I resolved all correct Codex and CodeRabbit findings.
  • ⬜ My PR is ready for review.

0/4 boxes ticked.

This PR stays in draft until every box above is ticked.

Hygiene

✅ Deterministic PR hygiene checks passed.

@github-actions
github-actions Bot marked this pull request as draft November 23, 2026 16:44
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Antigravity ACP seed catalog and context-window map now include gemini-4-hydrogen and gemini-4-neon, each with a 1,048,576-token context window. Registry tests assert both entries.

Changes: Antigravity ACP catalog

Layer / File(s) Summary
Add models and verify registry metadata
src/providers/registry/agy-acp-models.ts, src/providers/registry/entries-extended.ts, tests/config/agy-acp-config.test.ts
The seed catalog adds gemini-4-hydrogen and gemini-4-neon. The context-window map assigns each 1,048,576 tokens. Registry tests assert both models and their context windows.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

Merge Risk: Minimal · up to 2699d

This adds the two missing Gemini models to the Antigravity ACP catalog with their context windows, and the tests cover both. No remaining merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the feature (adding gemini-4-hydrogen and gemini-4-neon to the antigravity-acp catalog). That matches the main change in the changeset, which adds both models to the seed list, the con…
Linked Issues check Passed Directly linked issue #9037 requires that gemini-4-hydrogen and gemini-4-neon appear in the antigravity-acp catalog without manual configuration. The issue offers the static seed plus `modelCont…
Out of Scope Changes check Passed All changes support the objective in #9037. The seed constant change in agy-acp-models.ts adds only the two named models. The entries-extended.ts change adds context-window metadata for the same t…
Full details: Title check

Explanation

The title names the feature (adding gemini-4-hydrogen and gemini-4-neon to the antigravity-acp catalog). That matches the main change in the changeset, which adds both models to the seed list, the context-window registry entries, and the registry test. The title is specific and follows the conventional-commit style.

Full details: Linked Issues check

Explanation

Directly linked issue #9037 requires that gemini-4-hydrogen and gemini-4-neon appear in the antigravity-acp catalog without manual configuration. The issue offers the static seed plus modelContextWindows entries as a minimal fix; dynamic discovery is not required. At the reviewed head (2699d22), src/providers/registry/agy-acp-models.ts sets AGY_ACP_SEED_MODELS to gemini-3.8-flash, gemini-4-argon, gemini-4-hydrogen, gemini-4-neon, gemini-3.7-flash. That satisfies the catalog requirement for both models. src/providers/registry/entries-extended.ts imports AGY_ACP_SEED_MODELS, so the registry derives the models from this seed. The PR summary reports 1_048_576 context-window entries for both models in entries-extended.ts, and the test file adds assertions for them. The entries-extended.ts hunk was not read directly because the diff tool failed and the antigravity-acp block lies beyond the 16000-byte truncation limit. The context-window claim therefore rests on the PR summary. The issue does not make the test a separate requirement. The issue's #8480, #8794, #8954, and #8957 references are context only and were not treated as objectives.

Full details: Out of Scope Changes check

Explanation

All changes support the objective in #9037. The seed constant change in agy-acp-models.ts adds only the two named models. The entries-extended.ts change adds context-window metadata for the same two models, as the issue suggests. The test change asserts the two models and their context windows. No unrelated provider, routing, or dependency changes appear in the PR summary. The diff tool was unavailable, so the absence of other edits rests on the PR summary and the reported line counts (+7/-1, +7/-1, +4/-0), not on a full diff read.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9e0e298 and 2699d22.

Files selected for processing: 3

  • src/providers/registry/agy-acp-models.ts
  • src/providers/registry/entries-extended.ts
  • tests/config/agy-acp-config.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@lidge-jun

Copy link
Copy Markdown
Owner

Closing as a duplicate of #9039, which was opened first for #9037 and keeps the registry change to one line. The exact context-window value assertions from this PR are a good addition there. Thank you!

@lidge-jun lidge-jun closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers

2 participants