Pet
npx claude-code-templates@latest --mod games/pet Content
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 and the $ API may still change between releases.
Hooks module: hooks/register.tsx. Run claude plugin validate on the installed folder to see every event it hooks and every $ call it makes.
pet
A virtual pet above the Claude Code prompt, fed by Claude's actual work. Passing tests, commits and edits grant XP and mood; failing tests cost mood; idling drains it. It advances egg → baby → kid → adult → legend (level = √(xp/10)). Click it to pet it. Zero tokens: the mod reads Claude's tool calls itself and never asks the model anything.
Split out of sezaakgun/cc-arcade (MIT, by Seza Akgün). Want the pet plus nine games and a picker in one plugin? Install
games/cc-arcadeinstead.
Use
/petshows it above the prompt,/pet stophides it. It keeps eating while hidden.- The pet lives in the plugin's store, so sessions running side by side feed the same one.
Install
npx claude-code-templates@latest --mod games/pet
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claudeIt is written to .claude/skills/pet/, which Claude Code auto-loads as pet@skills-dir. For one session with hot reload: CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir .claude/skills/pet.
Requirements
- Claude Code 2.1.269 or later with
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1. The$API is early access and may change between releases. - An interactive terminal. Nothing draws in
claude -p, the desktop app or mobile.