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 and can be stored globally or per-project. Parallel subagents allow multiple agents to run simultaneously for tasks like researching multiple topics or refactoring distinct components. Built-in subagents ship with Gemini CLI, and explicit delegation is possible using the @agent syntax.

5m read timeFrom developers.googleblog.com
Post cover image
Table of contents
What are subagents?Build your own expert with custom subagentsGetting started with subagents

Sort: