Case 02 · AI / Chatbot
Sidekick
A WhatsApp chatbot that runs entirely on a phone at home
- ANDROID
- ON-DEVICE
A 1B model can't cover for sloppy design, so everything around it had to be careful.
The idea
I wanted to see how far a regular Android phone could go. Could it run a language model well enough to be useful in our group chats, without anything going to the cloud?
So now there's a realme phone on a charger at home, running llama.cpp, whisper.cpp and a small vision model inside Termux. Friends tag it in a group like Meta AI and it answers, sets reminders, makes polls and stickers, transcribes voice notes and catches people up on what they missed — in English and Hinglish, because "kal shaam 6 baje yaad dilana" is how we actually type.
The build
A 1B model gets things wrong a lot, so I kept it on a short leash. Plain code decides almost everything — whether to reply, which command it is, who's allowed. The model only steps in when language actually needs understanding, and even then it fills a JSON grammar in llama.cpp so the output is always valid. Anything it extracts gets checked against the message, and times, currencies and places are parsed by code instead of guessed.
The most fun bug was speed. Using all 8 cores of the Dimensity 7050 gave 3.5 tokens/s; pinning llama.cpp to just the two big Cortex-A78 cores gave 12.3 tokens/s, because the slow cores were holding the fast ones back. The rest was fighting Android to stop it killing everything in the background.
What I learned
Sidekick taught me more about small models than any big one has. When the model is weak, the interesting work moves into everything around it.
- llama.cpp
- Gemma 3
- whisper.cpp
- SmolVLM
- Node.js
- Baileys
- SQLite
- Termux