Autogen
Agent BuildingautogenAutogen is an Agent Skill for agent building published in the mkurman/zorai repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
AutoGen (Microsoft) — multi-agent conversation framework. Agent-to-agent chat, code generation & execution, tool use, group chat, and human-in-the-loop. Build collaborative AI systems with specialized agents.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/mkurman/zorai/blob/HEAD/skills/scientific-skills/autogen/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/autogen, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Overview
AutoGen (Microsoft) enables multi-agent conversations where specialized LLM agents collaborate, write and execute code, use tools, and solve problems together. Supports group chat, human-in-the-loop, and flexible agent topologies.
Installation
uv pip install pyautogen
Two-Agent Coding
import autogen
config_list = [{"model": "gpt-4", "api_key": "sk-your-key"}]
assistant = autogen.AssistantAgent(
name="coder",
llm_config={"config_list": config_list},
)
user = autogen.UserProxyAgent(
name="user",
human_input_mode="NEVER",
code_execution_config={"work_dir": "coding", "use_docker": False},
)
user.initiate_chat(
assistant,
message="Write a Python function to calculate Fibonacci numbers.",
)
Group Chat
from autogen import GroupChat, GroupChatManager
groupchat = GroupChat(agents=[engineer, critic, executor], messages=[], max_round=10)
manager = GroupChatManager(groupchat=groupchat, llm_config=llm_config)