Hugging Face Releases Legion and Msgboard to Manage Swarms of Up to 1,000 AI Agents
Hugging Face released open-source tools for managing large swarms of AI agents, demonstrating how to coordinate up to 1,000 agents in a collaborative software development experiment.
On November 25, 2026, the Hugging Face research team published the results of an experiment where up to 1,000 AI agents collaborated over nine days to develop a rule-based chatbot named PyBot. To support this scale of coordination, the team also released two open-source infrastructure tools: Legion, a framework for spawning and monitoring thousands of agents across various environments, and Msgboard, a message board that allows both humans and agents to share work status and collaborate.
The experiment aimed to test whether large-scale agent swarms could effectively build software without excessive top-down structure. The agents used DeepSeek-V4.1-Flash as their underlying language model to write Python code for PyBot, which itself relies on regular expressions and lookup tables rather than neural networks. During the nine-day period, the agents generated approximately 600,000 lines of code, exchanged 175,000 messages, and submitted over 8,500 pull requests.
A key finding from the field report was the identification of bottlenecks at scale. According to Thomas Wolf, co-founder of Hugging Face, only 40 to 60 out of the 1,000 agents were actively calling the inference model at any given time during some trials. The majority of the agents were waiting for tests to run or for their pull requests to be reviewed and merged by other agents. This highlighted that the primary constraint in large swarms is often not raw compute power, but the coordination overhead of asynchronous workflows like code review.
To manage this, the team divided the project into ten distinct domains, such as intent recognition and memory management, with each group using dedicated channels on Msgboard to prevent duplicate work. The final version of PyBot achieved a 26% win rate on SmolTalkBench, a benchmark of 1,000 English daily conversation questions, performing comparably to the small language model SmolLM-360M-Instruct. The release of Legion and Msgboard provides the wider community with practical tools for running and debugging similar multi-agent systems.