gemini-cli - 💡(How to fix) Fix Direct Integration of Gemini CLI as a Model Provider for Antigravity IDE. [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25866Fetched 2026-04-24 06:13:48
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
1
Participants
Timeline (top)
issue_type_added ×1labeled ×1mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

What would you like to be added?

This architectural shift—moving from a "split-brain" setup (IDE vs. CLI) to a unified Agentic Orchestration—is exactly where high-end vibe coding is heading. By using Antigravity (AG) as the orchestrator and the Gemini CLI as the coder/subagent, you solve the context-drift problem entirely.

Here is the updated feature request, specifically focused on Orchestration & Provider Unification.

What would you like to be added? Direct Provider Integration for Gemini CLI to enable Unified Agentic Orchestration.

I am requesting that Gemini CLI be added as a first-class model provider within the Antigravity IDE. This is not just for chat, but to enable a Leader-Follower agentic workflow where:

Antigravity acts as the Orchestrator/Planner: Using its 1M+ context and Tree-sitter indexing to map out the project topology and high-level strategy.

Gemini CLI acts as the Coder/Subagent: Executing the specific implementation loops, leveraging its native subagent capabilities (v0.38.1+), and respecting local toolchains.

Unified Context Session: Both entities must share a single session state so that changes made by the CLI coder are immediately reflected in the AG planner’s context window without manual re-indexing or session drift.

Why is this needed?

Currently, running Antigravity and the Gemini CLI separately causes Session Drift:Context Fragmentation: AG might plan a refactor based on state $A$, while the CLI (with its own subagents and planning mode) is already at state $B$. This leads to hallucinated file paths and broken dependency chains.Redundant Subagent Logic: Gemini CLI recently introduced powerful Subagents (@codebase_investigator, @generalist). If AG cannot call the CLI as a provider, I am forced to manually sync these subagent findings back into the IDE.Configuration Silos: My model steering and "vibes" are defined in the CLI's logic. By using the CLI as the provider, Antigravity gains access to the exact model behaviors I've tuned in the terminal.

Additional context

The implementation should leverage the existing Gemini CLI Companion logic but in reverse: instead of the CLI "looking" into the IDE, the IDE should "drive" the CLI.Proposed Integration Logic:Subagent Delegation: In the AG chat, I should be able to trigger CLI subagents directly (e.g., /cli @codebase_investigator "Find the bottleneck in our DuckDB queries").Agentic Handover: AG creates the plan => Passes the plan to Gemini CLI => CLI executes via its internal Planning Mode => Results stream back into the AG terminal and editor.Local-First Sync: Ensure that the .agents/rules/ directory is the "Source of Truth" for both the AG orchestrator and the CLI coder.

extent analysis

TL;DR

Integrate Gemini CLI as a first-class model provider within the Antigravity IDE to enable Unified Agentic Orchestration and resolve session drift issues.

Guidance

  • Implement Subagent Delegation to allow triggering CLI subagents directly from the AG chat, ensuring seamless interaction between the IDE and CLI.
  • Develop Agentic Handover to enable the AG orchestrator to pass plans to the Gemini CLI for execution, and stream results back into the AG terminal and editor.
  • Ensure Local-First Sync by designating the .agents/rules/ directory as the single source of truth for both the AG orchestrator and the CLI coder.
  • Leverage the existing Gemini CLI Companion logic in reverse, allowing the IDE to drive the CLI and maintain a unified context session.

Example

No specific code snippet can be provided without further technical details, but the integration should involve modifying the Antigravity IDE to communicate with the Gemini CLI and delegate tasks to its subagents.

Notes

The proposed integration requires careful consideration of the existing architecture and potential limitations of the Gemini CLI and Antigravity IDE. The implementation should prioritize maintaining a unified context session and ensuring seamless communication between the two components.

Recommendation

Apply workaround by implementing the proposed integration logic, as it addresses the session drift and context fragmentation issues, and enables a more streamlined development workflow.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING