Every bot has an avatar. It shows in bot chips, the rail, thread headers, and as the on-screen guide when the bot is selected.

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.
The tile shows on the main chat when a bot is picked. A bot’s own chat and threads open on its live stage instead: the same living avatar, full screen on a wash of its color, with what it is saying, what needs you, its steps and what it made. On phones (the ai.allternit.com phone layout and the Allternit phone app) the tile is a little smaller. If your system is set to reduce motion, the bot stays still on its stage, and its state art and the status line still change. Characters from the built-in packs use high-resolution frames when they are shown big, so they stay sharp on the stage, in voice and as the desktop pet. The same living avatar is the speaker on the full-screen voice stage. When you talk with a bot, the voice bar under the thread shows that bot’s avatar instead of the Allternit mark. When a bot is on a phone call, the call screen and the live call card show its avatar, speaking, listening or quiet after you take over. On the web, a bot on a live call wears a headset and its mic glows while it speaks.

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.
For Claude Code, add hooks to ~/.claude/settings.json:
For Codex, add this to ~/.codex/config.toml. Use your full home path, because Codex doesn’t expand ~:
Codex only reports finished turns, so with Codex the pet waves but doesn’t run. To make the pet say something from a script, run 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 TS2322 or 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?”
Each window gets at most one offer every 5 minutes, and the pet never offers twice for the same error line in the same window. An offer you ignore fades after 12 seconds.

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 failed from 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 /fix after 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.
Each character has blink, working, speaking and done faces and an animated sheet. Both families are Allternit’s own drawings, not Anthropic’s logos.

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.
  1. Open Create bot (or Edit bot) and go to Look.
  2. Choose Build a character (Build in Create bot). Drag the preview (or focus it and use the arrow keys) to turn it.
  3. 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
  4. 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.
Your character becomes the bot’s picture everywhere (chips, the bot rail, thread headers). Above the composer and as the desktop pet it animates like the sprite packs: it idles and blinks, waves, jumps, slumps when something fails, waits for you, works, looks things over, sleeps and spins. When the desktop pet strolls it turns and walks the way it’s going. Characters made before October 2026 keep their older animation until you open them in Edit bot and press Use as avatar again. Edit bot reopens the builder on the same character. With reduce motion on, the preview stays still.
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).
  1. Upload a PNG, JPEG, or WebP (up to 15 MB). On a phone you can pick from your camera roll.
  2. Choose a style: Pixel sprite, Chibi, or Mascot.
  3. Confirm that the photo is of you, or that you have the person’s permission.
  4. 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.
  5. Press Make sprite. This prepares an approval card and sends nothing yet. Only Approve and make avatar sends the photo. Cancel sends nothing.
  6. 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.
The photo itself is not saved on the bot. The bot keeps the generated image, the style, and the time you confirmed permission. Make another needs a fresh approval. If a try fails, the editor shows what to do. It never switches to a different (paid) lane on its own. Photo avatars are still portraits; animated sheets aren’t made from photos.

For developers

  • Resolution: resolveBotAvatarConfig (src/lib/agents/bot-avatar-config.ts) reads the edited config.avatar first, then the decoded legacy column, then the deterministic profile. BotAvatar and ActiveAgentMascot share 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) renders VendorAgentAvatar for connected bots, animates sheet avatars (avatar.pet.spriteUrl) on canvas driven by MascotActivityState, and otherwise delegates to BotAvatar. Callers: AgentModeGizzi and BotStage (the launch header and empty bot chats). It honors a look picked for the A:// main bot, the same rule as BotAvatar (showsPrimaryOrb).
  • Sheet engine: sheets follow the Petdex standard: 8 columns of 192×208 cells. src/lib/agents/pet-sheet.ts defines the eleven pet states (idle, running-right, running-left, waving, jumping, failed, waiting, running, review, plus our sleep and special) with Petdex row order, frame counts and frame times. detectPetLayout reads a sheet’s layout from its height: 11 rows is petdex-v2, a 9-row sheet under /gizzi-brawl/ is legacy-brawl-9 (idle, working, done, walk, jump, thinking, sleep, waiting, error), and any other 9-row sheet is legacy-pack-9 (idle, blink, walk, run, jump, sad, sleep, action, special). petRowFor maps 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 for running-left. AnimatedBotSprite takes either a pet state or the older MascotActivityState (petStateFromMascot maps working → running, done → waving, error → failed) and an optional layout hint.
  • Pet activity: src/lib/agents/pet-activity.ts is the one signal for what agents are doing. Sources call reportPetActivity(key, signal, { botId }) with thinking, tool, tool-done, waiting, turn-done, plan-done, failed or idle; readers use usePetState(botId?), getPetState or subscribePetState. Thinking shows review, a running tool running, blocked on the person waiting; 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. Every createModeSessionStore store reports turn start and end from its streamingBySession flags (Stop goes idle, not a wave) and tool calls from the stream; useThreadStore reports bot and vendor thread status changes, skipping incognito threads and threads already finished when loaded.
  • Living avatars (stage and voice): BotAvatar and ActiveAgentMascot take live. BotAvatarMotion then wraps the art in LiveAvatarLayer (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-level for the A:// orb. It shares the gaze through useAvatarGaze(), which Gizzi (attention) and AgentAvatar (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. VoiceSession takes botId and calls setVoicePresence({ botId, phase, muted, level, outputLevel }) on every phase change, then clearVoicePresence(botId) on unmount. The phase is one of listening, thinking, speaking or connecting (presencePhase maps the voice phases). useVoicePresence(botId) returns it only for that bot, and readVoiceLevel() reads the mic while listening and the bot’s voice while speaking, inside animation loops, never from the store. BotAvatarMotion reads it for every avatar of the bot: speaking plays speaking, voice thinking plays review, muted plays sleep. A running tool or a waiting question still wins. orbStateFor (BotAvatar.tsx) is the one orb mapping. Voice thinking also reports thinking to the pet signal under the key voice, 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 (SpeakingFlap in PackAvatarImage.tsx).
  • Stage: src/components/bots/stage/BotStage.tsx, used by LaunchHeader (150 px tile, which fits the fixed header zone) and the empty conversation view of BotChatSessionView (164 px; 132 px on phones). Bot chats open on BotLiveStage (src/components/bots/stage/live/), which renders ActiveAgentMascot live at up to 440 px without the tile; see Your bot’s stage. A click dispatches VOICE_START_EVENT with { threadId } (a saved bot thread), { botId } (a bot chat with no thread yet) or nothing (the main chat). ThreadComposer starts voice for a matching threadId or voice.botId; ChatComposer ignores events that carry either. stageStatus gives 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, so WorkingChamber and RenderingCard too), StreamingBubble, ActivityGlyph (thought trace, todo widget, glass pill), AskingQuestionStatus and RunFooter. It renders AllternitOrb (or SmoothOrb with smooth) unless WorkingMarkContext holds a renderer. BotWorkingMarkProvider (src/views/bots/BotWorkingMark.tsx) wraps BotChatSessionView (desktop, the phone layout and the PWA’s FabricBotMode) and the group chat’s resting mark. It provides a renderer only when showsPrimaryOrb(bot) is false, so A:// keeps the orb. BotWorkingMark draws <BotAvatar state> at 1.4× the slot without moving the row; avatarStateForOrb maps 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 on CallParties and the live CallCard when the caller passes botId (CallScreen, ChannelThreadPane, SmsThread, PhoneCallsApp). Without a bot it falls back to the AllternitOrb.
  • In-app reactions: BotAvatarMotion (every bot avatar) reads usePetState(botId) when no explicit state is passed, and provides it to the sprite inside. ActiveAgentMascot reads usePetState(botId, { unattributed: true }), so plain chat turns with no bot attached move the surface’s own mascot. The A:// orb maps running to working and review to thinking. Components take either vocabulary (AvatarState in pet-sheet.ts); mascotStateFrom maps 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 from ChatComposer.
  • Desktop pet (Electron): surfaces/allternit-desktop/src/main/desktop-companion.ts owns the pet window, and pet-activity-hub.ts decides what it plays. The app window sends its pet state with allternitCompanion.activity.report(state) (IPC companion: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 } on companion:activity and can fetch it with activity.get(). unread is 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 (roam setting, 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, IPC companion: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 bucket allternit-runtime), listed in src/views/bots/avatar-hires.json. Sheets were upscaled with Real-ESRGAN’s anime-video model, and portraits with realesrgan-x4plus then halved. AnimatedBotSprite loads a sheet’s 2× copy through loadSheetImage when it draws more than 1.25× its frame height in device pixels. AvatarPortraitCanvas loads a portrait’s through loadPortraitImage above 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, run REALESRGAN_DIR=… scripts/upscale-avatars.sh, which upscales, uploads and lists them. avatar-hires.test.ts fails 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.tsx gives 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 (through PackAvatarImage), geometric and pet-face avatars, the Gizzi mascot and AgentAvatar configs. The motions are: hop for running and walking (mirrored for running-left), jump, wave, wait, review, failed (desaturated slump), sleep (dimmed) and spin for special. It reads the state from BotAvatarMotion’s context or a state prop, and it only runs from PORTRAIT_MOTION_MIN_SIZE (40 px) up. While it runs, it switches off BotAvatarMotion’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 overall getPetState() on mount and on every change through subscribePetState, for all bots, not only the pet’s own. src/pages/DesktopCompanionPage.tsx (?surface=pet) reads { state, unread, moving } with useCompanionActivity() (bridge.ts; malformed payloads are dropped by parseCompanionActivity) and plays petPlayState(activity): running-left / running-right while 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 waits PET_DOUBLE_CLICK_MS (250 ms): a second click calls toggleMain(), otherwise quick chat opens. Desktop builds without toggleMain open quick chat at once; builds without activity show 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 on 127.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.json as { "version": 1, "url", "port", "token" } with mode 0600. The token is 32 random bytes and is kept across restarts. Beside it goes desktop-pet-hook.sh (mode 0700). Every request needs Authorization: Bearer <token>, a Host of 127.0.0.1:<port> or localhost:<port>, and no Origin header, so browsers and DNS rebinding are refused. Bodies are JSON, 4 KB at most.
    • POST /state takes { "state", "client"?, "ttlMs"? }. state is a signal (thinking, tool, tool-done, waiting, turn-done, plan-done, failed, idle) or a pet state. It becomes source hook:<client> in the activity hub. Every state expires: ongoing states after 2 minutes (waiting after 10), one-shots as in the app, and ttlMs is clamped to 1 s–10 min. idle clears the source.
    • POST /bubble takes { "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 /health returns { "ok": true }.
    • Errors: 401 bad token, 403 Origin or Host, 400 bad JSON or unknown state, 413 too large.
  • Carry a bot (Desktop): BotModeRail.tsx runs rail drags with pointer capture. When allternitCompanion.carry exists and the pointer leaves the window (isOutsideWindow, src/lib/bots/bot-carry.ts), the rail sends carry('start', botId) (IPC companion:carry, accepted only from the main window). It sends back if the pointer comes back inside, drop on release and cancel on Escape. In desktop-companion.ts, carryStart saves 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 calls openHud(agentId, petBounds): unified-main.ts placeHudUnderPet puts the HUD under the pet so attachPetToHud leaves the pet where it landed. Then onPetLanded(petBounds) runs. A drop over the main window, back, cancel, or a later pet drag that ends over the main window calls goHome, which closes the HUD and restores away. Tests: desktop-companion.test.ts (carrying a bot out of the app).
  • Carry context (Desktop): onPetLanded calls readBotCarryContext (src/main/bot-carry-context.ts). It uses readWindowBelow at 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 through desktopCapturer source window:<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 on shell:hud:carry-context, and the HUD can read the latest with shell.hud.getCarryContext(). In allternit-ai, src/shell/hud/carry-context.ts turns it into one composer attachment (carry-<seq>, a screenshot with the picture or a document without one, with the app and title as extractedText). useCarryContextAttachment in ChatComposer (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) calls dropBotInApp. readDropContext takes the nearest [data-bot-drop-region], dialog, article, main or section under the point, names it by aria-label, first heading or the page title, and uses its innerText (8,000 characters at most). useBotCarry.open shows BotCarryLayer (Escape and a press outside close it, listened for in the capture phase) (src/components/bots/BotCarryLayer.tsx, mounted in ShellApp and PhoneProviders). Wide screens get a 380 px card next to the drop point; under 640 px it is a bottom sheet. It wraps CompanionChat with context: a removable chip, sent once as an attachmentsAsText block. The transcript shows only the typed part. Phone: startLongPressCarry (420 ms hold, 10 px slop) listens on the touched row and on window, 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] makes phone.css fade 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, so BotModeRail adds its own non-passive touchmove that blocks scrolling only while data-bot-carrying is set. After pick-up, a pointercancel is ignored and the touch events finish the drag. onEnd closes the drawer after the drop. Tests: BotModeRail.test.tsx (carrying a bot onto the view).
  • Speech bubbles: showBubble(text, ttlMs) in desktop-companion.ts uses a separate click-through window (240×64, focusable: false, JavaScript off). It loads a data: page with escaped text and a default-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: waiting with the main window away says “Needs your answer”, and a finished reply that sets the badge says “Reply ready”. Only the app source sets unread.
  • gizzi: cmd/gizzi-code/src/cli/ui/ink-app/pet/desktopPetHook.ts. useDesktopPetHook in REPL.tsx maps loading, running tools and pending approvals to signals. When a turn ends it sends turn-done, it refreshes ongoing states every minute, and it sends idle on exit. It reads the hook file beside desktopPetSettingsPath() and only ever posts to loopback.
  • Packs: the manifest is src/views/agent-view/components/create-bot/avatar-packs.ts; files live in public/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 by scripts/avatar-cast/pet-sheet-*.cjs and packed by pet-sheet-pack.py; see scripts/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 is AVATAR_PACKS.md beside the manifest.
  • Create bot layout: src/views/agent-view/components/create-bot/steps/QuickCreateStep.tsx is the one-screen Create bot: live BotAvatar preview, colour radiogroup, the Look sources inline, and Edit look expanding AvatarEditor in 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.ts holds LOOK_TABS, lookTabForMode, AvatarMode and LookTab (moved out of AvatarEditor, still re-exported there). AvatarEditor takes embedded: the owner draws the preview and source tabs, and the editor shows only the open panel. CreateBotWizard.tsx draws the start switch as a segmented control (radiogroup “Start”), passes avatar, lookBusy and moreOptions to QuickCreateStep, and widens the card to max-w-4xl.
  • Photo sprite progress: PhotoSpritePreview (steps/PhotoSpritePanel.tsx) shows BlockPulse (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 for avatar.photo_sprite and submits an image.generate task with an image input. The OpenAI lane uses generateImagesMediaPlane with referenceImage. Output is center-cropped to a PNG of at most 256 px, keeping hard edges for pixel style. buildAvatarConfigFromEditor writes { type: "image", uri, likeness: { source: "photo", style, consentAttestedAt } }.
  • Included lane (cloud API): GET /api/v1/avatars/photo/allowance returns { available, reason, plan, limit, used, remaining, resetsAt }, where reason is not_configured, no_subscription, paused or allowance_exhausted. POST /api/v1/avatars/photo takes { photo, style, consentAttestedAt } and returns { image, remaining, limit, resetsAt } (image is a base64 PNG). Errors: 400 bad input or no consent, 402 no_subscription, 429 allowance_exhausted, 503 not_configured or paused, 422 provider_rejected, 502 provider_error. Both take a Clerk session or an API token with the compute scope. The code is cmd/allternit-cloud-api/src/routes/photo_avatars.rs. Monthly limits are photo_avatars_per_month on the plan list in billing_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 in photo_avatar_usage (migration 044) under a lane-wide advisory lock. It’s marked used only when an image comes back and released otherwise. 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 (default 4.00). At the cap the lane reports paused instead of making a paid call. An OpenAI insufficient_quota or billing error releases the reservation and pauses the lane for 30 minutes. The key is OPENAI_API_KEY from the service’s EnvironmentFile; ALLTERNIT_AVATAR_OPENAI_API_KEY overrides it. With no key, the allowance reports not_configured and 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 (uri is 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.rowSpecs in recipe.ts maps each row to a pose in scene.ts (stroll, wave, wait, review and the original poses). The walk rows turn the character CHARACTER_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 is uri and the animation is pet. character is 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/.