my kettle is full of limescale, how do i get rid of it?
Half fill the kettle with equal parts water and white vinegar, or a sachet of citric acid, boil it and leave it half an hour, then tip it out and boil fresh water twice before you use it again.
Independent guide · not affiliated with Hugging Face
No weights, no training, no packages. Just regex, if-else branches and lookup tables. We cloned it, ran it, and wrote down what it gets right and where it breaks.
user: hi, i'm Sam
pybot: Nice to meet you, Sam. What can I help with?
[module: chat | 808 ms]
user: how long should i boil an egg
pybot: Lower eggs into already boiling water: 6 minutes for a runny yolk, 7 for jammy, 9 to 10 for hard boiled. Cool them in cold water for a minute before peeling so the shell comes away cleanly.
[module: answers | 412 ms]
user: what is 17 times 23
pybot: That's 391.
[module: answers | 3,024 ms]
user: what's my name?
pybot: You're Sam.
[module: memory_store | 2,124 ms]
-v, which prints the module that answeredPyBot needs Python 3.8 or newer and nothing else. We ran it on macOS with Python 3.12.5 at bot/ commit 24cbc04.
# clone and start a chat
git clone https://github.com/huggingface/pybot
cd pybot
python -m pybot
# one question, then exit
python -m pybot -p "Why do onions make you cry?"
# pipe messages in, one reply per line
echo "how long should i boil an egg" | python -m pybot
# install a `pybot` command
pip install . In the chat, /reset clears the conversation and /exit quits. Piped lines share one conversation, so a later line can ask "what's my name?" and get the earlier answer.
| Flag | What it does |
|---|---|
-p TEXT | Reply to one message and exit |
-i | With -p, keep chatting after the first reply |
-s N | Fix the wording choice so replies repeat exactly |
-v | Print the module that answered and the time it took |
--version | Print the version and the bot/ commit, e.g. pybot 0.1.0 (bot at commit 24cbc0439e07) |
Measured on an Apple M3 laptop. The CLI tests run with python -m unittest discover -s tests.
The Hugging Face Space runs the same bot inside your browser with Pyodide, CPython compiled to WebAssembly. The Space only serves files. It took about 4 seconds to become ready on our first visit, and it caches the bot bundle for the next one.
Every turn, each module in bot/modules/ may propose a reply and arbiter.py picks one. The modules lean on four shared parts. Line counts are from our clone, counted with wc -l.
bot/knowledge/ 316,852 lines · 159 files Facts kept as data: cooking, cleaning, health, money, maths, travel and more
bot/memory/ 109,319 lines · 117 files What you and PyBot said earlier, so it can answer "what’s my name?"
bot/compose/ 104,286 lines · 126 files How a reply is worded, and the fallback lines when nothing fits
bot/modules/ 80,926 lines · 110 files Each one may propose a reply. arbiter.py picks the one you see
bot/understanding/ 25,026 lines · 13 files Typos, chat-speak, the topic and what "it" refers to
The CLI wrapper, pybot.py, is 197 lines and holds no chatbot logic. Half of the bot is the knowledge base, which is why it answers kitchen and household questions well.
Recorded with python -m pybot -v -s 1, unedited apart from shortening long replies with an ellipsis. 7 were useful, 2 were honest refusals and 3 missed.
my kettle is full of limescale, how do i get rid of it?
Half fill the kettle with equal parts water and white vinegar, or a sachet of citric acid, boil it and leave it half an hour, then tip it out and boil fresh water twice before you use it again.
how long does that take
Half an hour.
how do i get red wine out of a carpet
Blot it, don’t rub, with kitchen paper, then pour on cold water and blot again, repeating until the water runs clear. A paste of bicarbonate of soda left on it for an hour pulls the rest out.
what is the capital of australia
Canberra, not Sydney: it was purpose-built as the compromise between Sydney and Melbourne.
who wrote pride and prejudice
Pride and Prejudice is by Jane Austen. Other books by Jane Austen: Sense and Sensibility, Emma and Persuasion.
translate hello into french
‘Hello’ in French is Bonjour — say it roughly "bon-ZHOOR".
tell me a joke
What do you call a sleeping bull? A bulldozer.
what’s the weather like today
I can’t check the forecast from here, sorry - no live weather in me.
write a python function to reverse a string
I’m not sure about that one, sorry — I’d rather not guess.
explain quantum entanglement
Go on - what’s been happening?
summarise the plot of hamlet in two sentences
What do you need? I’ll take it from there.
who won the 2026 world cup
The men’s World Cup has been held every four years since 1930 … so 2026 is not a tournament year.
On SmolTalkBench, 1,000 prompts where an LLM judge compares each reply with a reference answer, PyBot's win rate rose from 0% to 26.7% over the swarm's commits. That is level with SmolLM-360M-Instruct at 26.6%, and behind SmolLM-1.7B at 40.6%.
No. There are no weights and no training step. Every reply comes from if-else branches, regular expressions and lookup tables in the bot/ folder. You can open the file that produced a reply and read it.
No. Once cloned, it runs offline on Python 3.8 or newer with nothing else installed. In our test on an Apple M3 laptop, a one-shot -p run took about 5.4 seconds in total, most of it loading the code.
No. In our tests it declined the weather and a request for a Python function. It has no live data and no code generator.
Hugging Face ran a swarm of over 1,000 agents that wrote and evaluated more than 5,000 versions of the bot. The code is Apache 2.0. This site is not part of that project.
Not always. PyBot picks among wordings at random. Pass -s 1 (or any number) to get the same replies again, which is how every reply on this page was recorded.