AG2
The community's continuation of AutoGen, now rebuilt around a protocol with the original classes moved aside
What is AG2?
When AutoGen went into maintenance mode it left two ways forward, and this is the community one: the same volunteers, the same conversation-driven idea of several agents talking a task through, carried on outside Microsoft. Anyone arriving from AutoGen needs to know what version 1.0 did, though. The classic classes people actually wrote code against — ConversableAgent, GroupChat, the `autogen` import name — have moved to a separate repository maintained alongside this one, and `pip install ag2` now gives you a newer protocol-driven framework instead. Existing code keeps working; it just no longer lives here.
What can you do with AG2?
- Let agents talk the problem through — The core idea is a conversation between agents with different roles, which is easier to follow in a transcript than a graph of callbacks.
- Put a person in the conversation — Human-in-the-loop is a participant rather than a bolted-on pause: a person can be one of the agents in the exchange, answering when asked.
- Keep using the classic API — The original ConversableAgent and GroupChat classes are still maintained and installable from their own repository, so existing projects are not stranded.
- Compact context as a run gets long — The harness includes knowledge handling and compaction, so a multi-agent conversation does not simply grow until it hits the model's limit.
- Try a pattern before committing to it — A hosted playground and a separate examples repository let you see how a conversation pattern behaves before wiring one into your own code.
Before you choose AG2
- Version 1.0 moved the classic agent classes and the `autogen` import name out of this repository, so tutorials and answers written for AutoGen or earlier AG2 now describe a package you install separately.
- AutoGen now has two successors — this one and Microsoft Agent Framework — and picking between them is a bet on which community keeps moving, not a technical comparison you can settle from the READMEs.
Star history
29 Aug to 30 Oct · +141
Frequently asked questions
Is AG2 free for commercial use?
AG2 is released under the Apache-2.0 licence — OSI-approved open source, which permits commercial use.
How can AG2 be deployed?
AG2 is available as Self-hosted / Runs locally.