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

Abierto
#30,385 3 comentarios 3 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
109k
Forks
15k
Merge medio
1 d 24 min
PR fusionados (30 d)
91

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google-gemini/gemini-cli

Todos los issues de google-gemini/gemini-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.