Answer: Remote subagents are defined as Markdown files (`.md`) with YAML frontmatter, placed either at project level in `.gemini/agents/*.md` or user level in `~/.gemini/agents/*.md`. The frontmatter requires `kind` set to `remote`, a unique `name`, and either `agent_card_url` or `agent_card_json`. Status: Confirmed Entry: tool/gemini-cli/agents-and-automation/define-remote-subagent Revision: 1 Digest: sha256:861c959e56ecc075 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:16Z Last changed: 2026-11-13T03:18:16Z Last verified: 2026-11-20T12:52:27Z Next check: 2026-11-21T12:52:27Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file format | Markdown files (`.md`) with YAML frontmatter | [1] | 2026-11-20 project-level location | .gemini/agents/*.md | [1] | 2026-11-20 user-level location | ~/.gemini/agents/*.md | [1] | 2026-11-20 kind field | remote | [1] | 2026-11-20 agent_card_url field | agent_card_url | [1] | 2026-11-20 agent_card_json field | agent_card_json | [1] | 2026-11-20 Sources: [1] Google. "Remote Subagents". https://geminicli.com/docs/core/remote-agents.md Role: primary. Accessed: 2026-11-20T12:52:27Z Quote: "Remote subagents are defined as Markdown files (`.md`) with YAML frontmatter." (Supports: file format) Quote: "**Project-level:** `.gemini/agents/*.md` (Shared with your team)" (Supports: project-level location) Quote: "**User-level:** `~/.gemini/agents/*.md` (Personal agents)" (Supports: user-level location) Quote: "Must be `remote`." (Supports: kind field) Quote: "The URL to the agent's A2A card endpoint. Required if `agent_card_json` is not provided. | | `agent_card_json` | string | Yes\* | The inline JSON string of the agent's A2A card. Required if `agent_card_url" (Supports: agent_card_url field) Quote: "agent_card_json` | string | Yes\* | The inline JSON string of the agent's A2A card. Required if `agent_card_url` is not provided." (Supports: agent_card_json field) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 8bdfde65084df86a28fa0367e820bea431e93e8f2346d2e2c3b15071f3989906 (captured 2026-11-13T03:18:16Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:18:16Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:52:27Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:52:27Z Last attempt: 2026-11-20T12:52:27Z Notes and limitations: Extracted automatically from a single official source (section "Defining remote subagents"). Related: https://latestn.com/tool/gemini-cli/agents-and-automation/extract-structured-json-output How do I get structured JSON output from Gemini CLI for use in scripts? https://latestn.com/tool/gemini-cli/agents-and-automation/headless-json-output-format How do I get JSON output from Gemini CLI in headless mode? https://latestn.com/tool/gemini-cli/agents-and-automation/hook-exit-codes What exit codes do Gemini CLI hook scripts need to return? https://latestn.com/tool/gemini-cli/agents-and-automation/create-custom-subagent How do I create a custom subagent in Gemini CLI? https://latestn.com/tool/gemini-cli/agents-and-automation/create-hook-script How do I create a hook script for Gemini CLI? https://latestn.com/tool/gemini-cli/agents-and-automation/create-skill-with-prompt How do I create a new Agent Skill in Gemini CLI using a prompt? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/agents-and-automation/define-remote-subagent/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/agents-and-automation/define-remote-subagent POST: https://latestn.com/dispute/tool/gemini-cli/agents-and-automation/define-remote-subagent with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/agents-and-automation/define-remote-subagent?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I define a remote subagent in Gemini CLI? Revision 1, last verified 2026-11-20T12:52:27Z. https://latestn.com/tool/gemini-cli/agents-and-automation/define-remote-subagent (accessed 2026-11-21T09:58:30Z). @misc{LatestN_tool_gemini_cli_agents_and_automation_define_remote_subagent_r1, title = {How do I define a remote subagent in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/agents-and-automation/define-remote-subagent}}, note = {Revision 1; digest sha256:861c959e56ecc075; last verified 2026-11-20T12:52:27Z; accessed 2026-11-21T09:58:30Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/agents-and-automation/define-remote-subagent