omp packages

pi-clawd-pet0.1.0

Clawd the pixel pet for Pi: lives above the prompt, acts out your tool calls, plays a runner game, dances to your music

linxuan-sys Published 2 hours ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-clawd-pet

Clawd the pixel pet, living above your Pi prompt.

It acts out whatever Pi is doing, hops when you poke it, plays a runner game, and dances to whatever your speakers are playing. Everything is drawn with ANSI quadrant blocks, so it needs no fonts, no images, and no dependencies beyond Node and Pi itself.

                                        ▄▀▀▀▀▀▀▀▖
                                        ▀█▟███▟▙▘
 思考中. · clawd-pet.ts                    ▛▛▀▀▀▛▌

Install

pi install npm:pi-clawd-pet

To try it without adding it to your settings:

pi -e npm:pi-clawd-pet

Restart Pi, or run /reload, and Clawd appears above the editor.

What it does

Pi state Clawd
Thinking Sits with a bubble of code, caption 思考中.
Running read Holds a page, caption 阅读中 · filename
Running edit or write Types at a laptop, caption 编辑中 · filename
Running bash Runs in place, caption 运行中.
Running grep, find, ls Scans with a magnifier, caption 搜索中.
Turn finished Celebrates with confetti or fireworks, then rests
Idle Breathes, blinks, looks around

The caption's trailing dots grow one at a time while Pi works, and for read and edit it shows the file being touched.

Commands

Command Effect
/clawd Show status and the highest game score
/clawd hide Hide the pet (the setting survives restarts)
/clawd show Bring it back
/clawd game Start or stop the runner game
/clawd music Start or stop dancing to system audio
/clawd chat <message> Send a message to the model through the pet

Mouse

  • Left click the pet: it hops. During a game, left click makes it jump.
  • Right click the pet: sends /btw, so you can drop a quick aside without retyping context.

The pet never swallows keyboard input. Clicking it, or playing the game, does not stop you from typing.

Game

/clawd game starts an endless runner. Cacti, tall cacti, paired cacti and bugs scroll in; jump over them with a left click or the space bar. Speed rises as your distance grows. The highest score is saved.

Leave the game by clicking the ✕ in its top-right corner, right-clicking anywhere, or pressing Esc.

Music

/clawd music makes Clawd dance to whatever your machine is playing. On Linux this reads the default sink's monitor through parec, so it hears your output and never your microphone. Audio never leaves the process; only a loudness number and a beat flag are computed.

Requirements on Linux:

  • python3
  • pactl and parec (PulseAudio, or PipeWire's PulseAudio compatibility)

If any of these are missing, /clawd music reports why and the rest of the pet keeps working. Nothing else depends on Python.

Note that with silence playing, Clawd stands still. That is intentional: the equalizer only moves when there is something to hear.

Configuration

State lives in ~/.pi/agent/clawd-pet.json:

{ "hi": 0, "hidden": false, "music": false }

hi is the highest game score, hidden remembers whether the pet is hidden, and music restores music mode on the next start. Delete the file to reset everything.

Platform support

Linux is fully supported, music included. macOS and Windows work for everything except music: the audio helper speaks PulseAudio only.

Credits

The sprite, the moods, the props, the physics, the rasteriser and the game are not mine. They come from Clawd Buddy by zhanbodev, which in turn credits Ishu Agrawal for the original sprite and rasteriser. This package is a port of the terminal rendering to Pi's extension API, plus the event wiring, widget mounting, mouse handling, state persistence and commands that Pi needs and Claude Code hooks did not.

The upstream licence declared no terms; the fork keeps every upstream copyright line and releases the result under MIT. See LICENSE.

Licence

MIT.