feat(models): Support Gemini 4 Neon & Gemini 4 Hydrogen for Enterprise Gemini CLI users

オープン
#30,385 コメント 3 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

Start with packages/core/src/config/models.ts and packages/core/src/config/defaultModelConfigs.ts, then check how existing Gemini 4 models are exposed in packages/cli/src/ui/components/ModelDialog.tsx and validated by schemas/settings.schema.json. Done means both model IDs, configurations, picker entries, and schema support are covered; backend routing and enterprise entitlements may require maintainer coordination.

索引モデルが issue の本文から書いたものです。

説明

status/need-triage
What would you like to be added?

We would like official support for Google's latest Gemini 4 series models — Gemini 4 Neon (gemini-4-neon) and Gemini 4 Hydrogen (gemini-4-hydrogen) — in Gemini CLI for users authenticated via Gemini Code Assist Enterprise / Standard (OAuth) and Gemini API Keys.

Specifically, this includes:

  1. Model ID Registration: Adding gemini-4-neon and gemini-4-hydrogen (along with relevant aliases/variants) to VALID_GEMINI_MODELS in packages/core/src/config/models.ts.
  2. Model Configurations: Defining model configuration (family gemini-4, tier, thinking levels low/medium/high/xhigh, tool capabilities) for both models in packages/core/src/config/defaultModelConfigs.ts.
  3. Model Picker UI: Adding both models to the /model selector dialog (packages/cli/src/ui/components/ModelDialog.tsx).
  4. Schema Update: Updating schemas/settings.schema.json to allow configuration and validation without schema errors.
  5. Backend Coordination: Enabling corresponding model routing/entitlements in the Gemini Code Assist backend (cloudcode-pa.googleapis.com / Vertex AI enterprise endpoints).
Why is this needed?
  1. Complete High-Efficiency & Agentic Execution Tier:

    • Gemini 4 Hydrogen (gemini-4-hydrogen): Serves as Google's ultra-fast, cost-effective model (successor to Gemini 3.8 Flash) optimized for rapid everyday execution, iterative tasks, and fast tool-calling/sub-agent loops.
    • Gemini 4 Neon (gemini-4-neon): Adapted from the Gemini 4 Carbon architecture, specifically engineered for repo-scale refactoring, multi-turn debugging, and tight agentic tool-calling loops with low latency and minimal hallucination.
      Together, Hydrogen and Neon form the high-efficiency foundation for terminal agent workflows, complementing the frontier reasoning models (Argon and Carbon).
  2. Parity with Antigravity CLI (agy) & Modern Gemini Ecosystem:
    Both Gemini 4 Neon and Hydrogen are already available in Antigravity CLI (agy), Google AI Studio, and the Gemini API. Enterprise users of Gemini CLI are currently unable to select or leverage either model, creating a capability gap between preview tools and licensed enterprise environments.

  3. Enterprise Commitment & InfoSec Constraints:
    During the migration announcement on May 19, 2026, Google affirmed:

    "If your organization uses Gemini CLI or our IDE extensions via a Gemini Code Assist Standard or Enterprise license, your access remains unchanged. We’ll continue to support Gemini CLI and Gemini Code Assist with access to the latest Gemini models and other updates."
    Many regulated enterprise organizations have strict InfoSec review and compliance constraints that prevent deploying newer preview tools (such as Antigravity CLI) until comprehensive vendor security assessments conclude. Gemini CLI remains the primary approved, enterprise-compliant terminal agent for these teams. Adding Neon and Hydrogen ensures enterprise users can benefit from Google's latest agentic and efficiency model advancements.

Additional context
  • Reference Issues:
    • #29689 (Support Gemini 4 Argon / Gemini 4 Pro for Enterprise Gemini CLI users)
    • #30125 (Support Gemini 4 Carbon for Enterprise Gemini CLI users)
  • Auth Method: Gemini Code Assist Enterprise (Google OAuth) and gemini-api-key.
  • Key Implementation Files:
    • packages/core/src/config/models.ts
    • packages/core/src/config/defaultModelConfigs.ts
    • packages/cli/src/ui/components/ModelDialog.tsx
    • schemas/settings.schema.json

If maintainers are open to community PRs registering these model IDs and configs, please consider adding the help wanted label so that a community contribution can be submitted and reviewed under the repo guidelines.

主要言語
TypeScript
スター
109k
フォーク
15k
平均マージ
1日 24分
マージ済み PR(30日)
91

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google-gemini/gemini-cli のほかの issue

google-gemini/gemini-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。