Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codexstar/pi-pompom

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codexstar/pi-pompom

Pi-Pompom — A 3D raymarched virtual pet with voice, ambient weather sounds, AI side chat, agent tracking, and 23 layered sound effects for Pi CLI

latest
Source
npmnpm
Version
7.8.36
Version published
Maintainers
1
Created
Source

English | 简体中文

Pi-Pompom — a terminal pet for Pi CLI with voice, ambient weather, side chat, and agent-aware commentary.

pi-pompom

A 3D raymarched virtual pet with voice, ambient sounds, AI side chat, weather physics, and agent intelligence for Pi CLI.

npm version npm downloads License: MIT TypeScript Platform

Install · Why Pompom · Side Chat · Pi Listen · Agent Intelligence · Voice Setup · Commands · Shortcuts · Demo · Features · Settings

Pompom — Do a flip!

Pompom Demo

Pompom is an interactive coding companion for Pi CLI. She lives in your terminal while you code, watches your agent work, and lets you talk to her about what's happening in your session without interrupting anything.

Install

pi install @codexstar/pi-pompom

For the best experience, use a GPU-accelerated terminal like Ghostty or Kitty.

Why Pompom

Pompom is not just a cute face. She is a parallel AI assistant that runs alongside your main coding agent.

  • Side Chat (⌥/ or Alt+/) opens a floating AI panel. Ask her what the agent is doing, what went wrong, or get a full session recap. She watches every tool call and catches errors in real time.
  • Voice Input with Pi Listen. Hold Space to talk directly to Pompom when her chat is focused.
  • Agent Dashboard shows active tools, success rates, mood, and timing.
  • Stuck Detection alerts you when your agent is looping on errors or stalled.
  • Session Analysis gives you deep AI-powered insights and recommendations.

While all of that works in the background, she is also playful. She asks you to pet her, give her treats, throw a ball, dance together, and sing songs. She reacts to real weather, wears accessories, plays ambient sounds, and has a full mood system.

Side Chat

Press ⌥/ (macOS) or Alt+/ (Windows/Linux) or run /pompom:chat to open a floating AI chat panel alongside the main agent.

Pompom Side Chat

  • Pompom has her own AI instance running in parallel. She does not interrupt your main agent.
  • Read-only tools only. Safe inspection mode, no accidental file edits.
  • peek_main tool lets Pompom see what the agent is working on (with redacted tool output).
  • Type help in the chat for built-in shortcuts: analyze, stuck, recap, status.
  • Per-session conversations. Each new session starts fresh.
  • Anchored at the center of the viewport, 60% max height.
  • Press Esc to close, ⌥/ to toggle focus.

Pi Listen / Voice Input

Pompom integrates with Pi's built-in voice input system. When Pompom's side chat is focused, holding Space activates pi listen and your speech is transcribed directly into the chat.

How it works:

  • Open side chat with ⌥/ (macOS) or Alt+/
  • Hold Space to start talking
  • Release Space and your speech gets transcribed into the Pompom chat
  • Pompom responds as a separate AI, with full context of what the main agent is doing

What happens during voice input:

  • Pompom's mouth animates in sync with your audio level
  • All TTS playback pauses automatically so your mic stays clean
  • All sound effects are silenced
  • Ambient weather sounds duck to a lower volume
  • Everything resumes when you stop recording

No extra setup needed. If pi listen works in your Pi CLI, it works with Pompom's chat.

Agent Intelligence

Pompom watches your coding agent and reacts in real time.

AI Analysis Commands

CommandWhat it does
/pompom:ask <question>Ask anything about the current session
/pompom:recapGet a concise session summary
/pompom:analyzeDeep AI-powered analysis with recommendations
/pompom:agentsReal-time dashboard: active tools, success rate, mood, timing
/pompom:stuckCheck if agent is stuck in error loop

7 Mood States

idle, curious, focused, busy, concerned, celebrating, sleepy

Mood is determined by tool call patterns, error rates, and activity timing. Weather reflects agent state. Storms on errors, snow on celebrations.

Stuck Detection

Monitors consecutive error streaks, stalled progress (>5 min), high error rate (>50%), and repetitive tool calls. Pompom alerts with a speech bubble when confidence is high.

Commentary System

10 event buckets with probability-based speech: agent start/end, tool calls, tool errors, messages. Commentary gap: 30s minimum between lines, 60s for same bucket.

Voice Setup

Pompom supports 3 TTS engines. ElevenLabs gives the best experience with expressive audio tags.

Quick Setup

/pompom:voice setup

This walks you through picking an engine, selecting a voice, and testing it.

Engines

EngineTypeVoicesWhat makes it special
ElevenLabsCloud (best quality)19 voicesExpressive audio tags: [laughs], [sighs], [excited], [whispers], [crying]
DeepgramCloud5 Aura-2 voicesNatural prosody from punctuation
KokoroLocal (free, no API key)8 voicesRuns entirely on your machine, no network needed

Audio tags are engine-aware. ElevenLabs keeps [laughs], Kokoro and Deepgram get them stripped automatically.

Voice Commands

CommandWhat it does
/pompom:voice on|offEnable/disable TTS
/pompom:voice setupInteractive configuration
/pompom:voice testPlay a test phrase
/pompom:voice kokoro|deepgram|elevenlabsSwitch engine
/pompom:voice voicesList available voices
/pompom:voice set <id>Set voice by ID
/pompom:voice volume <0-100>Adjust volume
/pompom:voice quiet|normal|chatty|professional|mentor|zenSet personality

6 Personalities

ModeBehavior
QuietUser actions + errors only
NormalModerate, casual (default)
ChattyFrequent commentary
ProfessionalErrors, milestones, direct actions
MentorGuides on errors and completions
ZenNear-silent, speaks only when addressed

Commands

Pet Actions

CommandWhat it does
/pompomToggle companion on/off
/pompom helpShow all commands and shortcuts
/pompom statusCheck mood, hunger, energy, theme
/pompom petPet Pompom
/pompom feedDrop food
/pompom treatSpecial treat (extra hunger boost)
/pompom hugGive a hug (restores energy)
/pompom ballThrow a ball
/pompom danceDance with sparkle particles
/pompom musicSing a song
/pompom gameCatch the stars! (20s mini-game)
/pompom themeCycle color theme
/pompom sleepNap on a pillow
/pompom wakeWake up
/pompom flipDo a backflip
/pompom hideWander offscreen
/pompom toggleHide/show animation (voice + tracking stay active)
/pompom give <item>Give an accessory (umbrella, scarf, sunglasses, hat)
/pompom inventorySee Pompom's bag

Audio & Ambient

CommandWhat it does
/pompom:ambientAmbient sound status
/pompom:ambient on|offEnable/disable weather ambient sounds
/pompom:ambient volume <0-100>Adjust ambient volume
/pompom:ambient pregenerateGenerate all 5 weather sounds now
/pompom:ambient resetDelete generated sounds and regenerate on next weather change
/pompom:ambient folderShow custom audio folder path

Utilities

CommandWhat it does
/pompom:chatOpen side chat (parallel AI)
/pompom:terminalsShow all running Pompom instances
/pompom:windowToggle native floating window (requires glimpseui)
/pompom demoAutonomous ~135s narrated showcase
/pompom-settingsInteractive settings panel (9 tabs)

Keyboard Shortcuts

macOSWindows/LinuxAction
⌥/Alt+/Side Chat (most important!)
⌥pAlt+pPet
⌥nAlt+nFeed
⌥tAlt+tTreat
⌥uAlt+uHug
⌥rAlt+rBall
⌥xAlt+xDance
⌥gAlt+gGame
⌥mAlt+mMusic
⌥cAlt+cTheme
⌥sAlt+sSleep
⌥aAlt+aWake
⌥zAlt+zFlip
⌥oAlt+oHide
⌥vAlt+vToggle view

Note: Alt+f, Alt+b, Alt+d, Alt+h, Alt+w are reserved by Pi's built-in editor. Pompom uses alternatives that don't conflict.

Four input methods supported: Ghostty keybinds, ESC prefix, macOS Unicode, Kitty keyboard protocol.

Demo Mode

Run an autonomous narrated showcase of every feature (~135 seconds):

/pompom demo

Pompom narrates each feature as it happens: interactions, weather transitions, accessories, games, sleep/wake, color themes. Run /pompom demo again to stop early. Great for recording videos.

Features

3D Rendering

  • Raymarched body with real-time lighting, shadows, and floor reflections
  • Hybrid renderer: Unicode quadrant blocks at edges (2x detail), half-blocks in smooth areas
  • 4 color themes: Cloud, Cotton Candy, Mint Drop, Sunset Gold
  • Natural animations: blinking, breathing, ear wiggling, tail wagging
  • Widget renders at ~7 FPS via 150ms interval

Weather & Physics

  • Smooth sky color transitions (dawn to dusk)
  • Sun disk with halo, crescent moon with glow, twinkling stars
  • Rolling hills, swaying grass with flowers, drifting cloud wisps
  • 5 weather types: clear, cloudy, rain, storm, snow
  • Rain splash particles with ripple effects
  • Snow accumulation as sparkle particles at ground level
  • Wind system: storms push ears, antenna, body, and tail
  • Ball physics with air resistance and spin transfer
  • Firefly that glows brighter at night
  • Weather-aware reactions every 2-5 minutes

Ambient Weather Sounds

Background audio that matches the current weather with 23 layered sound effects.

  • Custom audio: drop files in ~/.pi/pompom/ambient/custom/
  • Falls back to ElevenLabs Sound Effects API (cached locally)
  • Auto-ducks during voice playback and sleep
  • Linux ALSA support with WAV format generation
CategoryEffects
Weatherthunder, bird chirp, bee buzz, wind gust, rain drip, cricket chirp
Actionspet purr, eat crunch, ball bounce, hug squeeze, sleep snore, wake yawn, dance sparkle, flip whoosh
Eventsstar chime, game start/end, hide tiptoe, peek surprise, firefly twinkle, color switch, weather transition, accessory equip, footstep
Agentagent tick (subtle tick during tool execution)
Needshunger rumble, tired yawn
Sessionsession chime, session goodbye, milestone chime

Emotional Reactions

Pompom expresses emotions based on her needs:

  • Hungry (<30%): asks for food with sad expressions
  • Starving (<15%): dramatic hunger pleas
  • Tired (<15%): sleepy whispers and yawns
  • Happy (>80%): laughing and singing
  • Playful (>60%): asks to play, dance, throw balls

19 spontaneous activity requests. She asks you to play, sing, dance, hug, and feed her during positive emotional states.

Weather Accessories

  • /pompom give umbrella for rain/storm
  • /pompom give scarf for snow
  • /pompom give sunglasses for clear weather
  • /pompom give hat as a cute collectible
  • Accessories persist across sessions

Mini-Game: Star Catcher

  • /pompom game starts a 20-second challenge
  • Golden stars fall from the sky with sparkle effects
  • Score announced with game-end jingle

Multi-Terminal Awareness

  • Primary instance election via heartbeat files (oldest terminal wins)
  • Only the primary terminal plays ambient audio, weather SFX, and greetings
  • /pompom demo narration plays in the terminal that starts it
  • User-triggered SFX play on the active terminal
  • /pompom:terminals shows all running instances

Settings Panel

Run /pompom-settings to open the interactive 9-tab settings panel. No commands to memorize. Everything is right there.

Pompom Settings Panel

TabWhat you can do
PompomPet, feed, play with 12 action buttons and mood/hunger/energy bars
VoicePick engine, select voice, adjust volume, toggle on/off, test
SoundToggle weather sounds, adjust volume, pregenerate ambient + SFX
PersonalityChoose from 6 speech modes
ThemePick from 4 color palettes
AccessoriesGive items with descriptions
ModelSelect AI model for chat/ask/analyze
KeysFull keyboard reference card
AboutDashboard with mood, hunger, energy, weather, voice, ambient, agent stats

Navigate with arrow keys, Enter to select, Esc to close.

Pompom adds a compact, information-rich status bar at the bottom of your Pi terminal.

Pompom Footer

  • Pompom's mood face + name (always visible)
  • Hunger/energy bars with color-coded thresholds
  • Weather icon + agent activity indicator
  • Session timer, context usage bar, working directory, cost tracker
  • Voice and ambient audio indicators
  • Model name (intelligently shortened)
  • All Nerd Font icons, Catppuccin Mocha colors, Powerline separators
  • Adapts content based on terminal width: ultra-narrow shows just the face, ultra-wide shows everything

Theme

Pompom ships with a Catppuccin Mocha warm theme (themes/pompom.json) that auto-activates on install:

  • Warm pink accent with rosewater text
  • Cozy message bubbles, gentle green/red tool result glows
  • Thinking level borders that progress from cold/dark to warm/pink
  • 51 color tokens fully compliant with Pi's theme schema

Contributing

See CONTRIBUTING.md for development setup and guidelines.

Security

See SECURITY.md for reporting vulnerabilities.

License

MIT. See LICENSE.

Made by Abhishek Tiwari

Website · 𝕏 Twitter · GitHub · npm · Report a Bug · Pi CLI

Keywords

pi-package

FAQs

Package last updated on 05 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts