AutoGen Explained: Microsoft's Multi-Agent Framework for Developers

AutoGen is Microsoft's open-source framework for multi-agent apps where agents collaborate through conversation. Here is how it works and its current status.

By Galactic News Editorial · Published 2026-11-19T07:44:40+00:00 · Updated 2026-11-19T07:44:40+00:00

AutoGen explained Microsoft multi-agent framework for developers

AutoGen Explained: Microsoft's Multi-Agent Framework for Developers

AutoGen is Microsoft's open-source framework for building applications where several AI agents work together. The agents talk to each other in structured conversations until a task is done. One agent might write code. Another might run it. A third might check the result. This guide explains how AutoGen works, how its versions differ, and what its archived status means for developers starting a project today.

What AutoGen is

AutoGen comes from Microsoft Research. It is a Python framework for multi-agent applications. Each agent is powered by a large language model. Agents have names, system prompts, and model configurations. They can also call tools and functions.

The core idea is conversation. Agents do not call each other directly. They send messages through a group chat or a reply chain. The message history becomes the control flow. The order of work emerges from who speaks when. That makes the system easy to follow and easy to debug.

AutoGen was first described in a research paper by Wu and colleagues in 2023. The paper is titled AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. It introduced the pattern of agents collaborating through conversation to solve tasks that one agent could not handle alone.

AutoGen is free and open source. The code lives on GitHub under the Microsoft organization. It runs on Python 3.10 or newer. It works with OpenAI, Azure OpenAI, and other model providers through its extension packages.

How AutoGen works: agents that talk

AutoGen has two classic agent types. The AssistantAgent is powered by a language model. It receives messages, reasons about them, and writes responses. It can write code, propose solutions, and answer questions. It does not execute code itself.

The UserProxyAgent acts on behalf of a human. It executes code that the AssistantAgent writes. It can ask the human to step in at any point. It can run fully autonomously, or it can pause before each piece of code runs. The most common pattern pairs one AssistantAgent with one UserProxyAgent. The assistant writes code. The proxy runs it and returns the output.

A GroupChat brings more agents together. A GroupChatManager picks the next speaker. It can choose by rotation, by random selection, or by asking a language model. Speaker selection is where most bugs hide. A bad choice can loop the conversation or stall it.

Tools connect agents to the outside world. A developer defines a normal Python function, then registers it with the framework. An agent can call it during the conversation. Common tools include running shell commands, querying a database, and fetching web pages. Code execution should run in a container, never directly on the host machine.

Termination conditions stop the conversation. The classic setting is max_consecutive_auto_reply. It caps how many turns one agent can produce before the framework forces a stop. Without a cap, two agents can talk forever.

AutoGen 0.2 vs 0.4: what changed

AutoGen has two main release lines. Version 0.2 is the classic line. It installs with one command: pip install pyautogen. Its classes are ConversableAgent, AssistantAgent, UserProxyAgent, and GroupChatManager. Many production systems still run 0.2.

Version 0.4 rebuilt the framework. The package split into parts. Developers install pip install autogen-agentchat autogen-core autogen-ext. The new design has three layers. AgentChat is the high-level conversation layer. Core is an event-driven runtime based on the actor model. Extensions connect to outside services and libraries.

A simple 0.4 program looks like this. An AssistantAgent takes a model client. The agent runs a task. The result prints to the console.

import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient

async def main() -> None:
    agent = AssistantAgent("assistant", OpenAIChatCompletionClient(model="gpt-4o"))
    print(await agent.run(task="Say 'Hello World!'"))

asyncio.run(main())

Version 0.4 also adds team types. A RoundRobinGroupChat cycles through agents in order. A SelectorGroupChat lets a model pick the next speaker. A Swarm team passes work by handoff. GraphFlow and StateFlow support advanced workflows with explicit state. These patterns give developers more control than the 0.2 group chat did.

The two versions are not drop-in replacements. Code written for 0.2 needs changes to run on 0.4. Developers should pin one version and read the docs for that version before copying examples.

AutoGen Studio and the developer experience

AutoGen Studio is a web interface for prototyping with agents without writing all the code by hand. It installs as a separate package. The commands are pip install -U autogenstudio, then autogenstudio ui --port 8080 --appdir ./myapp. It is built on AgentChat. It suits teams that want to sketch an agent flow before writing production code.

AutoGen also includes AutoGenBench, an evaluation harness for testing agent systems. Memory support lets agents keep context across turns. The Teachability capability adds persistent memory through a vector database. These pieces make AutoGen a full toolkit, not just a chat library.

Is AutoGen still maintained?

No. This is the most important fact for new projects. Microsoft has archived the AutoGen project. The official docs carry a clear warning. The project is no longer actively maintained. Microsoft is not providing bug fixes, security fixes, new features, or support. The repository stays available for historical and reference purposes.

Microsoft advises against production use. The docs say AutoGen was developed for research and experimentation. They warn that without ongoing maintenance, vulnerabilities in the project and its dependencies may remain unaddressed. Developers should assess those risks before using AutoGen, especially with sensitive data.

Microsoft folded the AutoGen ideas into its newer Agent Framework. New users should start there. Existing users are encouraged to migrate using the official migration guide. The concepts carry across. Agents, tools, group chat, and handoffs work in similar ways in the new framework.

That does not make AutoGen useless. It remains a good way to learn the conversational multi-agent pattern. Its design influenced CrewAI, LangGraph, and other frameworks. But a new production system should not start on an archived codebase.

AutoGen vs CrewAI

AttributeAutoGenCrewAI
OriginMicrosoft ResearchCrewAI Inc.
Core modelAgents talk in group chat; history is the control flowRole-based Crews inside event-driven Flows
LanguagePython 3.10+Python
LicenseMIT, open sourceMIT, open source
Visual builderAutoGen Studio for prototypingCrewAI Studio visual editor
MaintenanceArchived; no longer maintained; migrate to Microsoft Agent FrameworkActively developed; 1.0 released October 2025
Best forLearning the conversational pattern; existing 0.2 systemsNew production multi-agent systems

Bottom line

AutoGen explained in one sentence: it is Microsoft's framework for teams of language-model agents that solve tasks by talking to each other. Its conversation-first design is elegant and easy to debug. Its 0.4 rebuild added a solid runtime and team patterns. But the project is archived, and Microsoft directs new users to its Agent Framework. Learn from AutoGen. Build new systems on a framework that is still maintained.