Personal WhatsApp agent
Haris Muhibić built a private WhatsApp assistant on Pi Durable. Every turn is committed before it runs, so a crash or redeploy continues where it stopped, and a delivered answer is never sent twice.
- Role
- Founder, sole engineer
- When
- October 2026
- Stack
The problem
I wanted a personal assistant on WhatsApp that could remember facts, run routines, call outside tools and change its own code — without losing a turn when the process dies mid-reply, and without acting outside the chat without my approval.
What I built
A single-owner WhatsApp agent on Pi Durable. Inbound messages, model turns, tool calls and routines are committed before they run. A crash or Coolify redeploy resumes; a retried webhook is answered once; a delivered answer is never sent twice.
- Memory and routines: standing facts and preferences, plus daily, interval or one-shot routines in Europe/Sarajevo time. Quiet routines that have nothing to report are dropped instead of pinging the phone.
- Outside tools through Executor MCP: Gmail, GitHub, X and the rest stay behind a self-hosted gateway with its own credentials and approval rules. The agent asks on WhatsApp before anything with outside effects.
- Voice, photos and PDFs: voice notes are transcribed; answers can be spoken back; photos and PDFs reach the model with size and retention limits.
- Self-editing with a human gate: asked to change itself, it edits a checkout, runs tests, and sends a diff. It pushes only after I reply with an approval code the model never sees. A failed deploy rolls back to the last-good commit.
- One harness per database: an exclusive SQLite lock so Coolify’s rolling update never runs two harnesses on the same volume.
Why it matters
It is a production-shaped durable agent in a small surface: exactly-once delivery, tool approvals, media, schedules and safe self-modification — the same durability problems that show up in customer-facing agents, proven on my own phone.
Building something similar? Book a 30-minute call or email haris@chern0.dev.