Hugging Face open-sources Legion and publishes field report on scaling swarms to thousands of agents

_lewtun · x · 2026-11-26

Hugging Face released a new blog, "Scaling Swarms to Thousands of Agents," alongside Legion, an open-source framework that runs collaborating agent teams on Harbor tasks. The authors argue the know-how for running huge agent swarms is locked inside a handful of labs, so the post is a fully open field report on problems rarely documented.

Key questions covered:

Legion gives each agent its own container, with message-board tools for sharing findings and shared services; it manages agent sessions, progress and model usage reporting. It runs on a laptop, Hugging Face Jobs, or Slurm, supports HF Inference Providers or any OpenAI-compatible endpoint, and tools are added as Python functions. The project is early-stage with breaking changes expected.

Related event: Hugging Face Open-Sources Lessons from Running a 1000-Agent DeepSeek Swarm(7 posts)→

Original post →

More from coding & agent

coding & agent channel →