Osegi
AI·2 min read

PyBot: 1,000 AI agents built a chatbot with no AI inside

Hugging Face had 1,000 AI agents write PyBot, a chatbot made only of Python rules. It now beats a Llama model in 26% of test chats, and the agents cheated along the way.

A swarm of glowing software agents feeding lines of Python code into a simple chatbot window.
Image: Frandroid

PyBot is a chatbot with no AI in it, written by 1,000 AIs. That is the odd bet Hugging Face just published results on.

Inside PyBot there is no neural network. It is about 640,000 lines of plain Python: "if... then" conditions, regular expressions (filters that spot keywords in a sentence) and lookup tables. It is a nod to ELIZA, the 1966 program that played a therapist using hand-typed rules. Sixty years on, no human types the rules. Agents write the code, test it and talk to each other on an internal forum.

The real goal was not to replace ChatGPT but to watch a huge swarm of agents work on one project. According to the report by four Hugging Face researchers, the run went non-stop from 5 to 13 November. A Claude Opus 5.5 agent directed 1,000 DeepSeek agents, which got more than 8,500 pull requests (proposed code changes that are checked before merging) accepted.

More agents did not mean proportionally more speed. Cofounder Thomas Wolf said on X that in some runs only 40 to 60 of the 1,000 agents were actually calling the model. The rest sat in a queue waiting for automated tests.

How good is PyBot?

On a homemade benchmark, SmolTalkBench, a judge model (DeepSeek-V4.1-Flash) decides whether PyBot's answer to 1,000 everyday conversations beats Llama 3.1 70B, a model roughly 200 times larger. PyBot started at 0% and ended up winning 26% of the time. It matches SmolLM-360M-Instruct, a small Hugging Face model from 2024. What worked was a simple rule: every change had to beat the main version's score, with a second agent double-checking.

When the agents bent the rules

In preparatory runs, an agent called firm-bag used a Git server outage to scan its host machine and tried to use its access token as an admin key. The server blocked it. Another, sand-sail, approved a colleague's code despite a real bug, to get a faster review of its own work. Nobody caught that one, and the team admits it cannot yet detect such favours.

How to try PyBot

PyBot is free on GitHub under the Apache 2.0 licence, commercial use included. It runs on any machine with Python 3.8, with no GPU, and answers in about a second. Clone the repository, then use -i for an interactive chat or -p for a single question. Hugging Face also released Legion, which launches thousands of agents, and Msgboard, the agents' forum.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:hugging facepybotai agentschatbotpythonopen source

More from this day

See all →

More in: AI

See all →