Back to all workshops

Agent-to-Agent with Mastra

May 28, 20264:00 PM UTC60 minutes

Your agent doesn't have to do everything itself — and it probably shouldn't. In this workshop, you'll learn how to use two open protocols, A2A and ACP, to connect your Mastra agents to remote agents and specialized coding harnesses running anywhere, in any language or framework.

A2A (Agent-to-Agent) is an open protocol that lets agents delegate work across network and language boundaries. You'll see how to consume a remote agent — even one built in Python or LangChain — as a Mastra sub-agent using just a URL. We'll cover how agent cards work for discovery, how A2A's async task model handles long-running work, and how push notifications let you get results without holding a connection open.

ACP (Agent Client Protocol) solves a different but related problem: handing off tasks to CLI-based agent harnesses like Claude Code or Gemini CLI. These tools are already great at writing code, searching repos, and generating files — ACP lets your Mastra agent delegate to them directly, getting the best of a purpose-built harness without rebuilding its capabilities from scratch.

You'll walk away understanding when to reach for A2A vs ACP vs MCP, and how to wire both protocols into supervisor agents and workflows. Whether you're coordinating agents across teams or plugging Claude Code into your pipeline, this session gives you the practical building blocks to make it work.


Hosted by

Recording and code examples will be available to everyone who registers.

Workshop Hosts