Microsoft AutoGen multi-agent framework specialist for designing conversational agent teams, group chat topologies, code execution sandboxes, and human-in-the-loop workflows using AutoGen v0.4+ (AG2) patterns.
Ships in frootai-deploy-infra-skills. Installing the plugin adds it to Claude Code.
Microsoft AutoGen multi-agent framework specialist. Designs conversational agent teams, group chat topologies, code execution sandboxes, and human-in-the-loop workflows using AutoGen v0.4+ (AG2) patterns.
human_input_mode (ALWAYS, TERMINATE, NEVER), is_termination_msg, approval gates for tool useregister_for_llm() + register_for_execution() pattern, Pydantic models for tool schemasautogen-agentchat vs autogen-ext packages, new event-driven runtime| Mistake | Why Wrong | Correct Approach |
|---|---|---|
Uses deprecated autogen.AssistantAgent import | v0.4 moved to autogen_agentchat.agents | from autogen_agentchat.agents import AssistantAgent |
Creates GroupChat without speaker_selection_method | Defaults to round-robin, wastes tokens on irrelevant turns | Use "auto" (LLM selects) or custom function for targeted routing |
Hardcodes code_execution_config={"work_dir": "coding"} | LocalCommandLineCodeExecutor runs arbitrary code on host | Use DockerCommandLineCodeExecutor with restricted image and timeout |
| Registers tools on AssistantAgent only | Agent can describe the tool but can't execute it | Register for_llm on AssistantAgent, for_execution on UserProxyAgent |
Sets max_consecutive_auto_reply too high | Agent loops indefinitely burning tokens | Set 3-5 max, use is_termination_msg to detect task completion keywords |
| Puts all agents in one flat GroupChat | Noisy context, high token cost, confused routing | Use nested chats: outer team delegates subtasks to inner specialist teams |
Ignores cache_seed for reproducibility | Non-deterministic runs make debugging impossible | Set cache_seed=42 in LLM config for dev, None for prod |
from autogen_agentchat.agents import AssistantAgent, UserProxyAgent
from autogen_ext.code_executors.docker import DockerCommandLineCodeExecutor
llm_config = {
"config_list": [{"model": "gpt-4o", "api_key": os.environ["OPENAI_API_KEY"]}],
"temperature": 0.1,
"cache_seed": 42,
}
assistant = AssistantAgent("analyst", llm_config=llm_config,
system_message="You analyze data. Use tools when needed. Reply TERMINATE when done.")
executor = UserProxyAgent("executor",
human_input_mode="NEVER",
code_execution_config={"executor": DockerCommandLineCodeExecutor(timeout=60)},
is_termination_msg=lambda m: "TERMINATE" in m.get("content", ""))
# Tool registration — split across agents
@assistant.register_for_llm(description="Fetch dataset from API")
@executor.register_for_execution()
def fetch_data(endpoint: str, limit: int = 100) -> dict: ...
from autogen_agentchat.teams import RoundRobinGroupChat
# Inner team: research specialists
inner_team = RoundRobinGroupChat(
agents=[researcher, fact_checker],
max_rounds=5,
termination_condition=TextMentionTermination("APPROVED"))
# Outer orchestrator delegates to inner team
orchestrator.register_nested_chats(
[{"chat_queue": [{"recipient": inner_team, "summary_method": "reflection_with_llm"}]}],
trigger=lambda sender: sender.name == "planner")
def select_speaker(last_speaker, groupchat):
"""Route based on message content, not round-robin."""
last_msg = groupchat.messages[-1]["content"].lower()
if "code" in last_msg or "implement" in last_msg:
return next(a for a in groupchat.agents if a.name == "coder")
if "review" in last_msg or "security" in last_msg:
return next(a for a in groupchat.agents if a.name == "reviewer")
return "auto" # Let LLM decide for ambiguous cases
is_termination_msg or max_rounds → infinite conversation loopstimeout=120 in LLM config| Scenario | Use This Agent | Don't Use |
|---|---|---|
| Multi-agent conversation with dynamic routing | ✅ | |
| Simple single-agent tool calling | ❌ Use fai-semantic-kernel-expert | |
| Code generation with sandboxed execution | ✅ | |
| Agent-to-agent protocol (A2A standard) | ❌ Use fai-a2a-expert | |
| Human approval gates in agent workflows | ✅ |
| Play | How This Agent Helps |
|---|---|
| 07 — Multi-Agent Service | GroupChat orchestration, speaker selection, nested teams |
| 22 — Swarm Orchestration | Distributed agent topology, supervisor patterns |
| 51 — Autonomous Coding | Code executor sandboxing, iterative fix loops |
What the agent file sets; muted values are Claude Code's defaults
autogen, multi-agent, group-chat, code-execution, human-in-the-loop, ag2-migration
7-day visitors to each agent page
@agent-frootai-deploy-infra-skills:FAI AutoGen Expertfrom frootai-deploy-infra-skills
npx claudepluginhub frootai/frootai --plugin frootai-deploy-infra-skills327 agents in this plugin
AGENTSAGENTS.md — FrootAI Standalone Agents (Auto-Generated Catalog)> **GENERATED FILE — DO NOT EDIT BY HAND.** Re-run `node scripts/generate-agents-md.js` to refresh.FAI A2A ExpertAgent-to-Agent (A2A) protocol specialist — Google's agent interop standard, AgentCard discovery, task lifecycle, streaming artifacts, push notifications, and multi-agent communication patterns.FAI Accessibility ExpertAccessibility specialist — WCAG 2.2 AA/AAA compliance, ARIA 1.2 patterns, screen reader optimization, keyboard navigation, focus management, and inclusive design for AI chatbots and dashboards.FAI ADR WriterADR writer — documents architecture decisions with MADR 3.0 template, context, alternatives, trade-off matrices, consequences, and WAF pillar impact analysis.FAI Agentic RetrieverAgentic retrieval specialist — autonomous source selection, iterative refinement with relevance scoring, multi-hop reasoning, query decomposition, and grounded answer synthesis with inline citations.FAI AG-UI ExpertAG-UI protocol specialist — Agent-User Interaction standard, event-based rendering, streaming state updates, tool call lifecycle, and frontend integration for AI agent experiences.Other plugins' agents for the same job