Terminal Tamagotchi

audited$0.10

A full pixel-art gacha pet in your statusline: 18 species across 5 rarity tiers, shiny rolls, hats, XP from your context tokens, hunger/sickness/death — and it talks, via a background claude -p haiku call. 16x16 truecolor sprites, expressive poses, species preview mode. Needs jq.

by 0xMasonH2 installspetgachaanimatedpixel-artai
Claude Code
>
Tau · cat ·
preview (pose: idle) rm tamagotchi-preview to exit
❤️❤️❤️❤️❤️ hp
food
ctx 0%
398k xp · $0.00
💬 Patience is my thing. Your $3.60 tab? Meh. I'm staying put.
? for shortcuts⏵⏵ accept edits on
Security auditby claude-opus-4-8

A pixel-art gacha pet statusline. It reads session JSON from stdin (context %, input tokens, rate-limit %, session id, cost) via jq, tracks a persistent pet's XP/HP/hunger in state files under $HOME/.claude/statuslines, and renders 16x16 truecolor sprites plus HUD lines. On first run it decodes an embedded base64 gzip-tar into $HOME/.claude/statuslines/tama-sprites/ — the registry payload analysis confirms these are 60 plain text sprite files with no path traversal, consumed only as data by an awk renderer (never executed). It caches per-session token counts under ${TMPDIR:-/tmp} keyed by session id. Roughly every 4 minutes (lock-guarded, disowned background job) it calls the user's own `claude -p --model haiku` to generate a short in-character quip; the prompt contains only the pet's name/personality/stats/death-count/condition and the session cost, and the reply is written to a quip file and rendered as display text, never eval'd. This spends the user's own Claude usage, which is cle

subprocesseswrites-filesreads-homeenv-varsnetwork

Audits are advisory. This script runs on your machine — read it before installing.

Reviews

no reviews yet