ai newsMi., 25. Nov.
EilmeldungCan Claude’s storage webhooks miss an hour-long outage?

I Built an AI Companion App With No Backend at All

Every AI companion app I tried wanted the same three things: a monthly subscription, an account, and my conversations living on their server forever. The "memory" was always a black box too — the character would forget something important, and there was no way to see what it remembered, let alone f

dev.toSonntag 06:22 · 22.11.2 Min. Lesezeit
Bild: dev.to

Every AI companion app I tried wanted the same three things: a monthly subscription, an account, and my conversations living on their server forever. The "memory" was always a black box too — the character would forget something important, and there was no way to see what it remembered, let alone fix it.

So I built the opposite. Xinyu is an AI companion app for Android with no backend. Not "backend I promise to keep private" — there is literally no server. The whole brain is ~4,700 lines of pure-stdlib Python (zero pip dependencies) running inside the APK via Chaquopy, talking straight from your phone to the DeepSeek API with your own key.

Full disclosure: this is my own product, and I sell the license on Gumroad. This post is about how it's built and why.

The feature I care about most. Everything the companion remembers about you lives in a notebook inside the app:

Anyone who has hand-curated a lorebook in SillyTavern knows why this matters: memory you can't inspect eventually becomes memory you can't trust. (The app imports SillyTavern character cards, by the way — PNG chara/ccv3 and JSON.)

My first version of group chat had every character reply to every message in turn. It read like a meeting, not a conversation.

Now there's a director step: one extra LLM call per group message decides who speaks (usually 1–3 characters), who stays silent, and in what order. Non-speakers still get their mood appraised from what happened. Each character also has a mood and affection state shaped by group events, plus a slow-burning "what's on their mind" thread that develops over days and leaks into later chats. The difference in feel is hard to overstate — silence turns out to be half of believable group dynamics.

If you build with LLMs, I'm curious: how are you handling long-term memory in your projects — and would your users trust it more if they could open it and edit it, like a notebook? That bet is the whole product, and I'd love to hear where it breaks.

Quelle: dev.to (dev.to). Original öffnen