Your terminal sessions, alive.
A lightweight desktop overlay that turns your terminal sessions into cute animated pixel pets.
| Feature | Description |
|---|---|
| Ambient CPU Awareness | Pets walk when terminals work, sleep when idle |
| AI Token Tracking | Real-time context window usage for Codex, Claude, and other agents |
| Click-to-Focus | Click a pet's nameplate to jump to that terminal tab |
| Drag & Pin | Manually position pets anywhere on the bottom band |
| Completion Alerts | Audio + visual bubble when background tasks finish |
| Custom Skins | Bring your own pixel art sprites and sounds |
| Zero Config | Auto-detects terminal sessions via cmux or local process scan |
# Build
scripts/build.sh
# Run
scripts/run.sh
# Background (LaunchAgent)
scripts/start-background.shpip install PySide6
pythonw src/overlay.pyDrop your own sprite into the assets/ folder and update config.json:
{
"skinFolder": "assets/my-custom-skin"
}Your skin folder should contain:
mochi-front.png— static front-facing sprite (28–36px recommended)mochi-front-animated.gif— optional animated GIF with multiple frames
Edit config.json to tune behavior without touching source code:
workingCpuThreshold/workingCpuExitThreshold— CPU hysteresis thresholdsfpsActive/fpsIdle/fpsQuiet— animation frame rates by statepollIntervalSeconds— how often to read terminal stateshowShellTabs— include plain shell tabs (default: agent tabs only)soundEffectsEnabled— toggle interaction soundspetDraggingEnabled— allow manual pet repositioning
Mochi supports two monitoring backends:
- cmux (default if installed) — reads
cmux topfor terminal session data - local — falls back to
psprocess scanning when cmux is not available
- macOS: Xcode Command Line Tools (for
clang) - Windows: Python 3.8+ with PySide6 or PyQt5
- Optional: cmux for enhanced terminal session tracking
If Mochi makes your terminal sessions happier, consider supporting development:
- ⭐ Star this repo — it helps others discover Mochi
- 💝 GitHub Sponsors — monthly support
- ☕ Ko-fi — one-time tip
- 🎮 itch.io — pay what you want
MIT License — see LICENSE file.
Made with 🍡 by Neo Genesis