Integrate Agent2Agent (A2A) Protocol for Enhanced Inter-Agent Communication #1991

Closed
opened 2026-02-16 17:33:38 -05:00 by yindo · 14 comments
Owner

Originally created by @taqtiqa-mark on GitHub (Oct 7, 2025).

Originally assigned to: @thdxr on GitHub.

Is support for the A2A Protocol currently in scope for OpenCode, or planned on the development roadmap? If not, what considerations might influence its inclusion?

OpenCode currently facilitates agent-based workflows through configurations, rules, and subagents, with support for protocols like MCP for agent-tool interactions. To extend this capability, incorporate the Agent2Agent (A2A) Protocol—an open standard for secure, interoperable communication between AI agents across frameworks. This would enable OpenCode agents to collaborate with external agents (e.g., via task delegation, message exchanges, and asynchronous notifications) while maintaining opacity and security. Key benefits include streamlined multi-agent orchestration in software engineering tasks, such as distributed TDD or IaC deployments.

References:

Originally created by @taqtiqa-mark on GitHub (Oct 7, 2025). Originally assigned to: @thdxr on GitHub. Is support for the A2A Protocol currently in scope for OpenCode, or planned on the development roadmap? If not, what considerations might influence its inclusion? OpenCode currently facilitates agent-based workflows through configurations, rules, and subagents, with support for protocols like MCP for agent-tool interactions. To extend this capability, incorporate the Agent2Agent (A2A) Protocol—an open standard for secure, interoperable communication between AI agents across frameworks. This would enable OpenCode agents to collaborate with external agents (e.g., via task delegation, message exchanges, and asynchronous notifications) while maintaining opacity and security. Key benefits include streamlined multi-agent orchestration in software engineering tasks, such as distributed TDD or IaC deployments. ## References: - A2A Protocol Overview: https://a2a-protocol.org/latest/ - Specification: https://a2a-protocol.org/latest/specification/ - Tutorials: - https://a2a-protocol.org/latest/tutorials/ - https://github.com/NirDiamant/agents-towards-production/blob/main/tutorials/a2a/a2a_tutorial.ipynb
yindo closed this issue 2026-02-16 17:33:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 7, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #472: A2A (Agent2Agent) support - Direct request for A2A protocol support from Google
  • #177: MCP support - Model context protocol - General MCP protocol support request
  • #2754: Feature Request: Add support for MCP (Model Context Protocol) servers - MCP integration for enhanced agent communication

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 7, 2025): This issue might be a duplicate of existing issues. Please check: - #472: A2A (Agent2Agent) support - Direct request for A2A protocol support from Google - #177: MCP support - Model context protocol - General MCP protocol support request - #2754: Feature Request: Add support for MCP (Model Context Protocol) servers - MCP integration for enhanced agent communication Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 7, 2025):

haven't heard much of a stir for this, but if a lot of people start asking for it, it may be prioritized, but afaik you are the first to ask for it

@rekram1-node commented on GitHub (Oct 7, 2025): haven't heard much of a stir for this, but if a lot of people start asking for it, it may be prioritized, but afaik you are the first to ask for it
Author
Owner

@taqtiqa-mark commented on GitHub (Oct 8, 2025):

what considerations might influence its inclusion?

In addition to the question about user demand. The contributing guidelines suggest such a core feature would need to pass through a design process with the core team.

@taqtiqa-mark commented on GitHub (Oct 8, 2025): > what considerations might influence its inclusion? In addition to the question about user demand. The [contributing guidelines](https://github.com/sst/opencode?tab=readme-ov-file#contributing) suggest such a core feature would need to pass through a design process with the core team.
Author
Owner

@ydennisy commented on GitHub (Oct 25, 2025):

@taqtiqa-mark I think this is an extremely interesting space, but each time I think about it I am hard pushed to figure out the tangible benefits a distributed multi-agent system can provide.

The only very clear use case to me is around data exposure, if for example you only wanted your agent to share some partial information with a 3p agent - but I am not clear where that would be beneficial for coding agents, since if the receiving agent only has partial information it is less likely to be able to as good a job as the original agent which would have more information available.

Anyway, would love to hear what ideas you had for why this would be useful for opencode.

@ydennisy commented on GitHub (Oct 25, 2025): @taqtiqa-mark I think this is an extremely interesting space, but each time I think about it I am hard pushed to figure out the tangible benefits a distributed multi-agent system can provide. The only very clear use case to me is around data exposure, if for example you only wanted your agent to share some partial information with a 3p agent - but I am not clear where that would be beneficial for coding agents, since if the receiving agent only has partial information it is less likely to be able to as good a job as the original agent which would have more information available. Anyway, would love to hear what ideas you had for why this would be useful for `opencode`.
Author
Owner

@taqtiqa-mark commented on GitHub (Oct 25, 2025):

Anyway, would love to hear what ideas you had for why this would be useful for opencode.

Definitely wet paint all around. I suppose I have a view of opencode that is probably more like openagent. As you say the "coding-only" use case is probably limited. It'll be interesting to see if opencode is code-only use cases or if the view is that is one of several use cases.

@taqtiqa-mark commented on GitHub (Oct 25, 2025): > Anyway, would love to hear what ideas you had for why this would be useful for `opencode`. Definitely wet paint all around. I suppose I have a view of `opencode` that is probably more like `openagent`. As you say the "coding-only" use case is probably limited. It'll be interesting to see if `opencode` is code-only use cases or if the view is that is one of several use cases.
Author
Owner

@Melodeiro commented on GitHub (Nov 12, 2025):

Would be great opportunity to have opencode server as an agent via the universal a2a prototol. With human-in-the-loop integration, etc. Have been searching for 3rd party implementations but seems like there are none yet

Also its good because you can create any architecture you want. Not just 1 to many

@Melodeiro commented on GitHub (Nov 12, 2025): Would be great opportunity to have opencode server as an agent via the universal a2a prototol. With human-in-the-loop integration, etc. Have been searching for 3rd party implementations but seems like there are none yet Also its good because you can create any architecture you want. Not just 1 to many
Author
Owner

@olafgeibig commented on GitHub (Nov 16, 2025):

I absolutely support this feature request. IMO A2A will be the dominant protocol for the integration of agents across technology stacks they are build on. For example, the popular agent framework Agno has adopted it. This feature would allow calling Agno agents to do stuff and vice versa use opencode as an agent for code related tasks in multi-agent solutions built with Agno or any other framework that adopted A2A. As @Melodeiro said, it would enable us to use opencode as an agent in any agentic architecture you want. It's a huge game changer.

@olafgeibig commented on GitHub (Nov 16, 2025): I absolutely support this feature request. IMO A2A will be the dominant protocol for the integration of agents across technology stacks they are build on. For example, the popular agent framework Agno has adopted it. This feature would allow calling Agno agents to do stuff and vice versa use opencode as an agent for code related tasks in multi-agent solutions built with Agno or any other framework that adopted A2A. As @Melodeiro said, it would enable us to use opencode as an agent in any agentic architecture you want. It's a huge game changer.
Author
Owner

@mdizo commented on GitHub (Dec 2, 2025):

A2A is backed by the linux foundation so I'm more likely to believe its a protocol that isn't just a fad. I could think of a couple of coding uses cases for a multi-agent system like subagent parallelization and complex orchestration.

@mdizo commented on GitHub (Dec 2, 2025): A2A is backed by the linux foundation so I'm more likely to believe its a protocol that isn't just a fad. I could think of a couple of coding uses cases for a multi-agent system like subagent parallelization and complex orchestration.
Author
Owner

@bjesuiter commented on GitHub (Jan 11, 2026):

Since ACP is now part of A2A under the Linux foundation, we might be able to standardize on A2A.
https://github.com/orgs/i-am-bee/discussions/5

I don't know how the integration was/is done though, whether ACP as a Standard is kept or if it is deprecated now and fully disolves into A2A.

@bjesuiter commented on GitHub (Jan 11, 2026): Since ACP is now part of A2A under the Linux foundation, we might be able to standardize on A2A. https://github.com/orgs/i-am-bee/discussions/5 I don't know how the integration was/is done though, whether ACP as a Standard is kept or if it is deprecated now and fully disolves into A2A.
Author
Owner

@Knucklessg1 commented on GitHub (Jan 17, 2026):

I have a ton of A2A agents, it would be super awesome if opencode could leverage the supplied agent skills from the A2A agent card to know how to use that agent. It would make opencode the ultimate developer agent orchestrator.
+1 vote for A2A on this framework. It's the first thing I looked up when discovering this project.

@Knucklessg1 commented on GitHub (Jan 17, 2026): I have a ton of A2A agents, it would be super awesome if opencode could leverage the supplied agent skills from the A2A agent card to know how to use that agent. It would make opencode the ultimate developer agent orchestrator. +1 vote for A2A on this framework. It's the first thing I looked up when discovering this project.
Author
Owner

@zxkxyz commented on GitHub (Jan 20, 2026):

Chiming in to add my support for this or something similar. Similar to @taqtiqa-mark's POV, at our company we're beginning to see opencode as more of an openagent and want to build our agents platform around it. Very intrigued by Dax's tweet about a company that's already doing this (with some reported friction, I wonder if this topic is related).

The rationale being opencode is basically a general purpose computer-using agent, it's extremely powerful and easy to morph into whatever you want it to be (I don't need to convince anybody here of that) -- unlike going the framework route (Langchain, AI SDK, etc. which has its benefits, sure). Unsurprisingly, people are naturally gravitating towards opencode as their "framework" of choice, probably because it's the easiest way to build an agent that works similar to how those people work right now (with files, CLI tools, etc.) and it's extremely easy to iterate on because coding is not a requirement.

Teams within the company are already making opencode agents that are really good at operating within a specialized domain; e.g, we're building an opencode powered agent for answering questions about our data lake via a combination of tacit knowledge encoding (markdown files/skills informing the agent on how to think about and query the data) and various CLI + MCP tools to actually perform queries. Again, no code needed except for helper functions, which is why this route is so lucrative.

The thing is these agents are running on people's laptops and we want to productionize them (presumably using the opencode SDK). Figuring out auth, service accounts, interaction logic, etc. are problems we can work on internally but it seems like a major missing piece is the ability for opencode sessions to call upon remote agents as if they were local subagents.

This is where A2A or some similar "remote subagent" system could help us.

@zxkxyz commented on GitHub (Jan 20, 2026): Chiming in to add my support for this or something similar. Similar to @taqtiqa-mark's POV, at our company we're beginning to see `opencode` as more of an `openagent` and want to build our agents platform around it. Very intrigued by Dax's tweet about a company that's already doing this (with some reported friction, I wonder if this topic is related). The rationale being opencode is basically a general purpose computer-using agent, it's extremely powerful and easy to morph into whatever you want it to be (I don't need to convince anybody here of that) -- unlike going the framework route (Langchain, AI SDK, etc. which has its benefits, sure). Unsurprisingly, people are naturally gravitating towards opencode as their "framework" of choice, probably because it's the easiest way to build an agent that works similar to how those people work right now (with files, CLI tools, etc.) and it's extremely easy to iterate on because coding is not a requirement. Teams within the company are already making opencode agents that are really good at operating within a specialized domain; e.g, we're building an opencode powered agent for answering questions about our data lake via a combination of tacit knowledge encoding (markdown files/skills informing the agent on _how_ to think about and query the data) and various CLI + MCP tools to actually perform queries. Again, no code needed except for helper functions, which is why this route is so lucrative. The thing is these agents are running on people's laptops and we want to productionize them (presumably using the opencode SDK). Figuring out auth, service accounts, interaction logic, etc. are problems we can work on internally but it seems like a major missing piece is the ability for opencode sessions to call upon remote agents as if they were local subagents. This is where A2A or some similar "remote subagent" system could help us.
Author
Owner

@taqtiqa-mark commented on GitHub (Jan 22, 2026):

unlike going the framework route (Langchain, AI SDK, etc. which has its benefits, sure).

I've been pushing in various issues for PocketFlow to be adopted, which would simplify implementation of lots of functionality - they have a A2A PoC in their cookbooks folder.

I'm starting to get strong not-invented-here vibes around this project... hopefully I'm wrong.

@zxkxyz, one issue I've been running into that is a concern in production settings, and fatal in regulated settings, is prompt injection attacks from the project: I turn off everything I can, and the LLM still gives me the OC spiel. I believe this would also break any non-trivial A2A use cases.

@taqtiqa-mark commented on GitHub (Jan 22, 2026): > unlike going the framework route (Langchain, AI SDK, etc. which has its benefits, sure). I've been pushing in various issues for PocketFlow to be adopted, which would simplify implementation of lots of functionality - they have a A2A PoC in their cookbooks folder. I'm starting to get strong not-invented-here vibes around this project... hopefully I'm wrong. @zxkxyz, one issue I've been running into that is a concern in production settings, and fatal in regulated settings, is prompt injection attacks from the project: I turn off everything I can, and the LLM still gives me the OC spiel. I believe this would also break any non-trivial A2A use cases.
Author
Owner

@taqtiqa-mark commented on GitHub (Jan 22, 2026):

Similar to @taqtiqa-mark's POV, at our company we're beginning to see opencode as more of an openagent and want to build our agents platform around it.

You might find these projects of interest:

@taqtiqa-mark commented on GitHub (Jan 22, 2026): > Similar to [@taqtiqa-mark](https://github.com/taqtiqa-mark)'s POV, at our company we're beginning to see `opencode` as more of an `openagent` and want to build our agents platform around it. You might find these projects of interest: - https://github.com/darrenhinde/OpenAgentsControl - https://github.com/Th0rgal/openagent - https://github.com/OpenAgentsInc/openagents
Author
Owner

@taqtiqa-mark commented on GitHub (Feb 5, 2026):

In the spirit of calling out excellent engineering and design....

I've found that the Pi Coding Agent is more robust and, for me has none of the issues that I've encountered in OC, or has an elegant way to resolve them.... I'm dropping out of OC issues:

@taqtiqa-mark commented on GitHub (Feb 5, 2026): In the spirit of calling out excellent engineering and design.... I've found that the Pi Coding Agent is more robust and, for me has none of the issues that I've encountered in OC, or has an elegant way to resolve them.... I'm dropping out of OC issues: - [Pi Coding Agent](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent) - [Overview](https://mariozechner.at/posts/2025-11-30-pi-coding-agent/) - [Example development session](https://www.youtube.com/watch?v=ANQ1IYsFM2s)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1991