homie is a new voice assistant that runs directly on Apple silicon Macs, living in the MacBook notch and responding to the fn key. It lets you set timers, control music, access your calendar, point to screen elements, and get spoken feedback—all without leaving your device or needing an internet connection.
The stack combines Qwen 3.5 4B running through llama.cpp on Metal, Kokoro-82M for voice synthesis on the Neural Engine, and Apple's built-in speech recognizer. But the real challenge tackled here was not just getting everything to run, but making it feel fast. On an M5 MacBook, the model outputs 15–30 tokens per second, but that still means a basic timer request could take several seconds—unacceptable for an assistant.
Pattern Matching for Speed
The biggest speedup comes from avoiding the LLM when possible. Most daily requests—like toggling dark mode, opening apps, or playing music—are handled by a set of hand-written patterns. Around 600 lines of these patterns catch routine phrasings and trigger actions directly, executing in about a millisecond.
To prevent accidental matches, the developer built a test suite with negative examples, so commands like “close this window” don’t quit apps, and questions like “why is dark mode bad for your eyes” don’t get misinterpreted. Before tuning, the pattern matcher caught 87% of a held-out set; after tuning, it hit 214/214 phrasings with zero wrong fires. Anything not caught by a pattern is sent to the model.
For information readouts, the approach is similar: instead of sending a calendar request to the LLM and waiting for a summary, the code reads EventKit directly, builds a sentence, and sends it straight to the speech engine—cutting response times from several seconds to less than one.
Prompt State Caching
Every LLM call typically requires reloading the prompt and tool definitions—about 3,700 tokens, which would mean waiting 7–19 seconds per request. homie solves this by saving the model’s state after the prompt, right at the user-turn marker, and restoring it for each interaction. This takes the number of tokens read per question from thousands to around 45, reducing launch-to-ready time from up to 10 seconds to just 0.12 seconds.
A bug in cache consistency surfaced: the tool JSON was serialized from a dictionary, so key order changed on each launch, causing cache misses. Sorting the keys made the prompt byte-identical every time, fixing the issue. The developer also notes that only using a stable tool list keeps the cache valid, even though it means not optimising the prompt for each request.




