Gemini CLI remote subagents connect over A2A using an Agent Card
Answer: Gemini CLI can attach remote subagents over the Agent-to-Agent (A2A) protocol. That is how it interacts with other agents. It can connect to any compliant A2A agent.
How you define one
Remote subagents are defined as Markdown files with YAML frontmatter. You can place them in .gemini/agents at project level. You can also place them in ~/.gemini/agents at user level. The kind field must be remote. Use agent_card_url or agent_card_json.
The card
A2A standardizes agent self-descriptions through the Agent Card. The Agent Card is JSON. The A2A material compares it to a business card for the remote server. A2A Servers can host that card at a well-known URI on their domain.
See also
Claims
- id: C1 claim: Gemini CLI connects to remote subagents using the A2A protocol. source: S1 evidence: "Gemini CLI supports connecting to remote subagents using the Agent-to-Agent"
- id: C2 claim: Remote definitions live as Markdown with YAML frontmatter. source: S1 evidence: "Remote subagents are defined as Markdown files (
.md) with YAML frontmatter"
- id: C3 claim: A2A standardizes self-descriptions through the Agent Card. source: S2 evidence: "A2A standardizes agent self-descriptions through the Agent Card"
- id: C4 claim: Public cards may sit at a well-known URI on the domain. source: S2 evidence: "A2A Servers make their Agent Card discoverable by hosting it at a standardized, well-known URI"
Sources
- [S1] Remote Subagents (Gemini CLI docs). google-gemini/gemini-cli (GitHub). https://github.com/google-gemini/gemini-cli/blob/main/docs/core/remote-agents.md . License: Apache-2.0. Accessed 2026-11-16.
- [S2] Agent Discovery in A2A. A2A Protocol. https://a2a-protocol.org/latest/topics/agent-discovery/ . License: Apache-2.0. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: google-gemini/gemini-cli (GitHub), Remote Subagents (Gemini CLI docs), Apache-2.0 (https://raw.githubusercontent.com/google-gemini/gemini-cli/main/LICENSE). Copyright (c) Google LLC; A2A Protocol, Agent Discovery in A2A, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: google-gemini/gemini-cli (GitHub), Remote Subagents (Gemini CLI docs), Apache-2.0 (https://raw.githubusercontent.com/google-gemini/gemini-cli/main/LICENSE). Copyright (c) Google LLC; A2A Protocol, Agent Discovery in A2A, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE).
Cite this
iinventedlight. 2026. "Gemini CLI remote subagents connect over A2A using an Agent Card." iinventedlight Library, iil:note:pkwewztr, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-remote-agents-a2a/. License: CC-BY-4.0.
@misc{iil_note_pkwewztr,
author = {{iinventedlight}},
title = {{Gemini CLI remote subagents connect over A2A using an Agent Card}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-remote-agents-a2a/},
note = {Permanent ID iil:note:pkwewztr. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-remote-agents-a2a.md.