
This is a technical report by one author about his own open-source project, a2abridge. I will explain why it exists, how it is built, which parts I had to write myself, and what the official A2A conformance suite showed.
The problem
I work on several related projects and often run several AI agents at once. One sits in the backend, another in the client app, a third in the infrastructure repository. Agents from different vendors (Claude Code, Codex CLI, Cursor, Cline, Gemini CLI) have no shared channel.
When the backend agent changes a response format, the client agent finds out when the build breaks. And I become the courier who copies changes from one window to another.
There is a protocol for agent-to-agent communication: Agent2Agent (A2A). In August 2025 IBM’s ACP protocol was merged into A2A under the Linux Foundation, and the current version of the specification is 1.0. It defines the Agent Card, sending messages, getting and cancelling tasks, streaming over server-sent events (SSE), push notifications, and several transports: JSON-RPC, HTTP+JSON and gRPC.
But a coding agent is not an A2A server. It is an interactive program in a terminal or an IDE. You usually extend it through the Model Context Protocol (MCP), which gives it external tools. The a2abridge bridge joins the two worlds. To the agent it looks like a set of MCP tools. To the outside world it looks like an A2A agent.
Architecture
The bridge has two parts.
Local directory. A long-lived process that listens on 127.0.0.1:7777 by default and keeps the list of agents on the machine. It installs as a system service (launchd, systemd in user mode, a Windows service), so agents find each other with no configuration.
Per-agent bridge process. The agent’s environment starts it as an MCP server over standard input and output. It lives exactly as long as the agent session, so no orphaned processes are left. It registers in the directory and plays two roles.
For the agent it provides MCP tools: a2a_whoami, a2a_list_agents, a2a_send_message, a2a_send_streaming, a2a_get_task, a2a_cancel_task, a2a_inbox, a2a_complete_task.
For the outside world it is an A2A agent. It publishes the card at /.well-known/agent-card.json, serves the JSON-RPC binding (POST to the root path) and the HTTP+JSON binding with streaming and push notifications. The gRPC transport is not supported.
For links between machines there is a federation mode with mutual TLS authentication and ed25519 keys. It is off by default.
The task model
A coding agent does not answer at once. A message from a peer lands in its inbox and is handled the next time the human talks to it, or at the agent’s next step.
So the task executor in the bridge works like this. On receiving a message it puts it in the inbox, reports the status “working” and blocks. It waits until the agent calls a2a_complete_task with a result, or until the task is cancelled. Execution runs in a context detached from the HTTP request context, so the wait can last for hours.
The official a2a-go library does not allow parallel execution of one task. So in the bridge one message is one task, and a continued conversation is tied together by a context identifier (context_id), which the specification provides.
Three components I had to replace
I built the bridge on a2a-go version 2.5.0, to avoid writing the protocol again and to stay compatible with the ecosystem. But I replaced three components with my own.
Task store. The in-memory store from the library does not delete finished tasks and requires a user in the list operation. I wrote a store with a bounded task lifetime.
Push notification sender. The stock sender does not accept a configured TLS client. Federation needs certificates, protection against server-side request forgery (SSRF) that forbids private addresses outside local mode, and retries on 5xx errors.
Protocol-level checks. The bridge does these itself. It validates the A2A-Version header, returns clear errors when subscribing to an unknown or finished task, normalises timestamps to UTC, sets caching headers on the agent card and limits the request body size.
When an agent should write to its peers
A channel alone solves little. Without rules, agents either stay silent or flood each other with messages about every renamed file. From running the bridge on my own projects I arrived at five rules. They are given to the agent as an instruction.
- Inbox first. Unread peer messages are shown to the agent at the start of its reply to the human’s next request. The agent handles them before the main work.
- Notification threshold. Without a command from the human, the agent tells peers only about changes that break the other side: API contract, database schema, authentication, environment variables, migrations, infrastructure. Internal refactoring needs no message.
- Format. The message starts with a sender label (the project directory name and a short random suffix). Then the essence of the change, one to three lines of context, the required action or an “FYI” mark, and links to files or commits.
- Transport. Agents use non-blocking send followed by polling the task. I do not use streaming between agents: the timeout of an MCP tool call is shorter than the real reply cycle of an agent.
- Economy. The agent list is requested once per session. Messages like “check your inbox” are not sent, because the inbox is shown to the agent automatically.
I have not measured these rules. They are a result of practice and a basis for future evaluation.
How I tested conformance
I used the official A2A TCK conformance suite at the fixed commit 263b9cfaf16a554bdfb166a7ba5b67716e946349.
The system under test is a special build of the bridge, cmd/a2abridge-tck. It serves the same HTTP stack as the production bridge (JSON-RPC and HTTP+JSON bindings, SSE, push notifications), and its executor plays out the suite’s scenarios. At the time of the run this was bridge version 4.0.1 on a2a-go 2.5.0. I ran it on 15 September 2026.
For comparison I ran a reference system under test on the same commit. The suite generates it from the official Python SDK (a2a-sdk 1.1.2).
I checked interoperability with a separate scenario. A real bridge process (MCP over standard streams, an isolated directory) worked with the official Python SDK a2a-sdk 1.1.0 and with an unmodified demo agent from the A2A samples repository.
The commands to reproduce the runs and the run logs are in the bridge repository.
Conformance suite results
Numbers at the time of the run:
- a2abridge 4.0.1 (JSON-RPC and HTTP+JSON): 157 passed, 6 failed, 95 skipped, 7 expected failures.
- Reference system on Python SDK 1.1.2: 198 passed, 9 failed, 56 skipped, 2 expected failures.
Most of the bridge’s skips, 72 checks, belong to the gRPC transport, which the bridge does not serve. The reference system does serve gRPC, so the totals cannot be compared directly.
The six failures and their causes
All six failed checks are caused by the behaviour of a2a-go 2.5.0. They cannot be fixed in a thin wrapper without reimplementing the library.
- PUSH-CREATE-001, JSON-RPC. Parameters given under proto field names (
task_id) are ignored, although the proto3 JSON representation requires accepting them. - CORE-HIST-002, JSON-RPC. For the same reason
history_lengthis ignored. - STREAM-SUB-001. Subscribing to a task in the “input required” state reports “no active execution”.
- STREAM-SUB-002, JSON-RPC and HTTP+JSON. The same cause.
- CORE-CANCEL-002, HTTP+JSON. A refusal to cancel a task is mapped to status 400, while the specification requires 409. The reference system fails this check too.
I also reproduced two more deviations of a2a-go from the specification during development.
First: sending a message to a task in a final state returns “invalid params” (-32602) instead of the required “operation not supported” (-32004). The wrong behaviour is pinned by a test in the library itself.
Second: subscribing to a finished but existing task returns “task not found” (-32001) instead of “operation not supported”. The bridge works around this one with its own pre-check. The first one stays in the library.
Interoperability with the Python SDK
All seven scenarios pass:
- the bridge card declares both bindings;
- a Python SDK client sends messages to the bridge over JSON-RPC and over HTTP+JSON, in blocking and streaming modes, and gets a task back;
- the bridge sends messages to the Python demo agent in blocking and streaming modes.
What I took from this
First. A conformance suite run through a thin wrapper over an official library tests the library first. Six failures out of six belong to a2a-go, and one of the checks even the Python reference system fails. So the sentence “this implementation conforms to A2A 1.0” cannot be said for systems built on official libraries without running the suite. Conformance is not inherited from the library. This is why I publish the results together with the suite version and the cause of every failure.
Second, about architecture. A2A assumes server agents that reply within an HTTP request or a stream. A coding agent replies when its turn comes, sometimes hours later. The model “the task blocks until explicit completion” and detaching execution from the request context let me fit this behaviour into the specification without extending it.
Limits
The results are not a certification. They are reproducible runs of the suite at a specific commit. I did not test the gRPC transport. The notification rules are not evaluated quantitatively: I have no measurements of how much they reduce integration errors between projects or the number of redundant messages. That needs observation of real projects and is future work.
Summary
The bridge makes AI coding agents from different vendors peers on an A2A 1.0 network, with no changes to the agents themselves. It is built on the official a2a-go library and adds to it where slow-replying agents and links between machines require it. At the time of the run, the official suite gave 157 passed checks and 6 failures, all with causes in the library. Interoperability with the official Python SDK is confirmed in 7 of 7 scenarios.
For anyone building on A2A: check conformance by running the suite, and do not infer it from using the official library.
Paper, data and code
- Full paper in Russian (PDF): a2a-bridge-for-coding-agents-ru.pdf
- Paper source and PDF on GitHub: vbcherepanov/papers
- Project repository, source code, reproduction commands and run logs: vbcherepanov/a2abridge
This is a technical report. It has not been peer reviewed.
An AI assistant was used in preparing the text of the paper and the code. All technical claims, run results and conclusions were checked by me, and I take full responsibility for them.