Skip to content
Gemini Relay • Antigravityv1.2.0

Gemini RelayHand the big reading to Gemini

Your agent's context window is the thing you run out of first. Gemini Relay sends the reading to Google Gemini through the Antigravity CLI, and hands your agent back the answer instead of the files.

Try it before you install ​

Four things a coding agent asks the relay to do, and what comes back.

🤖 Claude Code <—> Gemini Relay Console
agy v1.1.27 • Gemini 3.8
Claude Code Querygemini-plan(task, effort: "high")
"Use gemini-plan to architect a low-latency websocket streaming server with automatic token refresh and backpressure."
Model:gemini-3.8-flash-high
Status:SUCCESS 200
### 📋 Architectural Blueprint: Resilient WebSocket Server

#### Phase 1: Core Stream Engine & Backpressure
- Implement stream.Writable with highWaterMark: 64KB.
- Buffer overflow strategy: Pause socket frame ingestion when client buffer exceeds 80% threshold.

#### Phase 2: Autonomous Token Rotation
- Background lease manager checking JWT expiry at T-60s.
- Non-blocking handshake refresh without closing established TCP sockets.

#### Phase 3: Failure Modes & Recovery
- Exponential backoff with full jitter: min(30s, 100ms * 2^attempt + rand(0, 50ms)).

📊 [Tokens: 9,240 in, 1,806 out (4,180 thinking)]

How hard it thinks ​

low, medium and high side by side, and when each one is worth it.

✦

Gemini 3.8 Reasoning Depth Engine

Dynamic Thinking Budget

Control thinking token depth per tool call using effort: "low" | "medium" | "high".

Thinking DepthDeep algorithmic thinking
Recommended Modelgemini-3.8-flash-high
🎯 Ideal Workflows:

Security vulnerability audits, race conditions, distributed architecture design, mathematical algorithms, and comprehensive system planning (gemini-plan).

MCP Tool Call Configurationeffort: "high"
gemini-plan({
  task: "Design distributed lock mechanism with Redis & auto-renew",
  context: "High-throughput financial ledger API with strict consistency",
  effort: "high"
})

The models you can name ​

gemini-3.8-flash-medium

Flash family, medium reasoning

Everyday tasks with balanced reasoning depth — bug investigation, refactors across a handful of files, unit tests.

Reasoning Depth:Medium
Alias:—
RefactorsBug HuntsUnit Tests
MINIMAL THINKING

gemini-3.8-flash-low

Flash family, low reasoning

The same Flash model with the least thinking depth baked into the id — for summaries, syntax checks, formatting and commit messages.

Reasoning Depth:Low
Alias:—
SummariesSyntax ChecksFormatting
FLAGSHIP REASONING

gemini-3.1-pro-high

Pro family, high reasoning

Complex problem solving, formal mathematical algorithms, concurrency analysis, and mission-critical architecture.

Reasoning Depth:High
Alias:pro
Security AuditsDistributed SystemsProofs

gemini-3.1-pro-low

Pro family, low reasoning

Pro-grade knowledge retrieval with minimal thinking, for questions that need the Pro model but not its deep reasoning.

Reasoning Depth:Low
Alias:—
Knowledge RetrievalQuick Answers

Gemini 3.7 and 3.6 Flash are still nameable too, in high, medium and low. The same agy backend also serves claude-sonnet-4-6, claude-opus-4-6-thinking and gpt-oss-120b-medium; pass any of them as model. They draw on a quota bucket separate from the Gemini models. Models lists every id.

Ready? Quick Start has the whole install in three steps.

Released under the MIT License.