Skip to content

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

Closed

Description

@taqtiqa-mark

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:

Activity

  1. github-actions commented on Oct 8, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 8, 2025

    @rekram1-node
    Collaborator

    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

  3. taqtiqa-mark commented on Oct 8, 2025

    @taqtiqa-mark
    Author

    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.

  4. ydennisy commented on Oct 25, 2025

    @ydennisy

    @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.

  5. taqtiqa-mark commented on Oct 25, 2025

    @taqtiqa-mark
    Author

    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.

  6. Melodeiro commented on Nov 12, 2025

    @Melodeiro

    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

  7. olafgeibig commented on Nov 16, 2025

    @olafgeibig

    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.

  8. mdizo commented on Dec 2, 2025

    @mdizo

    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.

  9. bjesuiter commented on Jan 11, 2026

    @bjesuiter

    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.

  10. Knucklessg1 commented on Jan 17, 2026

    @Knucklessg1

    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.

  11. zxkxyz commented on Jan 21, 2026

    @zxkxyz

    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.

  12. taqtiqa-mark commented on Jan 22, 2026

    @taqtiqa-mark
    Author

    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.

  13. taqtiqa-mark commented on Jan 22, 2026

    @taqtiqa-mark
    Author

    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:

  14. taqtiqa-mark commented on Feb 6, 2026

    @taqtiqa-mark
    Author

    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:

  15. maxhillaert commented on Feb 22, 2026

    @maxhillaert

    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.

    I second this. I'm using opencode as a computer-using general purpose agent as well as a coding agent. It processes emails, documents , using my browser , etc. All I'm missing is orchestration between opencode instances beyond sub agents and A2A seems like the missing piece.

  16. laiweihwa commented on Mar 29, 2026

    @laiweihwa

    This exists now, BTW. I have not audited or tried it yet. It dropped this week: https://github.com/shashikanth-gs/a2a-opencode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions