◉GEMINI LABJP
●2.5 ROUTE — Since 12/1, gemini-2.5-pro routes to 3.8 Flash and gemini-2.5-flash to 3.5 Flash-Lite, billed at the new model's rates●CARBON — Intro pricing for Gemini 4 Carbon and Argon has ended. Standard rates: $4.00 input, $20.00 output per 1M tokens●OMNI 1.1 — gemini-omni-1.1-flash starts routing to 1.2 Flash on 12/3, one day from now●COMPRESS — Some Gemini CLI users report auto-compression that barely shrinks the context, round after round●FALLBACK — Planning for model changes or traffic spikes? Decide your retry count and fallback model up front●LONG DOC — Feeding Gemini a long document? State your goal and the part to read first, and fewer details get dropped●2.5 ROUTE — Since 12/1, gemini-2.5-pro routes to 3.8 Flash and gemini-2.5-flash to 3.5 Flash-Lite, billed at the new model's rates●CARBON — Intro pricing for Gemini 4 Carbon and Argon has ended. Standard rates: $4.00 input, $20.00 output per 1M tokens●OMNI 1.1 — gemini-omni-1.1-flash starts routing to 1.2 Flash on 12/3, one day from now●COMPRESS — Some Gemini CLI users report auto-compression that barely shrinks the context, round after round●FALLBACK — Planning for model changes or traffic spikes? Decide your retry count and fallback model up front●LONG DOC — Feeding Gemini a long document? State your goal and the part to read first, and fewer details get dropped
ARTICLES

All Articles

All (868)◉ Gemini Basics (71)⟐ Dev Tools (135)◈ API & SDK (450)⬡ Advanced (129)◧ Workspace (52)◎ Updates (31)
⟐ Dev Tools/2026-11-07Beginner

The Morning an Android Build Stopped on 'Duplicate Resources' and Dropbox Was the Cause

Building inside a synced folder left more than 80 conflicted copies in my generated files and stopped an Android build. Here is how I found the cause, how I took build and .gradle out of sync, and where I now keep a project before letting an agent run builds.

⟐ Dev Tools/2026-10-29Intermediate

The Nightly Batch Sat Stalled Until Morning — Splitting Retryable Failures by gemini-api Exit Code

The gemini-api CLI, in beta since 10/27, exits with 0, 1, 2 or 3. Which to retry, which should stop a nightly batch, and the double-billing trap when a background job is rerun. Includes a bash wrapper.

⟐ Dev Tools/2026-10-29Intermediate

Before You Install gemini-api: It Is Not Gemini CLI, and Where I Decided It Belongs

The Gemini API CLI (gemini-api, beta) that appeared on 10/27 is not a successor to Gemini CLI. Here is where I placed it after reading the README, what to check with --dry-run before any billing, and how to pin it in CI.

⟐ Dev Tools/2026-10-24Intermediate

The More MCP Servers You Add, the Closer You Get to a 400 — Trimming Gemini CLI Tools Per Task

Reports say Gemini CLI can stop with a 400 once enough MCP tools are loaded. The exact limit isn't confirmed, but deciding what each task carries with includeTools makes the failure easier to isolate and to prevent.

⟐ Dev Tools/2026-10-20Intermediate

Typed @config and the Wrong File Went In? Checking Gemini CLI's @ Reference for Silent First-Match Picks

A bug report says Gemini CLI's @ reference silently picks the first hit when a name is ambiguous. Here is how I check for same-name files before typing @, with a small Python script and a test run.

⟐ Dev Tools/2026-10-19Intermediate

I Set the MCP Timeout to 10 Minutes and It Still Cuts Off at 1 — Tracing Which Layer Decides the Value

You raised an MCP server's timeout in Gemini CLI and it still ends early. A small script lists the value from every config layer, catching unit slips and extension overrides, plus the order I check things in.

⟐ Dev Tools/2026-10-17Intermediate

Hung Jobs Fail Quietly — Wrapping a Scheduled Gemini Call With a Timeout, an Empty-Output Check, and a Lock

An outer shell script that protects a cron-driven `gemini -p` call from three quiet failures: hanging on a response, exiting 0 with empty output, and overlapping with the previous run. Includes exit codes and timings measured with stand-in commands, and how far `timeout` reaches into child processes.

⟐ Dev Tools/2026-10-14Intermediate

Stop Re-Reading Every Crash Report: Grep a Known-Bug Table First and Keep Only an Index in GEMINI.md

A routine for investigating app crash reports without making the model read every past bug in full: a one-line-per-bug lookup table, what belongs in GEMINI.md, and a grep helper you can paste in.

⟐ Dev Tools/2026-10-06Intermediate

Three Veo 3.1 previews stop on Oct 22. I started with an inventory of every call site

Three Veo 3.1 preview models shut down on Oct 22, with gemini-omni-1.1-flash as the listed replacement. Before swapping model names, here is a search script that finds every call site in a repo, and a config pattern that stops loudly after the deadline instead of drifting to another model.

⟐ Dev Tools/2026-09-29Intermediate

Gemini CLI Kept Saying 'API key not valid' After I Gave It a New Key — It Was Reading an Old One From a Third Place

I switched Gemini CLI from Google login to a paid API key, and the 400 'API key not valid' error would not go away. The key can come from four places — the shell, a project .env, a home .env, and settings.json — and a short script that lights them up in order narrows the cause to one.

⟐ Dev Tools/2026-09-21Intermediate

The Day I Unplugged an MCP Server for the First Time — How I Decide Which Tools Stay On

Keep adding MCP servers and quality degrades well before you hit the API ceiling of 512 function declarations. Here is how I use includeTools and excludeTools in Gemini CLI to decide which tools stay enabled, and how I put the rest away.

⟐ Dev Tools/2026-09-15Advanced

The approval rules I had written never matched once — auditing my Gemini CLI policies

A deny rule I trusted for half a year had never matched. The pattern was tested against a JSON string, the folder I kept my rules in is not read, and ask_user turns into deny the moment nobody is watching. Here is the audit, and the script I wrote to keep doing it.