C
ChaoBro

Gemini CLI v0.40.0: Tiered Memory System + Auto Skill Generation, A New Paradigm for Terminal Agents

Gemini CLI v0.40.0: Tiered Memory System + Auto Skill Generation, A New Paradigm for Terminal Agents

Core Updates Overview

Google’s Gemini CLI v0.40.0, released April 30, brings four substantial upgrades, all pointing in one direction: making the AI Agent in the terminal more like a true collaborator, not a one-time Q&A machine.

FeatureDescriptionSignificance
Tiered Memory SystemCross-session memory + project-level contextAgent starts “remembering” your project
Auto Skill GenerationAutomatically creates reusable skills from session historyFrom “repeated teaching” to “automatic learning”
Gemma Local SupportCan run Gemma models locallyZero cost for simple tasks
Streamlined UICompact toolbar and topic viewImproved terminal space utilization

Tiered Memory System: Agent Finally “Gets a Brain”

Before v0.40.0, every Gemini CLI launch was a fresh conversation. The tiered memory system solves this with three levels:

┌─────────────────────────────────────┐
│          Global Memory              │
│  User preferences, coding style      │
├─────────────────────────────────────┤
│          Project Memory             │
│  Architecture decisions, tech stack  │
├─────────────────────────────────────┤
│          Session Memory             │
│  Current dialog context, temp vars   │
└─────────────────────────────────────┘

Auto Skill Generation

The most underrated feature of v0.40.0:

  1. You teach the Agent a task
  2. Agent automatically analyzes the pattern
  3. Automatically generates a reusable skill
  4. Next time, automatically applies it

Cost Breakdown with Gemma Local Support

Task TypeRouting TargetCostLatency
Simple queriesLocal Gemma$0< 500ms
Medium complexityCloud Gemini FlashLow~1s
Complex reasoningCloud Gemini ProMedium~3s

Getting Started

  1. Upgrade CLI: npm update -g @google/gemini-cli
  2. Enable tiered memory (default on)
  3. Auto skill generation: Prompted on first use
  4. Local Gemma config: Set in config.json

Gemini CLI v0.40.0 is not a “minor update” — it’s Google’s paradigm statement in the terminal Agent space.