Castmates
Interactive stories with the language model running on the phone
Castmates is a story app where you chat and talk with characters. The whole language model runs on the iPhone through llama.cpp, so it works in airplane mode, needs no account and costs nothing per message to run.


The problem
Apps like this usually send every message to a cloud model, which means accounts, server bills and conversations stored on someone else's machine. We wanted it to run on the phone and still feel like a conversation.
What we built
A model on the phone
Google's Gemma running through llama.cpp, fully on the device.
Guards on every reply
A guard layer catches common model mistakes and quietly tries again.
Voice calls
Talk to the characters out loud, not only in text.
A cast to start with
32 characters across 8 worlds, with 96 hand-written story openings.
Your own characters
Name them, shape them and pick their look in a few minutes.
Changes measured before they ship
A fixed-seed test setup on the Mac, so every model or prompt change gets measured first.
accounts needed
characters across 8 worlds
hand-written story openings


App Store screenshots we designed
Every frame below is live on the App Store.




Stack
App
SwiftUI
Inference
llama.cpp, Gemma
Testing
A fixed-seed evaluation setup on the Mac