I built a virtual pet that lives in your Claude Code status line and reflects
your AI usage patterns.
The pet's energy decays over time (~3 days from full to death), and you feed
it by consuming tokens through Claude Code. As energy drops, the pet shows
different expressions: (^_^) when happy, (o_o) when hungry, (u_u) when sick,
and (x_x) when dead.
What makes it interesting is the death mechanic - when your pet dies (energy
hits 0), all your statistics reset to zero and you start completely fresh.
It's like a gentle reminder of the ephemeral nature of our AI interactions.
Setup is simple: just add `"command": "npx ccpet@latest"` to your Claude Code
status line config. The pet persists across sessions and gives you a live view
of your current session stats (input/output/cached tokens).
It's written in TypeScript, fully tested, and published to npm. I found it
surprisingly motivating to keep my "pet" alive while coding!
suchuanyi|6 months ago