AG2AI (community)
AG2
Community-run multi-agent framework that grew out of AutoGen, now built around agent networks, subagents and A2A.
Install
Run in your terminal
pip install ag2
Latest version read from pypi package ag2.
Multi-agent patterns
Subagents / agents as tools
A main agent calls other agents like tools and gets their result back, each with its own context.
How AG2 does itGraph or workflow
You define steps and edges (or a workflow), and the framework runs agents and functions through them.
How AG2 does itGroup chat / crew
Several agents with roles work together on a task, coordinated by a manager or a selection rule.
How AG2 does itHuman in the loop
The run pauses for a person to approve, edit or answer before it continues.
How AG2 does itProtocols and hosting
Hosted runtime
Self-hosted only (none documented)
Questions
Does AG2 support MCP?
Yes. AG2's documentation shows agents using tools from MCP servers.
Does AG2 support the A2A protocol?
Yes. AG2's documentation covers the Agent2Agent (A2A) protocol.
What multi-agent patterns does AG2 support?
The docs show: handoffs, subagents / agents as tools, graph or workflow, group chat / crew, human in the loop.
Links
Alternatives in the same languages
Get the weekly agent stack update
New official MCP servers, spec changes and harness releases, checked against the source. One email a week, no fluff.
Reviewed Oct 7, 2026.