🎙️ homie: voice assistant in the MacBook notch runs fully offline on the Mac with a 4B model
In brief
- 🎙️ homie is an open-source (MIT) voice assistant for Apple silicon Macs: hold fn, talk, and it sets timers, plays music and reads your calendar.
- 🔒 Speech, model (Qwen 3.5 4B) and voice (Kokoro) all run on the Mac, also without internet.
- ⚡ Developer Saif Ali says speed comes from patterns for everyday commands and a saved prompt state: 0.12 s instead of 5 to 10 s to ready.
🎙️ homie is a voice assistant that lives in the MacBook notch. You hold the fn key and talk; homie sets timers, plays music, reads your calendar, marks things on screen and talks back. It was built by Saif Ali and the code is MIT-licensed. 🔒 According to [homie](https://homie-mac.vercel.app/), everything runs on the Mac: the language model Qwen 3.5 4B through llama.cpp, the voice Kokoro-82M and Apple's on-device speech recognition. After the one-time model download the assistant works without internet. It needs an Apple silicon Mac on macOS 26 or newer. ⚡ A small model is slow: on an M5 with 16 GB it writes 15 to 30 tokens per second. So homie asks the model only when it has to, and it saves the prompt state so that it never has to be re-read.
🧩 **What homie does.** On the product page Ali describes holding fn to talk, and the assistant can type what you said wherever the cursor is, using Apple's on-device speech recognition. You can circle something on screen and ask what it is; on Macs with 16 GB or more a vision model looks at the circled area. There is also a chat tab, 3D models you can spin (molecules, maths surfaces, planets), and homie can circle, underline or point at buttons and words. A tier called “homie max” runs the chat on a large cloud model, so there the chat leaves the Mac. The pages we read name no price.
📝 **Why commands are quick.** A tool call has to be written token by token; even a timer costs the model 2 to 5 seconds. So about 600 lines of patterns recognise everyday phrasings (timers, dark mode, opening an app, a song, the calendar) and call the tool directly in about a millisecond. The risk is firing on the wrong thing, so the test suite holds phrases that must not match, such as “close this window” or a question about why dark mode is bad. On a held-out set the patterns caught 87% before tuning; now they cover 214 of 214 phrasings with no wrong fires. Everything unrecognised goes to the model. Reading out the calendar is code too: EventKit supplies the events, a sentence is built and the voice starts in under a second.
💾 **The saved prompt.** The system prompt with tool definitions is about 3,700 tokens; re-reading it on every question costs 7 to 19 seconds on this hardware. llama.cpp can save the model state after reading a prompt, and homie stores it on disk ending exactly at the user-turn marker. Each question then adds about 45 tokens instead of 3,700, and launch-to-ready fell from 5 to 10 s to 0.12 s. One day of debugging went into a single bug: the tool JSON was serialised from a dictionary whose key order changed on every launch, so the cache missed each time; sorted keys made the prompt byte-identical. For the same reason homie does not filter tools per request: every new list invalidates the cache and costs 4 to 17 s.
🗣️ **Speaking and listening.** homie waits 0.35 s after a clearly complete command, 0.6 s normally and 1.2 s after a trailing “and …”. At 0.25 s of silence the model already starts on what was said and throws the result away if you keep talking, which Ali measured as practically free. The voice starts with the first phrase while the model keeps writing; the p90 time to first sound fell from 1.49 s to 0.88 s. When a tool call starts streaming, homie says “On it” at once. For circling, the model writes no coordinates, it only names the target; Apple's text recognition and the Accessibility tree find the spot in about half a second.
🧪 **What did not help.** Ali lists his failures: speculative decoding was slower (2.5 to 3.1 s against 1.9 s), MLX instead of llama.cpp gave 34 against 31 tokens per second, and flash attention or more threads gave nothing. A “remember” tool was called one time in five; facts are now extracted after the chat. A 2B model with the 4B's prompt managed 16 of 30 tasks, with plain rules and a grounding check 26 of 30; it is the automatic tier for 8 GB Macs.
🛡️ **Safeguards and network.** Because a 4B model will sometimes act confidently wrong, an action needs a matching word in what you actually said, tool-call text that leaks into a reply is never spoken and invented IDs are redirected. According to Ali the only network requests are the one-time model download from Hugging Face (pinned and SHA-256 checked), iTunes Search when you ask for a song, and whatever site you ask it to open. You can check that the model listens only locally with `lsof -nP -i -a -c llama-server`. The code, benchmark scripts and the full experiment log are on GitHub, and there is a signed build.