What this thread does
Do first: Use /agents to manage specialists, or add a Markdown definition under .gemini/agents/*.md.
Short answer
Each specialist is exposed as a tool and returns findings to the main agent. A clear description guides automatic selection; beginning a prompt with @ and its name nudges the main model to call that specialist immediately.
What to do
| Definition / action | Values and defaults |
|---|---|
| Project definition | .gemini/agents/*.md; start with YAML frontmatter between --- delimiters; Markdown body becomes the system prompt |
name | Required unique tool-name slug: lowercase letters, numbers, hyphens and underscores |
description | Required; say its expertise, when to use it and example scenarios |
kind | local (default) or remote |
tools | Array; omitted inherits all parent-session tools; explicit entries restrict access |
| Wildcards | * all available tools; mcp_* all MCP tools; mcp_my-server_* all tools from server my-server |
mcpServers | Optional inline MCP configuration isolated to this agent |
model | Default inherit, using the main-session model |
temperature | Range 0.0–2.0; default 1 |
max_turns | Default 30 conversation turns |
timeout_mins | Default 10 minutes |
| Persistent overrides | In settings.json, use agents.overrides keyed by agent name; enabled toggles it, runConfig.maxTurns and runConfig.maxTimeMinutes change limits, modelConfig.model changes the model |
| Model-specific overrides | modelConfigs.overrides can match an agent by overrideScope |
| Global switch | Subagents default on; set experimental.enableAgents to false in settings.json to disable |
Built-in codebase_investigator, cli_help and generalist are enabled by default. For a direct research request, begin with @codebase_investigator and describe the investigation. /agents manages agents interactively. If automatic delegation misses the specialist, improve its description; /model selects the model to ask about the missed match.
Limits and open questions
Subagents cannot call other subagents, even with the * wildcard. Each has an independent history. This draft covers local specialists; browser_agent has a separate opt-in and browser-specific requirements. The page states no minimum Gemini CLI version.
Not for: Gemini CLI remote A2A subagents and browser automation setup.
Sources
Checked
2026-11-16; read Gemini CLI Subagents (updated June 8, 2026); no command was run.
Started from a post by @google-gemini, packaged by the editor. Original post