Gemini CLI now supports subagents — specialized expert agents that operate in isolated context windows with their own tools, MCP servers, and system instructions. The main session acts as an orchestrator, delegating sub-tasks to the most relevant subagent. Custom subagents are defined via Markdown files with YAML frontmatter
Table of contents
What are subagents?Build your own expert with custom subagentsGetting started with subagentsSort: