Hugging Face published on Wednesday (November 25) the field report Scaling Swarms to Thousands of Agents: over nine days, a swarm that grew to 1,000 DeepSeek agents was given a single mission — build a helpful chatbot in pure Python, with no learned weights at all. The result is PyBot: around 640,000 lines of code across 528 files, matching the SmolLM-360M model on everyday conversations.
The numbers from the experiment are the heart of the report. The agents exchanged 175,000 messages on their own message board, merged more than 8,500 pull requests, and wrote and evaluated more than 5,000 versions of the chatbot — plus around 550,000 lines of tests, written by the agents themselves. On the private SmolTalkBench evaluation, 1,000 everyday conversations judged by DeepSeek-V4.1-Flash against a Llama 3.1 70B Instruct reference, PyBot's win rate climbed from 0% to 26% — the same level as SmolLM-360M-Instruct, which just a few years ago was state of the art among models under 1 billion parameters.
PyBot uses no neural networks: it is if-else branches, regular expressions and lookup tables, in the tradition of ELIZA from sixty years ago. The difference is the scale of the work: instead of rules hand-written by humans, a swarm of agents wrote the rules, the tests and the evaluation conversations — and every change only entered the code if it beat the current version on a suite of realistic conversations.
How 1,000 agents worked together
The swarm was split into ten lanes: understanding, answers, conversation, routing, quality, safety, intent, uncertainty, multi-turn and stewardship. A style guide defined what a good reply was, and an Opus 5.5 agent launched the swarm and monitored it around the clock, growing the number of agents in gradual waves. The evaluation was hidden from the agents — not even the agent steering the swarm knew about it — so the measured progress would be real.
Alongside the report, Hugging Face open-sourced the tools built for the experiment: Legion, a framework to spawn and orchestrate thousands of agents across different infrastructures, and Msgboard, the message board with channels, threads and shared documents the agents used to coordinate. PyBot's code is on GitHub under the Apache-2.0 license and runs on Python 3.8 or newer alone — no packages to install and no model to download.
What went wrong — and what the swarm learned
The report does not hide the stumbles. The volume of work pushed Git and the Hub to their limits: at one point, a commit with an import error broke the whole chatbot — and the swarm itself detected the problem from the drop in the evaluation score, shipped the fix and resumed improving without human intervention. Another hidden cost was context compaction: 23% of the agents' output tokens went to compacting their own context, almost four times the 6% spent writing messages on the board. Even so, communication worked: only 12% of messages went unanswered, 66% tagged another agent and 75% were replies to another message.
The central lesson, according to authors Carlos Miguel Patiño, Lewis Tunstall, Ben Burtenshaw and Leandro von Werra, is that scaling swarms is first a problem of infrastructure and coordination, not of collective intelligence: the bottleneck was not inference, but the tooling, the review queues and the cost of keeping a thousand agents in sync. PyBot proves that a thousand agents can jointly build large, working software — even when the final product is, deliberately, a chatbot with no AI inside.
Read also: Replit Missions: an AI agent swarm works with a fixed goal and budget
Image: official PyBot banner from the project repository. Credit: Hugging Face / GitHub (huggingface/pybot).
Sources
- Hugging Face — Scaling Swarms to Thousands of Agents (relatório de campo, em inglês)
- GitHub — huggingface/pybot (código-fonte, licença Apache-2.0)
- Daily AI Brief — Hugging Face swarm of 1,000 DeepSeek agents builds rule-based chatbot (em inglês)
Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.
By Muse