MegaAgent: A Large-Scale Autonomous LLM-based Multi-Agent System Without Predefined SOPs
Qian Wang, Tianyu Wang, Zhenheng Tang, Qinbin Li, Nuo Chen, Jingsheng Liang, Bingsheng He
TL;DR
MegaAgent addresses the scalability and autonomy gap in LLM-based multi-agent systems by introducing a hierarchical, OS-inspired framework that autonomously decomposes tasks, forms dynamic agent groups, executes tasks in parallel, and monitors results without predefined SOPs. The system combines a multi-level task management stack (Boss-Agent decomposition, dynamic group formation) with a robust hierarchical monitoring and a producer–consumer message-queue, plus Git-based file management and vector-memory for persistent context. Empirical results show MegaAgent outperforms baselines on standard benchmarks, and achieves full Gobang game development within 800 seconds and national policy generation with 590 agents in 2,991 seconds, supported by ablations and cost analyses that underscore the necessity of hierarchy, parallelism, and monitoring. The work demonstrates strong potential for real-world large-scale MAS applications, while acknowledging limitations in planning overhead, hallucinations, and API costs, and pointing to future directions in memory, token efficiency, and cheaper LLM integration.
Abstract
LLM-based multi-agent systems (MAS) have shown promise in tackling complex tasks. However, existing solutions often suffer from limited agent coordination and heavy reliance on predefined Standard Operating Procedures (SOPs), which demand extensive human input. To address these limitations, we propose MegaAgent, a large-scale autonomous LLM-based multi-agent system. MegaAgent generates agents based on task complexity and enables dynamic task decomposition, parallel execution, efficient communication, and comprehensive system monitoring of agents. In evaluations, MegaAgent demonstrates exceptional performance, successfully developing a Gobang game within 800 seconds and scaling up to 590 agents in a national policy simulation to generate multi-domain policies. It significantly outperforms existing systems, such as MetaGPT, in both task completion efficiency and scalability. By eliminating the need for predefined SOPs, MegaAgent demonstrates exceptional scalability and autonomy, setting a foundation for advancing true autonomy in MAS. Our code is available at https://github.com/Xtra-Computing/MegaAgent .
