google-gemini/gemini-cli
6 articles
Prerequisites
- ›Basic TypeScript knowledge
- ›Familiarity with Node.js project structure
- ›Understanding of monorepo concepts
01
Gemini CLI Architecture: A Map of the Monorepo
A comprehensive guide to the Gemini CLI monorepo structure, boot sequence, Config god object, and dual event systems.
02
Inside the Agentic Loop: How Gemini CLI Processes a Prompt
A deep dive into the three-layer agentic loop that transforms user prompts into tool calls and responses.
03
Tools and the Scheduler: How Gemini CLI Executes Actions
Explores the tool system's builder pattern and the Scheduler's event-driven orchestration for tool execution.
04
Security by Design: The Policy Engine, Sandboxing, and Safety Checkers
Examines Gemini CLI's multi-layered security architecture: policy rules, platform sandboxing, and pluggable safety checkers.
05
Extending Gemini CLI: Hooks, Skills, MCP, and the Extension System
Covers all extensibility surfaces: hooks, skills, MCP integration, extensions, model routing, and sub-agents.
06
Two Faces of Gemini CLI: The React/Ink Terminal UI and the Programmatic SDK
Explores the interactive terminal UI, non-interactive mode, and the programmatic SDK for embedding.