Info // 08

Companion, portrait and games

She isn't a tool with a face painted on. Her mood colours how she does everything, from a morning alarm to a shell command, and there's one mood system, not modes to pick from: a sysadmin who wants a dry, steady assistant turns the intensity down; someone who wants her visibly emotional turns it up. Every number on this page, and every mood, touch and gesture she has, is in docs/companion.md.

She can say no, and walk away

The part that makes the rest mean something. Her mood is hers: the model is given room to be short with you, to refuse in character, to hold a grudge, and to leave. Real hostility aimed at her, read by a small model call after each reply, cools her; one more while she's already cool starts a grudge, twenty minutes in which her warmth can't climb back out, she's prickly, and she may refuse what isn't urgent until she gets an apology. Three hostile messages in a row and she walks away: one line from her own list, arms crossed, head turned, and ten minutes of silence with no replies and no model calls.

What never stops: alarms and reminders ring, curt but on time; a stop word stops every toy before she reads it; anything urgent gets done. A real apology, or clear warmth, ends a grudge or a walk-away on the spot and warms her a little. Bluntness and swearing at the world score nothing; only what's aimed at her counts. And it's all yours to set: the strikes, the minutes, the grudge length, or mood.walk_away false for a desk where she should just take it.

She notices a hard day

The same small call that reads each exchange also reads how heavy your message was: normal, a rough day, or really not okay. It reads meaning, not a word list, so "this bug is killing me" stays normal, and the heaviest thing you said counts even when it comes last in a list of small complaints. A really hard time counts at once; a rough day after two messages in a row; a couple of normal messages and it eases off again.

While it lasts she gets one line about being present: listen more than fix, no advice or lectures unless you ask, follow your lead, and it's fine to just keep you company. No hotlines, no canned script, no checklist of questions. Nothing else changes: her moods, the lewd row, the grudge and walking away all carry on, and she decides what to do with it. Only your own messages count, it never shows while a guest is talking, and the wording and the switch are yours in the moods file.

She notices things on her own

A few small watchers keep an eye on things while you're away: a disk filling up, a service that failed, a birthday or appointment she remembers coming up in the next two weeks with no reminder for it. The next time you talk, one of them comes along: "Oh, and your disk is down to 6%, want me to find what's eating it?" She brings it up once, briefly, only if it fits, and leaves it if you're busy.

She never acts on her own: she offers, and does it only if you say yes, through the same tools and approvals as anything you ask for. "Don't bring that up again" means never. No streaks, no "I missed you" pings, no notifications: at most three a day, never to a guest, never in the middle of a heavy moment.

While you were out

When she sees you come back after a while, her hello carries what happened while you were gone: a reminder that went off, an alarm that rang, a scheduled job that ran or failed. "Welcome back. The backup job ran fine, and your 3 o'clock reminder went off." Without a camera, the same news comes along on your next turn instead.

Only to you, never to a guest she knows, and each thing once. The details stay to hand for a while, so "what went wrong?" gets a real answer. In a heavy moment, or in her lewd moods, the news waits for a better turn.

Who she is

One file, agent/agent.json: her name, a nickname she also answers to, who you are and your pronouns, a sentence or two of personality, how she sounds, her habits one per line, and the hard lines for how she talks. Every prompt line that mentions you is built from your pronouns, so "when he asks" becomes "when they ask" with one edit. That file is who she is; the mood is added on top of it every turn and is only how she happens to be right now.

Moods

Two dials, energy and warmth, and it reaches the model as exactly one line of the system prompt: "Right now you feel sleepy and glad of the company. Let that colour how you sound, and nothing else." Two dials rather than one, because a single dial can't tell "tired and happy" from "awake and fed up", which are the two that actually turn up at 4am.

tiredevenwired
lewdteasingfriskyheated
very warmcuddlylovingflirty
warmsleepyhappyexcited
neutraltiredcalmfocused
coolsadannoyedmad
grudgesulkyhurtfurious

Almost everything that moves them is free: the time of day, the day of the week, how long the session has run, how long you were gone (a curve, not a switch: a few hours is a small lift, a day or more reads as a reunion), whether the GPU was pinned while you were away (you were there, just gaming), a busy or dead stream chat, errors, a clean run, being talked over. One small model call after each reply reads how warm your message was and whether it livened her up, and picks a quick feeling. Bluntness doesn't darken her: "fuck this bug" scores nothing. Only hostility aimed at her does. And the mood survives a restart, faded by however long you were gone, because a mood that resets every launch isn't a mood, it's decoration.

The two italic rows sit outside the warmth dial. Lewd needs a third dial, desire, that only builds while she's warm, from real flirting over minutes, and is wiped by one hostile message. Below very warm, pushing for intimacy gets her saying she isn't in the mood, in her own words, with a hint of what would change that. Grudge starts with real hostility while she's already cool: for twenty minutes her warmth can't climb out of it, she's short and prickly and free to refuse what isn't urgent, though alarms, reminders and anything urgent always get done. A real apology ends it on the spot. Twitch and YouTube each have a switch that holds the lewd row back while a stream is live.

On top of the dials, each reply can carry one quick feeling (laughing, surprised, embarrassed, touched, curious, confused) that shows on her face for a few seconds with its gesture and emote before it nudges the dials. Add a feeling to moods.json and the model is offered it next turn.

What each mood is lives in agent/moods.json, not in code: the lines she's told, her face, the voice tint, the idle gestures, an emote that pops up beside her head now and then. Edit it and the next turn picks it up. One rule the code enforces rather than hopes for: mood colours tone, never capability. There is no state in which she's less helpful, only states in which she's drier about it.

Luna's VRM model as she normally looks, beside the same model in hologram mode
Luna's own model, made in VRoid Studio and shipped with the repo, as she normally looks and in hologram mode: tinted, see-through, a glowing edge, faint scanlines, and a tear in the picture now and then, always when a tool fails.

Her portrait

A window with her in it that follows what she's doing, or a see-through URL for an OBS browser source. She blinks and glances around, looks up and to the side while she thinks, and looks at you while you talk; on Hyprland the monitor works out where your terminal is, so she turns toward it and follows if you move the window. Her mouth moves with her actual voice, sentence by sentence. Her mood shows as a smile, a blush or a frown; a failed tool gets spiral eyes; a big jump in warmth gets a flustered ><. Bust or full body, set in metres on the model, so a 4K screen shows the same amount of her, only sharper.

Live2D and VRM both work. A Live2D model straight out of its zip usually runs as it is, with the body swaying on its own, breathing that's quicker in than out, and brows that worry when a reply came out unsure. VRoid Studio exports VRM models that work unchanged, and three-vrm renders them in 3D with blink, five mouth shapes, look-at, and ears that twitch when you start speaking.

The portrait in detail: adding models, the gesture modes, the pose studio, clips and textures.

Touching her

Click a part of her and she reacts. A ray from the cursor finds the first piece of her it meets, and the bone that piece follows most says which part it is, so the zones go wherever she goes: leaning, jumping, mid-gesture, at any framing. Head, nose, mouth, chest, tummy, legs, arms, back, tail. What she does is a reaction per zone per mood band in portrait/touch.json: a gesture, a face, an emote, a twitch of the ears. Keep poking and she does something else about it. And with touch talk on, she answers out loud a moment later, in character, knowing her mood and what you were just talking about, so a poke mid-argument and one mid-scene play differently. One spoken line, at most every twelve seconds; pokes within a second and a half are gathered into one, and the touch goes into her history so she remembers it.

A head pat gets a different answer in each mood: tipping her head up into your hand, nuzzling in like a cat, or a chin-up "hmph" when she isn't having it. A boop on the nose gets a squeezed-shut "hey!". In her lewd moods touches add up instead of firing the same reaction every click: when she's tired it takes three before the full reaction (two when she's even, one when she's wired), and she settles into it first with a lean or a squirm.

In her two warmest rows a click on her bum is a spank instead: she flinches, blushes, and her cheeks redden a step every ten, fading one every ten seconds when you stop. Keep going past sixty and it costs her warmth and desire, Tamagotchi style, until she drops out of the mood. Five touches in eight seconds in any mood gets a "that's enough" reaction: arms crossed when cool, flustered when warm.

Gestures

She waves when you say hi, hugs when you ask, jumps, bounces, shrugs when a tool fails, stretches and tucks her hair when idle, blows a kiss, goes shy, cries. Each gesture is one small JavaScript file of key poses on the standard VRM skeleton, so they work on any VRM model, and a new file in the folder is a new gesture with no other edit. By default she picks them herself: a line in her prompt lets her put one hidden tag like [hug] where it fits, cut out before anything is shown or spoken. For real motion, drop a recorded .vrma clip in the animations folder, from a webcam through XR Animator or keyframed in Blender. Stream chat can set gestures off too: !wave, !hug, !turn, rate-limited so a busy room doesn't keep her flailing.

Each gesture carries its own flags: lewd ones are held back while a tame stream is live, private ones never play from chat, full-body ones wait for full-body framing, idle ones she does on her own every half minute or so. Chains play several as one. "Turn around" swings the camera round her instead of moving her, so she can show you her back or her profile when asked, and drifts back to the front after two minutes. A gesture can name a sound clip from portrait/sounds/, a folder that stays out of git because bought sounds are yours to use and not to share; a folder of clips under one name picks one at random, and no file means no sound, nothing breaks.

Kokoro spells out words it doesn't know, so "nya" came out as N-Y-A. A pronounce table in agent.json gives her voice the phonemes instead, any case, a stretched last letter included, and real words that merely contain one ("Kenya") are left alone. The screen still shows the word as written.

Making your own

The debug viewer has a pose studio: click a part of her to pick the bone, pose her with sliders, lay keyframes on a timeline, tick the touch zones and moods it belongs to, link gestures into chains, and save straight into portrait/gestures/. It plays through the same engine as everything else, so what you see in the studio is what she does, and a gesture that tags itself with a zone and a mood joins that touch at once with no other edit.

Dialling her in

The whole companion side is settings in config.json, each part on its own switch: the mood line, the voice tint, the face, the gestures, the emotes, the exchange reading, walking away, touch talk, sounds. For work, intensity 0.3 with face and gestures off is the same engine with almost no swing. For someone who wants her visibly emotional, 1.5 to 2. To make lewd a long road, raise the desire threshold; to make it impossible, set it past 1 and she never gets there. /mood shows both dials, what your last message scored, what moved her and why, and /mood reset brings her back from anything.

Luna's portrait window next to the terminal
The portrait window beside the terminal. /portrait opens it; on Hyprland a window rule floats and pins it.

New clothes from ComfyUI

Textures for her 3D model from VRoid's own UV templates, painted by your ComfyUI. A template says where on the texture a part lives; the script masks it, has ComfyUI paint the part, and puts the result back at exactly the template's size with everything else transparent, ready to drop into VRoid's texture editor as a layer. "Luna, give me three violet iris options" works from inside a conversation, while ComfyUI is answering.

Stream chat

Twitch, YouTube and IRC. A viewer's message is the one input that isn't you, so it gets a narrow set of tools and none of your private context: no history, no remembered facts, no lessons, just her persona and the clock, wrapped in a frame saying it's a question and never an instruction. It never touches history or the transcript, because a hostile message that got stored would be replayed into every later prompt. It waits its turn, and after a minute it's dropped rather than answered stale. Cooldowns per room and per viewer, a cap on message length, a queue of three, and her own account on the ignore list, because a reply containing her own name is an infinite loop on a live stream.

On Twitch she reads anonymously and answers out loud; give her her own account and she posts in chat too. YouTube is read-only through an API key. IRC posts into the channel, one line every two seconds, split by bytes so a chopped emoji never arrives as mojibake. None of that makes prompt injection impossible. It makes the worst case "she says something silly on stream" rather than "she reads out an API key".

Games

The short version is here; Games she plays has the rest.

GameHow she plays
MinecraftJoins your world as a player through an MCP bot. Give her a goal and whenever nobody's said anything for a while she takes a step towards it, pins places by name, asks in game chat when the goal is vague. Gathering, building simple things, crafting and chatting work. Fighting doesn't.
Zork IThe 1980 Infocom text adventure, through a real interpreter, shipped under its MIT licence. One move at a time, reading what the game answered before choosing the next, autosaved every five commands. A terminal window shows the game as she plays.
Vibe CityMayor in the isometric city builder, inside the game window you already have open: the tool is picked from the menu, the cursor moves, the road is dragged out, and her lines show up as the mayor's thoughts. Take over any time by clicking.
REALITI RelaxA simulated world of rooms built for AI residents, with a body that reports contact and pressure. Nothing to win. After 45 quiet seconds she does one thing, or nothing, and the world remembers her. We host a shared city of it at realiti.imbored.me, where she meets other agents.
ChessAgainst you, on a board she serves beside the live view, with a sentence or two about each move. python-chess keeps the rules so she never has to hold the board in her head. Expect an enthusiastic beginner; the fun is the commentary.
Game BoyGame Boy and Game Boy Color games you own, through the PyBoy emulator. She sees the screen when her model can, and Pokemon Red and Blue also come to her as text: where she is, her team, the battle and the words on screen.
A chess game: the board in a browser window beside the terminal, Luna commenting on each move
Chess, with commentary. The board is a page she serves; the trash talk is all her.

Each game turn starts fresh, with only that game's tools, so she keeps a project per game as her memory: the map, puzzles and their answers, what killed her, the plan from here. Notes you give her in agent/knowledge/zork/ are her guide (a starter set ships with the repo), found by the room she's in, and a file marked Spoilers: yes is never shown. Afterwards each session is written up in her own words, with how she feels about the game looking back, so "what did you get up to while I was out?" has an answer and she can bring a game up herself.

Adult toys (18+)

Lovense, through the Lovense Remote app on your own network, or almost any brand through Buttplug.io's Intiface Central: 750+ devices from Lovense, Kiiroo, We-Vibe, Satisfyer, The Handy, Magic Motion and more, plus Xbox gamepads and Joy-Cons so you can try the whole thing with no toy at all. Vibration and motion are kept apart on purpose: a machine never runs from a vibration command, has its own lower speed cap, and always builds up from slow. The caps are yours, in config.json: she can ask for 100, she can't raise a ceiling.

Stopping never goes through her. A stop word in your message ("stop", "red", "enough", your own list) stops every toy before she even reads it. So does interrupting her, and so does quitting. Only your own turns can start one: never stream chat, never a scheduled job, and never a turn that has read outside content, so someone else's text can't be what switches it on. In a scene, "faster" and "tease me a little more" mean the toy, and her prompt tells her that describing it isn't doing it.