Repository navigation
opencode config: seat Gemini 4 Hydrogen, retire Flash seats (Drew 2026-11-12) - #9013
Merged
Merged
Conversation
…6-11-12) Provider: sync-models policy gains the gemini-hydrogen family for _antigravity; sync-models learns the -xhigh effort suffix (and the -extra spelling Antigravity uses for the same tier, normalized to xhigh), and its agy-CLI discovery fallback parses the current tab-separated agy models output (the multi-space split silently discovered nothing, which is why the runtime overlay had not refreshed since 2026-11-07). The --dry-run probe test now carries the target provider section so it tests the dry-run contract rather than whether a catalog is discoverable from the machine (#7333 absent-skip otherwise exits 2). Seats: gemini-flash-plan renamed gemini-hydrogen-plan, target _antigravity/gemini-4-hydrogen with max -> xhigh clamp (native xhigh, AA v5.0.1 II 54); workhorse-weighted member becomes gemini-4-hydrogen#low w10 (Drew: II 27, $0.29/task, TTFT 5.81s, minimal Antigravity Gemini weekly draw); summit gains a direct gemini-4-hydrogen#high leaf after argon-plan#high (II 51, $1.87/task, ~6 min/task vs Argon $9.95 / ~30 min); speed pool follows the renamed route at #high. Gemini 3.8 Flash seats are gone (catalog entry remains per the catalog rule). DeepSeek/GLM/MiMo flash routes untouched. Applied live ahead of merge via the patched sync-models: overlay gained gemini-4-hydrogen (variants low/medium/high/xhigh) and the running server catalog read verifies it active; the same sync applied the standing keep-newest-per-family policy to 10 stale overlay entries. Guard: opencode-config-guard suite green (137 tests, both canonical checks).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 13, 2026
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.
Drew's order 2026-11-12 (amended 14:17 CST): add Google Gemini 4 Hydrogen to the
_antigravityprovider and replace every Gemini Flash use with Hydrogen at the appropriate effort.Provider addition (sync-models, the sanctioned route — code#4544)
bin/sync-models.policy.json: new familygemini-hydrogen(^gemini-(\d+(?:\.\d+)?)-hydrogen$), added to_antigravity's keep list — without this, the next sync would have removed the model as off-policy.bin/sync-models.mjs:-xhigh(the live catalog spells the tiergemini-4-hydrogen-xhigh) and-extra(Antigravity's "Extra" label for the same tier), normalized to the fleet'sxhighvariant name; the display-name strip learns(XHigh)/(Extra).agy modelsfallback split columns on multi-space only, but currentagyoutput is tab-separated — discovery silently returned nothing whenever the language server was down, which is why the runtime overlay had not refreshed since 2026-11-07. Split now accepts a tab or multi-space.bin/sync-models.test.mjs: the--dry-runprobe now carries a present-but-empty_antigravitysection. With working discovery, the old probe (emptyprovider) is a sync-models: renamed provider catalog orphaned in runtime overlay; sync reports up-to-date while section key is stale #7333 absent-provider skip and exits 2 on any machine where a catalog is discoverable — it was testing the environment, not the dry-run contract. Assertions unchanged.Applied live ahead of this merge with the patched tool (the overlay is machine state, not repo state):
+ _antigravity/gemini-4-hydrogen— "Gemini 4 Hydrogen (direct)", limit 1048576/65536, variants low/medium/high/xhigh (reasoning_effortoptions, mirroringgemini-4-argon). Verified in the running server's catalog read (GET /api/provideron 127.0.0.1:13420):_antigravityserves exactly the five policy models, hydrogenstatus: active, enabled: true, tools-capable. No test completion was sent (no quota probes). The same sync applied the standing keep-newest-per-family policy to 10 stale overlay entries (gemini-2.5/3.x leftovers,gemini-3.8-flash-tiered,gpt-oss-120b) — none seated anywhere.Durability note: the overlay entry is live now and survives the daily timer (the deployed old sync discovers nothing while the language server is down — the same bug, acting as a shield). It becomes permanent when the nix deploy carries this branch's
bin/sync-models.mjs+ policy through the normal switch path. If the Antigravity language server happens to run a sync before that deploy, the old policy would drop hydrogen from the overlay; the first post-deploy sync restores it.Seat swaps (
.opencode/opencode.jsonc)gemini-flash-plan→_antigravity/gemini-3.8-flash, variants clampxhigh→high, max→highgemini-hydrogen-plan→_antigravity/gemini-4-hydrogen, clampmax→xhighonly (native xhigh: AA v5.0.1 II 54)_antigravity/gemini-3.8-flash#medium, w10_antigravity/gemini-4-hydrogen#low, w10 (Drew 14:17: II 27, $0.29/task, TTFT 5.81s — cheapest/fastest in pool, minimal draw on the shared Antigravity Gemini weekly; Luna #high anchors quality)_antigravity/gemini-4-hydrogen#highinserted afterargon-plan#high(Drew 14:17: II 51 ≈ Opus #high 51.8, edges Argon #high 50.4, at $1.87/task and ~6 min/task vs Argon's $9.95 / ~30 min — the fast execution seat, ahead of the Meta/OpenAI reserves)opencode-route/gemini-flash-plan#highopencode-route/gemini-hydrogen-plan#high— serves Hydrogen #high (II 51, $1.87/task) via the renamed routeRoute rename audit:
git grep gemini-flash-planacross the whole repo found references only inopencode.jsonc(all updated, including comment pointers in sonnet-plan / opus-plan / specialist / workhorse-weighted / speed) and one frozen 2026-10-25 design doc (doc/2026-10-25T21-11-31Z_design_route-pools/), deliberately left as a historical record. The one remaining in-config mention of the old id is the route's own dated rename note. AA figures in the dated seat comments are AA v5.0.1 (Hydrogen: low II 27 $0.29 · medium II 41 $0.80 · high II 51 $1.87 · xhigh II 54 $3.16; Flash high was II 30.8).Out of scope, untouched: DeepSeek/GLM/MiMo "flash" models and routes (other vendors), the sync-maintained
google/catalog, the Flash catalog entries themselves (catalog rule — the provider keeps listing the model; no route seats it).Verification
check-opencode-metered-providers,check-opencode-route-ruleson.opencode/opencode.jsonc).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.