Choose a look
Open Create bot (or Edit bot) and go to Look. It has four tabs: Library, Describe, Your photo and Initials. Library holds every character, one family at a time. Search characters looks across all of them.
Drag a character to turn it. Press a state (Idle, Thinking, Working, Review, Happy, Wave, Walk, Failed or Sleep) to see how it moves.
Characters in Yours, Objects and Shapes take any Colour, Finish (Flat, Matte clay, Soft plush, Glossy vinyl, Glazed ceramic, Jelly or Brushed metal) and Accessory. Press Use as avatar to apply one; the bot keeps its current look until you do. Characters in the other families are finished art, so they apply as soon as you pick them.
Describe a character
In Describe, type a hobby, a role or an object, such as “a small kettle” or “chess”, and press Make character. The model you have selected in the app draws the shape, and the new character appears in Yours, ready for its colour, finish and accessory. Describe shows which model it will use, and it counts as a normal request on that model. With no model selected, it uses the Allternit default, and you need to be signed in. If your selected model can’t answer, Describe says so and offers the default as a button. It never switches by itself. To run it elsewhere, choose Use another chat instead, copy the prompt into any chat app, then paste the reply back and press Add character. A reply that can’t be used tells you what is wrong.Make a 3D character from a photo
In Your photo, upload a photo and choose Turn into a character, then 3D character. Confirm that the photo is of you or that you have the person’s permission, and press Make 3D character. Your selected model must be able to read images. It draws a simple caricature from the hair, colours and clothes in the photo, and the character opens in Library, with every state, finish and accessory. The photo goes to the model once and is not kept. For a closer likeness in one picture, choose Painted portrait instead. Yours stays in this browser and holds up to 24 characters. Removing one never changes a bot that already uses it. Look works the same on Desktop, the ai.allternit.com phone layout and the m.allternit.com app. If a browser can’t draw 3D graphics, the stage says so and the fixed-art families still work.The guide follows your bot
When you pick a bot (in the Bots top deck, the launchpad, or the chat composer), the bot takes the stage above the greeting in place of Gizzi. With no bot selected, Gizzi stays as before.Your bot’s stage
The stage is a dark tile with a soft glow in the bot’s color. Your bot stands on it with its own avatar, alive:- It breathes, glances around now and then, and leans toward your pointer.
- Click it and it squishes, then voice starts with that bot. While voice is on, a click only makes it squish.
- While voice is on, it listens and speaks with you. It swells with your voice while it listens, and with its own voice while it speaks. Cast characters such as Goldie or Modem move their mouths as they talk. Gizzi and avatars built from eyes and a body look where you point.
- The line under the tile says what the bot is doing: Listening, Speaking, Muted, Thinking…, Working…, Needs you, or Something went wrong. It is empty when the bot is idle.
How animated avatars move
Animated avatars react to what their bot is doing, everywhere the bot appears (the rail, headers, the phone drawer and Bots screen): they run while a tool works, look thoughtful while the bot thinks or writes, wait when the bot needs you, wave when a reply finishes, jump when a plan finishes and slump when something fails. After five minutes with nothing going on they doze off. Mentioning a bot again makes its avatar wave. The Allternit orb works the same way: it moves while the main bot works or thinks, listens with a sweep that breathes with your voice, and melts and pulses while it speaks. A bot that needs you nudges side to side until you answer. In a bot’s own chat, the bot’s avatar also stands in for the Allternit orb on the working line: it thinks, searches, works and writes there while a turn runs, waits beside a question it asked, and rests under the finished reply. The Allternit orb stays the mark for the rest of the platform and for A:// itself. In a group chat, the resting mark under the last reply is that bot’s avatar. Characters drawn with real frames for each state really walk and wave. Characters whose sheets don’t have real frames hop instead of pretending to walk, so every avatar moves in a way that looks intended. Characters with real frames for every state: the whole Gizzi YouTube cast (Gizzi, Dropsy, Crescent, rimraf, Yessir, Modem, Spicy, Gem, Ini, Goldie, the Acolyte and the Host), every Gizzi Brawl fighter and Super form (including Super Codex, Super Grok and Gizzi Lightning, new to the picker), and the four fuzzy dots in Dot Friends: Bleu, Lily, Sunny and Rosie. Bots already using one of these switch to the new frames by themselves.Desktop pet
Allternit Desktop can keep your bot on your desktop as a small pet that floats above other windows.- Click it for quick work with that bot. Double-click it to show or hide the Allternit window. Drag it anywhere. Right-click for its menu: Quick chat, Pet, size and visibility, Reset position, Walk around when idle, and Hide desktop pet. To turn the pet on or off, open Settings → Desktop pet (under Desktop app) and use Show pet on desktop; the same page has Walk around when idle, Pet settings and Reset position. You can also bring a hidden pet back from the Allternit icon in the menu bar: Show Desktop Pet.
- It shows what your bots are doing, whichever bot is busy: it runs while a tool runs, looks things over while a bot thinks, waits when a bot needs you, waves when a reply finishes, jumps when a plan is done, and slumps when something fails. After five quiet minutes it falls asleep. Every avatar does this. Characters with drawn frames play them, and the rest (portraits, uploads, photos, generated avatars) hop, rock, slump, dim and spin.
- If a reply finishes while the Allternit window is hidden or in the background, the pet wears a mail badge. It goes away when you go back to Allternit or open quick chat.
- In Pet, size and visibility you pick which bot it is and how big it is (48 to 160 px). The Gizzi terminal pet wears the same bot.
- With Walk around when idle on (the default, also in Pet, size and visibility), the pet strolls along its row when nothing is happening and stays put while a bot works. Characters with drawn frames walk; the rest hop along. It never walks if your system is set to reduce motion. Wherever it stops is remembered.
- If a reply finishes in Allternit while you’re elsewhere, a speech bubble says Reply ready. When a bot needs your answer, it says Needs your answer.
Carry a bot onto anything
You can pick a bot up from the Bots rail and drop it on whatever you’re looking at, then ask it about that.- Out of the app (Allternit Desktop): drag a bot from the Bots rail (the main bot, a promoted bot or any bot in the list) past the edge of the Allternit window. The bot leaves the app and follows your pointer. Let go over another app’s window, such as a chart, a spreadsheet or an email, and quick work opens right there with that bot.
- What it sees: quick work gets the app and window title it landed on as an attachment you can remove before you send. If Allternit already has the macOS Screen Recording permission, a picture of that one window is attached as well. Allternit never asks for the permission for this, and nothing is sent until you send your message.
- Move it: drag the bot onto another window and the attachment changes to that window. The conversation stays.
- Send it home: drag the bot back onto the Allternit window. Quick work closes and your desktop pet goes back to how it was (or hides again if it was off).
- Inside the app (every surface): drop a bot anywhere on the open view instead of out of the window, and a small quick chat opens beside it with the text of that view (the open report, thread or page) attached. On a phone, press and hold a bot in the drawer: the drawer fades away, the bot follows your finger, and letting go opens the quick chat as a sheet at the bottom (the drawer closes then). A quick tap still opens the bot as before.
- Press Escape during the drag to cancel. Press Escape or click outside to close the quick chat.
Terminal agents
The pet also follows agents running in your terminal.- Gizzi reports on its own while Allternit Desktop is running: thinking, running a tool, waiting for your permission, and a wave when a turn ends. To turn this off, set
GIZZI_DESKTOP_PET_HOOK=0. - Claude Code, Codex and other tools can use the hook script that Desktop writes next to its settings. On macOS that folder is
~/Library/Application Support/@allternit/desktop/; on Linux it’s~/.config/@allternit/desktop/. The script does nothing if Desktop isn’t running, and it never holds up the agent for more than a second.
~/.claude/settings.json:
~/.codex/config.toml. Use your full home path, because Codex doesn’t expand ~:
desktop-pet-hook.sh bubble "Tests pass".
Terminal states fade on their own: running and thinking last two minutes unless the agent reports again, so a closed terminal never leaves the pet stuck. A terminal agent’s reply doesn’t add the mail badge, because there’s nothing waiting in Allternit.
Pet offers
When something fails, your bot’s pet can notice and offer to help. It only offers: nothing happens until you click Fix it, and nothing leaves your device until you send the message yourself. The pet looks for errors with a fixed set of rules on your device. No model reads your screen to decide. It offers for:- A failed build, such as
npm ERR!,error TS2322or a failing test run: “That build failed. Fix it?” - A stack trace or command error in a terminal: “That command hit an error. Fix it?”
- An error dialog in another app: “Terminal is showing an error. Fix it?” (with that app’s name)
- A failed run of one of your bots in Allternit: “That run failed. Fix it?”
On Desktop
- What it reads: the window the pet walks over or the window in front, once per stroll, and only while Read other apps’ windows is on. It reads the text in that window through the Allternit Driver that ships with Desktop (the macOS Accessibility permission on a Mac, UI Automation on Windows). It never takes a screenshot for this, and it never reads password fields. It pauses while any bot is working or an agent is using your computer.
- Off until you turn it on: reading other apps is off at first. The pet asks once in a bubble, Turn on?, and clicking it shows the macOS Accessibility prompt. You can also turn it on in Settings → Desktop pet → Pet offers. Offers for Allternit’s own failed runs and for terminal agents (below) work without it.
- The eye: while the pet reads a window, a small eye shows on it. With reduce motion on, the eye stays still.
- Walking over: when it finds an error, the pet walks to that window, sits on its title bar and shows the bubble.
- Fix it: opens quick work with that bot. The error text is attached as a chip you can remove, and a draft asking the bot to fix it is in the composer. Nothing is sent until you press send. If the bot needs to use your computer to fix it, the turn turns on the computer tools for that one message. The bot can’t touch your computer until you take control: its first step, even a screenshot, asks you to. Steps that send, pay or delete then ask for your approval, unless you’ve set the chat to run without asking.
- Never read: the pet never reads password managers (1Password, Bitwarden, Keychain Access, Passwords, LastPass, Dashlane, KeePassXC, Proton Pass), banking and payment apps and sites, Messages, or private browser windows (Private Browsing, Incognito, InPrivate). A browser window whose title can’t be read is skipped. These apps are checked before anything is read, so their windows are never opened at all.
- Your block list: in Settings → Desktop pet → Pet offers, add more apps from the list of running apps or by name, and remove the ones you added. The built-in list above always applies.
- Mute an app: click Mute Terminal (with that app’s name) in the bubble, or press and hold the pet for a moment while the bubble shows. Muted apps are never read. Unmute them in the same settings page, which also has the main Pet offers switch.
- Terminal agents: Gizzi tells the pet when a turn or command fails. Other terminal tools can do the same with
desktop-pet-hook.sh failedfrom their own hook (see Terminal agents).
On the web, the phone layout and the PWA
On ai.allternit.com and m.allternit.com there is no pet on your screen, and the page can’t read other apps. The offer comes from Allternit’s own failures: a bot run that fails, or an error message in the app. You see a card next to your bot on a computer, and a sheet at the bottom of the screen on a phone. Fix it opens the bot’s quick chat with the error text attached, not sent. Mute here (or pressing and holding the card) stops offers on that view. You get no offers while signed out. Turn offers on or off in Settings → Pet offers.On phones and in the terminal
- Android: with Phone Link, error and crash dialogs from other apps can bring up a notification. See Android app.
- iPhone: a banner shows when a bot’s run fails while you’re on another screen. See iPhone app.
- Gizzi: the terminal pet offers
/fixafter a failed command. See Work views.
Settings for pet offers stay on each device. Turning them off on your Mac doesn’t change your phone.
Create bot at a glance
Create bot opens on the look. At the top you see your bot’s avatar, live: it changes as soon as you pick a colour, a character or a photo. The colours sit right under it, and under those the four ways to make a look: Build, Characters, Photo and Initials. Click one to open it in place, or click Edit look. Click Done to fold it away. Next to the avatar (under it on a narrow window or a phone) are the fields: Name — Role (the only one you must fill in) and What it does (pick a role, or describe the job and click Draft instructions from this). More options still holds Instructions, Tools, Runs on and Model. At the very top, switch between Build a new bot and Add a connected bot. On a phone the Create sheet is unchanged: avatar first, name, characters, colours, then More options.Avatar packs
In Create bot (under Characters) or Edit bot → Look, choose a pack and a character. Some characters have animated sheets (idle, walk, run, jump, sad, sleep, action, and a signature move); the rest are still portraits. Connected bots use their vendor’s own mark or the avatar the vendor supplies. See Connected bots. Some vendors also have a family of their own under Look → Characters → Vendors, offered first when you make a bot for that vendor: Grok Carry (xAI, led by Gray Pip, the gray Pip that Grok wears in the bot picker; Originals has it too), Codex Carry (OpenAI), Clawd Crew (Claude and Claude Code) and Duet Carry (Claude Duet).- Clawd Crew is eight flat pixel Clawds, the Claude Code crab, in different colours and hats: Clawd, Pinch, Scuttle, Tidepool, Molt, Barnacle, Shelly and Inky. Their claws go up while they work, and their eyes turn to ^ ^ when they finish.
- Duet Carry is eight clay-coloured shapes, each with one ink line that loops into eyes: Coda, Lyra, Trill, Hum, Riff, Echo, Tempo and Cadence. Their faces follow Duet’s own mascot: a wave while working, a loop while thinking, and two dots when done.
Build a character
Make an original 3D character for your bot in a few seconds, with no account, key, upload or AI. It’s drawn by your browser on your device and is free.- Open Create bot (or Edit bot) and go to Look.
- Choose Build a character (Build in Create bot). Drag the preview (or focus it and use the arrow keys) to turn it.
- Work through Shape → Color → Finish → Accessory:
- Shape: Round, Bean, Cloud, Star, Heart, Droplet, Cube bot, Cat, Bear, Bunny, Owl, Ghost
- Color: nine swatches, or Custom color
- Finish: Matte clay, Soft plush, Glossy vinyl, Glazed ceramic, Jelly, Brushed metal
- Accessory: None, Cap, Beanie, Headphones, Glasses, Bow, Crown, Leaf sprout, Antenna, Scarf, Star badge, Flower
- Press Use as avatar, then Create or Save. If you change the character afterwards, press Use as avatar again. Create and Save wait until you do.
The builder needs WebGL. If your browser can’t draw 3D graphics, the tab says so
and offers the sprite packs, which work everywhere.
Make an avatar from a photo
Open the bot’s Config → Edit bot → Look → Your photo (or choose Photo while creating a bot).- Upload a PNG, JPEG, or WebP (up to 15 MB). On a phone you can pick from your camera roll.
- Choose a style: Pixel sprite, Chibi, or Mascot.
- Confirm that the photo is of you, or that you have the person’s permission.
- Choose a lane:
- Included with your plan: shown first when you’re signed in. Plus includes 5 photo avatars a month, Max 25, Ultra 50. Allternit pays for these; they don’t use your money or your credits. The lane shows how many are left this month (“3 of 5 left this month”). An avatar only counts if one is made, so a failed try doesn’t use one. When they’re used up, the lane shows the date they come back (the 1st of the next month, UTC) and you can still use the other two lanes. Without a Plus, Super or Ultra plan the lane is shown turned off with See plans. If it says Included avatars are paused this month, Allternit has paused the included lane for everyone; use another lane.
- ChatGPT subscription: needs a running Sessions computer, accepted ChatGPT terms in Settings → Connections, and a ready ChatGPT account. If ChatGPT shows a security check, open ChatGPT on your Sessions computer, finish the check, then press Check ChatGPT again.
- OpenAI key: uses your connected key and shows the estimated cost per try. Each approved try can be billed.
- Press Make sprite. This prepares an approval card and sends nothing yet. Only Approve and make avatar sends the photo. Cancel sends nothing.
- Keep the editor open while it runs. Small squares pulse in the preview while your sprite is made, then the portrait fades in. Review it, then save the bot.
For developers
-
Resolution:
resolveBotAvatarConfig(src/lib/agents/bot-avatar-config.ts) reads the editedconfig.avatarfirst, then the decoded legacy column, then the deterministic profile.BotAvatarandActiveAgentMascotshare it. -
Mascot:
useActiveSurfaceAgent(surface)(src/lib/agents/surface-agent-context.ts) resolves which bot represents a surface (surface selection, then open bot-thread metadata, then none).<ActiveAgentMascot>(src/views/bots/ActiveAgentMascot.tsx) rendersVendorAgentAvatarfor connected bots, animates sheet avatars (avatar.pet.spriteUrl) on canvas driven byMascotActivityState, and otherwise delegates toBotAvatar. Callers:AgentModeGizziandBotStage(the launch header and empty bot chats). It honors a look picked for the A:// main bot, the same rule asBotAvatar(showsPrimaryOrb). -
Sheet engine: sheets follow the Petdex standard: 8 columns of 192×208 cells.
src/lib/agents/pet-sheet.tsdefines the eleven pet states (idle,running-right,running-left,waving,jumping,failed,waiting,running,review, plus oursleepandspecial) with Petdex row order, frame counts and frame times.detectPetLayoutreads a sheet’s layout from its height: 11 rows ispetdex-v2, a 9-row sheet under/gizzi-brawl/islegacy-brawl-9(idle, working, done, walk, jump, thinking, sleep, waiting, error), and any other 9-row sheet islegacy-pack-9(idle, blink, walk, run, jump, sad, sleep, action, special).petRowFormaps a state to a row. Legacy sheets have no real locomotion frames, so moving states play the idle row with a code hop (petHopAt), mirrored forrunning-left.AnimatedBotSpritetakes either a pet state or the olderMascotActivityState(petStateFromMascotmapsworking→running,done→waving,error→failed) and an optionallayouthint. -
Pet activity:
src/lib/agents/pet-activity.tsis the one signal for what agents are doing. Sources callreportPetActivity(key, signal, { botId })withthinking,tool,tool-done,waiting,turn-done,plan-done,failedoridle; readers useusePetState(botId?),getPetStateorsubscribePetState. Thinking showsreview, a running toolrunning, blocked on the personwaiting; a finished turn waves, a finished plan jumps and a failure slumps, each for a few seconds (PET_ONE_SHOT_MS). When several sources are active the pet shows the most important (PET_PRIORITY: failed, waiting, running, review, jumping, waving). After 5 minutes with no activity it sleeps. EverycreateModeSessionStorestore reports turn start and end from itsstreamingBySessionflags (Stop goes idle, not a wave) and tool calls from the stream;useThreadStorereports bot and vendor thread status changes, skipping incognito threads and threads already finished when loaded. -
Living avatars (stage and voice):
BotAvatarandActiveAgentMascottakelive.BotAvatarMotionthen wraps the art inLiveAvatarLayer(src/views/bots/LiveAvatarLayer.tsx). The layer writes one transform per frame from the shared avatar frame clock: a lean toward the pointer (or the state’s own look: thinking looks up, listening looks at you, a running tool scans), a squish spring on click, and a swell with the voice level. It also sets--voice-levelfor the A:// orb. It shares the gaze throughuseAvatarGaze(), which Gizzi (attention) andAgentAvatar(lookAt) read; it re-renders them at most about 12 times a second. Reduced motion turns the layer off. -
Voice presence:
src/lib/voice/voice-presence.ts.VoiceSessiontakesbotIdand callssetVoicePresence({ botId, phase, muted, level, outputLevel })on every phase change, thenclearVoicePresence(botId)on unmount. The phase is one oflistening,thinking,speakingorconnecting(presencePhasemaps the voice phases).useVoicePresence(botId)returns it only for that bot, andreadVoiceLevel()reads the mic while listening and the bot’s voice while speaking, inside animation loops, never from the store.BotAvatarMotionreads it for every avatar of the bot: speaking playsspeaking, voice thinking playsreview, muted playssleep. A running tool or a waiting question still wins.orbStateFor(BotAvatar.tsx) is the one orb mapping. Voice thinking also reportsthinkingto the pet signal under the keyvoice, so the Desktop pet follows it. While the bot speaks, pack characters with mouth art (expressions.speaking) switch between mouth art and rest art on the level (SpeakingFlapinPackAvatarImage.tsx). -
Stage:
src/components/bots/stage/BotStage.tsx, used byLaunchHeader(150 px tile, which fits the fixed header zone) and the empty conversation view ofBotChatSessionView(164 px; 132 px on phones). Bot chats open onBotLiveStage(src/components/bots/stage/live/), which rendersActiveAgentMascotliveat up to 440 px without the tile; see Your bot’s stage. A click dispatchesVOICE_START_EVENTwith{ threadId }(a saved bot thread),{ botId }(a bot chat with no thread yet) or nothing (the main chat).ThreadComposerstarts voice for a matchingthreadIdorvoice.botId;ChatComposerignores events that carry either.stageStatusgives the status line. Stories:BotStage.stories.tsx. -
Working mark:
WorkingMark(src/components/brand/WorkingMark.tsx) is the orb slot in transcripts:ProcessBlock(live status row and running steps, soWorkingChamberandRenderingCardtoo),StreamingBubble,ActivityGlyph(thought trace, todo widget, glass pill),AskingQuestionStatusandRunFooter. It rendersAllternitOrb(orSmoothOrbwithsmooth) unlessWorkingMarkContextholds a renderer.BotWorkingMarkProvider(src/views/bots/BotWorkingMark.tsx) wrapsBotChatSessionView(desktop, the phone layout and the PWA’sFabricBotMode) and the group chat’s resting mark. It provides a renderer only whenshowsPrimaryOrb(bot)is false, so A:// keeps the orb.BotWorkingMarkdraws<BotAvatar state>at 1.4× the slot without moving the row;avatarStateForOrbmaps thinking→review, searching→running, working→working, writing/speaking→speaking, idle→idle. Smooth slots hold each state 900 ms (useDwell). Tests:src/components/brand/__tests__/working-mark.test.tsx. -
Calls:
CallBotFace(src/components/gateway/phone/CallBotFace.tsx) renders the bot’s avatar onCallPartiesand the liveCallCardwhen the caller passesbotId(CallScreen,ChannelThreadPane,SmsThread,PhoneCallsApp). Without a bot it falls back to the AllternitOrb. -
In-app reactions:
BotAvatarMotion(every bot avatar) readsusePetState(botId)when no explicitstateis passed, and provides it to the sprite inside.ActiveAgentMascotreadsusePetState(botId, { unattributed: true }), so plain chat turns with no bot attached move the surface’s own mascot. The A:// orb mapsrunningto working andreviewto thinking. Components take either vocabulary (AvatarStateinpet-sheet.ts);mascotStateFrommaps pet states back to the app states (idle,working,speaking,waiting,done,error) for pack expression art and CSS motions.waiting(needs you) has its own nudge motion. Re-mentioning a bot reports a wave for it fromChatComposer. -
Desktop pet (Electron):
surfaces/allternit-desktop/src/main/desktop-companion.tsowns the pet window, andpet-activity-hub.tsdecides what it plays. The app window sends its pet state withallternitCompanion.activity.report(state)(IPCcompanion:activity, accepted only from the main window). Sources are combined in priority order, with optional expiry for sources that can vanish (the hook port). The pet window gets{ state, unread, moving }oncompanion:activityand can fetch it withactivity.get().unreadis set when a turn finishes (waving) while the main window isn’t focused, and is cleared when the main window gains focus or quick chat opens.allternitCompanion.toggleMain()(companion:toggle-main) shows or hides the main window. Roaming (roamsetting, default on) walks the window along its row at 70 px/s to a point at least 120 px away, after a 6 to 18 s idle pause. It stops for any activity, a drag, quick chat or the HUD, and saves the stop position. Roaming waits for the pet page to send its reduced-motion preference (activity.setReducedMotion, IPCcompanion:motion-pref), so pages without walk support never move. -
Sharp at any size: every built-in pack sheet (192×208 cells) and 512 px portrait has a 2× copy on runtime.allternit.com (
assets/avatar-packs/<path>@2x.webp, R2 bucketallternit-runtime), listed insrc/views/bots/avatar-hires.json. Sheets were upscaled with Real-ESRGAN’s anime-video model, and portraits withrealesrgan-x4plusthen halved.AnimatedBotSpriteloads a sheet’s 2× copy throughloadSheetImagewhen it draws more than 1.25× its frame height in device pixels.AvatarPortraitCanvasloads a portrait’s throughloadPortraitImageabove about 600 px. Both read the cell size from the image and fall back to the 1× art offline. The 2× files are not in git. For new pack art, runREALESRGAN_DIR=… scripts/upscale-avatars.sh, which upscales, uploads and lists them.avatar-hires.test.tsfails while a pack sheet is missing from the list. The bucket’s CORS allows ai.allternit.com, m.allternit.com and Desktop (127.0.0.1:8013). -
Avatars without drawn frames:
src/views/bots/PortraitPetMotion.tsxgives them free motion for each pet state, the way Petdex hops pets that have no sheet. This covers portrait-only pack characters, uploads and photo sprites (throughPackAvatarImage), geometric and pet-face avatars, the Gizzi mascot andAgentAvatarconfigs. The motions are:hopfor running and walking (mirrored forrunning-left),jump,wave,wait,review,failed(desaturated slump),sleep(dimmed) andspinforspecial. It reads the state fromBotAvatarMotion’s context or astateprop, and it only runs fromPORTRAIT_MOTION_MIN_SIZE(40 px) up. While it runs, it switches offBotAvatarMotion’s own breathing (:has(.ppm)). With reduced motion it is paused. Characters with a sheet never get it. -
Desktop pet (page):
allternit-ai/src/components/desktop-companion/DesktopCompanionBridge.tsx(main window) reports the overallgetPetState()on mount and on every change throughsubscribePetState, for all bots, not only the pet’s own.src/pages/DesktopCompanionPage.tsx(?surface=pet) reads{ state, unread, moving }withuseCompanionActivity()(bridge.ts; malformed payloads are dropped byparseCompanionActivity) and playspetPlayState(activity):running-left/running-rightwhile idle and moving, otherwise the state. It passes that to<BotAvatar state>, which then ignores the pet window’s own (empty) activity store; the A:// orb follows it too. A click waitsPET_DOUBLE_CLICK_MS(250 ms): a second click callstoggleMain(), otherwise quick chat opens. Desktop builds withouttoggleMainopen quick chat at once; builds withoutactivityshow the still pet. Tests:src/components/desktop-companion/__tests__/desktop-pet.test.tsx. -
Desktop pet hook port:
surfaces/allternit-desktop/src/main/pet-hook-server.ts, started at launch on127.0.0.1:7787(PORTS.PET_HOOK). If something else holds that port, it uses any free port. On start it writes<userData>/desktop-pet-hook.jsonas{ "version": 1, "url", "port", "token" }with mode 0600. The token is 32 random bytes and is kept across restarts. Beside it goesdesktop-pet-hook.sh(mode 0700). Every request needsAuthorization: Bearer <token>, aHostof127.0.0.1:<port>orlocalhost:<port>, and noOriginheader, so browsers and DNS rebinding are refused. Bodies are JSON, 4 KB at most.POST /statetakes{ "state", "client"?, "ttlMs"? }.stateis a signal (thinking,tool,tool-done,waiting,turn-done,plan-done,failed,idle) or a pet state. It becomes sourcehook:<client>in the activity hub. Every state expires: ongoing states after 2 minutes (waitingafter 10), one-shots as in the app, andttlMsis clamped to 1 s–10 min.idleclears the source.POST /bubbletakes{ "text", "client"?, "ttlMs"? }. The text is cut to one line of at most 140 characters. It shows for 1.5–30 s, default 5.GET /healthreturns{ "ok": true }.- Errors: 401 bad token, 403 Origin or Host, 400 bad JSON or unknown state, 413 too large.
-
Carry a bot (Desktop):
BotModeRail.tsxruns rail drags with pointer capture. WhenallternitCompanion.carryexists and the pointer leaves the window (isOutsideWindow,src/lib/bots/bot-carry.ts), the rail sendscarry('start', botId)(IPCcompanion:carry, accepted only from the main window). It sendsbackif the pointer comes back inside,dropon release andcancelon Escape. Indesktop-companion.ts,carryStartsaves what the pet was before (away), switches the pet to that bot, makes it click-through and moves it to the cursor every 16 ms. A carry that never ends stops after 2 minutes.carryEnd('drop')over another window saves the position and callsopenHud(agentId, petBounds):unified-main.tsplaceHudUnderPetputs the HUD under the pet soattachPetToHudleaves the pet where it landed. ThenonPetLanded(petBounds)runs. A drop over the main window,back,cancel, or a later pet drag that ends over the main window callsgoHome, which closes the HUD and restoresaway. Tests:desktop-companion.test.ts(carrying a bot out of the app). -
Carry context (Desktop):
onPetLandedcallsreadBotCarryContext(src/main/bot-carry-context.ts). It usesreadWindowBelowat the pet’s centre for the app, the title and the OS window id. When the Screen Recording permission is already granted (getMediaAccessStatus('screen')), it also captures that window throughdesktopCapturersourcewindow:<id>:*, at most 1600 px on the long side. Otherwise there is no picture and no prompt. The result{ seq, app, title, image? }is pushed to the HUD onshell:hud:carry-context, and the HUD can read the latest withshell.hud.getCarryContext(). In allternit-ai,src/shell/hud/carry-context.tsturns it into one composer attachment (carry-<seq>, ascreenshotwith the picture or adocumentwithout one, with the app and title asextractedText).useCarryContextAttachmentinChatComposer(HUD only) swaps it for the newest one. Tests:carry-context.test.ts. -
Carry a bot (in the app): a rail drop that lands on no slot or zone and outside
[data-bot-carry-ignore](the rail, the quick chat) callsdropBotInApp.readDropContexttakes the nearest[data-bot-drop-region], dialog, article, main or section under the point, names it byaria-label, first heading or the page title, and uses itsinnerText(8,000 characters at most).useBotCarry.openshowsBotCarryLayer(Escape and a press outside close it, listened for in the capture phase) (src/components/bots/BotCarryLayer.tsx, mounted inShellAppandPhoneProviders). Wide screens get a 380 px card next to the drop point; under 640 px it is a bottom sheet. It wrapsCompanionChatwithcontext: a removable chip, sent once as anattachmentsAsTextblock. The transcript shows only the typed part. Phone:startLongPressCarry(420 ms hold, 10 px slop) listens on the touched row and onwindow, handling each event once, and draws the bot under the finger (ghost). The row must stay in the page until the finger lifts, because a touch whose element is removed stops reaching any listener. So while carrying,html[data-bot-carrying]makesphone.cssfade the drawer layers (.phone-root [data-contained]) and let touches through, and turns body pointer events back on (Radix turns them off under an open drawer) so the drop can read what is under the finger. The browser picks scroll or not at touch start, and React’s touch listeners are passive, soBotModeRailadds its own non-passivetouchmovethat blocks scrolling only whiledata-bot-carryingis set. After pick-up, apointercancelis ignored and the touch events finish the drag.onEndcloses the drawer after the drop. Tests:BotModeRail.test.tsx(carrying a bot onto the view). -
Speech bubbles:
showBubble(text, ttlMs)indesktop-companion.tsuses a separate click-through window (240×64,focusable: false, JavaScript off). It loads adata:page with escaped text and adefault-src 'none'CSP, sits above the pet and follows it through drags, walks and resizes. It never shows while the pet is hidden or quick chat is open. The app’s own transitions also produce bubbles:waitingwith the main window away says “Needs your answer”, and a finished reply that sets the badge says “Reply ready”. Only theappsource setsunread. -
gizzi:
cmd/gizzi-code/src/cli/ui/ink-app/pet/desktopPetHook.ts.useDesktopPetHookinREPL.tsxmaps loading, running tools and pending approvals to signals. When a turn ends it sendsturn-done, it refreshes ongoing states every minute, and it sendsidleon exit. It reads the hook file besidedesktopPetSettingsPath()and only ever posts to loopback. -
Packs: the manifest is
src/views/agent-view/components/create-bot/avatar-packs.ts; files live inpublic/avatar-packs/<pack>/<sprite>.webp(512×512 portrait) and<sprite>-sheet.webp: either a Petdex v2 sheet (1536×2288, 8 × 11) or a legacy sheet (1536×1872, 8 × 9), both of 192×208 frames, rows in the orders listed above, base anchored bottom-center. Petdex v2 sheets for the Gizzi YouTube cast are drawn in code byscripts/avatar-cast/pet-sheet-*.cjsand packed bypet-sheet-pack.py; seescripts/avatar-cast/README.md. The Gizzi Brawl sheets and the four new Dot Friends (2026-10-16) were generated as one image per state row through the ChatGPT image lane and packed into the same 8 × 11 layout; the walk and run rows are drawn side-on, and three fight rows per fighter (attack, guard, KO) feed the Gizzi Brawl game only, not the avatar sheet. The asset spec isAVATAR_PACKS.mdbeside the manifest. -
Create bot layout:
src/views/agent-view/components/create-bot/steps/QuickCreateStep.tsxis the one-screen Create bot: liveBotAvatarpreview, colour radiogroup, the Look sources inline, and Edit look expandingAvatarEditorin place; a grouped Name — Role / What it does card; it renders the wizard’s More options. Two columns at 768 px and up with a fine pointer, one column otherwise and while the builder is open.steps/look-tabs.tsholdsLOOK_TABS,lookTabForMode,AvatarModeandLookTab(moved out ofAvatarEditor, still re-exported there).AvatarEditortakesembedded: the owner draws the preview and source tabs, and the editor shows only the open panel.CreateBotWizard.tsxdraws the start switch as a segmented control (radiogroup“Start”), passesavatar,lookBusyandmoreOptionstoQuickCreateStep, and widens the card tomax-w-4xl. -
Photo sprite progress:
PhotoSpritePreview(steps/PhotoSpritePanel.tsx) showsBlockPulse(src/components/brand/BlockPulse.tsx) while the sprite is made, then reveals it. It replaced the img-fx mosaic. -
Photo pipeline: Make sprite only prepares the card. Approval is the only call site of
generatePhotoSprite(src/lib/bots/photo-sprite.ts). The ChatGPT lane mints a single-use person proof foravatar.photo_spriteand submits animage.generatetask with an image input. The OpenAI lane usesgenerateImagesMediaPlanewithreferenceImage. Output is center-cropped to a PNG of at most 256 px, keeping hard edges for pixel style.buildAvatarConfigFromEditorwrites{ type: "image", uri, likeness: { source: "photo", style, consentAttestedAt } }. -
Included lane (cloud API):
GET /api/v1/avatars/photo/allowancereturns{ available, reason, plan, limit, used, remaining, resetsAt }, wherereasonisnot_configured,no_subscription,pausedorallowance_exhausted.POST /api/v1/avatars/phototakes{ photo, style, consentAttestedAt }and returns{ image, remaining, limit, resetsAt }(imageis a base64 PNG). Errors: 400 bad input or no consent, 402no_subscription, 429allowance_exhausted, 503not_configuredorpaused, 422provider_rejected, 502provider_error. Both take a Clerk session or an API token with thecomputescope. The code iscmd/allternit-cloud-api/src/routes/photo_avatars.rs. Monthly limits arephoto_avatars_per_monthon the plan list inbilling_subscriptions.rs. The server builds the prompt from the style, downscales the photo to 1024 px or less in memory, and calls OpenAI images edit (gpt-image-1, 1024×1024, medium). The source photo is never stored or logged. Each use is reserved inphoto_avatar_usage(migration044) under a lane-wide advisory lock. It’s markedusedonly when an image comes back andreleasedotherwise. A reservation that’s never settled stops counting after 10 minutes. -
Included lane spend guard: every reservation also checks the lane’s total for the month across all users. Each image is counted at $0.042, against
ALLTERNIT_AVATAR_MONTHLY_BUDGET_USD(default4.00). At the cap the lane reportspausedinstead of making a paid call. An OpenAIinsufficient_quotaor billing error releases the reservation and pauses the lane for 30 minutes. The key isOPENAI_API_KEYfrom the service’s EnvironmentFile;ALLTERNIT_AVATAR_OPENAI_API_KEYoverrides it. With no key, the allowance reportsnot_configuredand the app hides the lane. - Tests: use synthetic non-face fixtures. Never commit real source photos, generated likenesses, or screenshots containing them.
-
Build a character:
The builder saves a normal image avatar (
uriis the 512×512 transparent portrait) with an animated sheet and its recipe:The sheet is a Petdex v2 sheet, 1536×2288: 8 columns by 11 rows of 192×208 cells. The rows, with the frames each uses, are idle (6, with a blink on frame 3), running-right (8), running-left (8), waving (4), jumping (5), failed (8), waiting (6), running (6), review (6), sleep (8) and special (8). Unused cells are transparent.CHARACTER_SHEET.rowSpecsinrecipe.tsmaps each row to a pose inscene.ts(stroll,wave,wait,reviewand the original poses). The walk rows turn the characterCHARACTER_SIDE_YAW(1.15 rad, about 65°) toward the direction of travel. A full 90° profile hid round characters’ faces. The walk rows also use a side gait: arms swing forward and back, and feet step out in front. Sheets saved before this change are 1536×1872 (8×9, rows idle, blink, walk, run, jump, sad, sleep, action, special). Renderers tell the two apart by image height, so both keep playing. Avatar renderers need no special case: the portrait isuriand the animation ispet.characteris only read by the editor to reopen the builder. Unknown ids or colors fall back to defaults. three.js loads lazily, only when the tab opens. Source:allternit-ai/src/lib/bots/character-builder/.