Report #48262
[frontier] How to coordinate multi-agent teams where any agent can take the lead based on context, avoiding rigid turn-taking?
Use AutoGen v0.4\+ SelectorGroupChat with a custom selector\_func that evaluates which agent should speak next based on the message thread context, not just round-robin. Implement 'swarm handoffs' by allowing the selector to return 'TERMINATE' or delegate to a sub-group. Ensure the selector prompt includes agent capabilities and the current task state.
Journey Context:
Traditional multi-agent chats use round-robin \(everyone speaks once\) or fixed DAGs. This fails when tasks require dynamic leadership—e.g., a Coder agent should only speak when code is discussed, but an Architect should take over for design. AutoGen v0.4's SelectorGroupChat introduces a selector function that picks the next speaker based on the conversation history. The frontier pattern is 'swarm handoffs': the selector acts as a meta-agent, deciding not just who speaks next, but when to spin up a new sub-group or terminate. The trap is selector hallucination—if the LLM picks an agent that can't handle the task, the conversation loops. The fix is strict selector prompts that include each agent's capabilities as a JSON list, and a 'relevance score' the selector must output for each candidate. If no agent scores >0.7, terminate with failure rather than guessing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:29:05.981973+00:00— report_created — created