Code Pet
A Claude Code pet that reacts to tool calls
A pixel pet in a pane that eats when Claude calls tools, gets sick when they fail and sleeps while the session is idle. A status entry shows its name, level and mood.
What this mod can do
- Reviewed at commit e6da26c
- Sees each prompt you send and can change or drop it
- Sees each tool call before it runs and can block or change it
3 more things it can do
- Remembers data between sessions
- Adds the /pet command
- Runs on a timer
Good to know (2)
- Every tool call posts a toast, so a busy turn shows several in a row.
- /pet rename <name> names it and /pet snack feeds it by hand.
Preview
Terminal
⎿ code-pet: Byte ate a snack.
⎿ code-pet: Byte ate a snack.
⎿ code-pet: Byte ate a snack.
⎿ code-pet: Byte ate a snack.
╭────────────────────────────────────────────────────────────────────────────────────────────────✕─╮
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
│ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
⚠ code-pet: Byte Lv2 · chillingClaude Desktop

What it does
In the author's words
A pixel pet that lives in a pane and reacts to what Claude does: eats on tool calls, gets sick on failures, panics on rm -rf, sleeps when idle, evolves as you ship
- What you see
- A pixel pet pane, plus its level in a status entry
- Works in
- Terminal and Claude Desktop
- Slash commands
- /pet
- Uses your tokens
- No
- Changes files
- Nothing
- Network access
- None
- Reviewed commit
- e6da26c
- Preview recorded with
- Claude Code 2.1.309
How it works
- Each tool call Claude makes feeds the pet, with a toast saying it ate a snack
- A failed tool call makes it sick
- It panics when a destructive command such as rm -rf shows up
- When the session goes idle, it falls asleep
Common questions
Does this bring back Claude Code's /buddy?
No. Code Pet is a separate community mod from OneWave AI with its own pet, so a buddy you had before, and its stats, don't carry over.
How do I add a pet to Claude Code?
Run /plugin marketplace add OneWave-AI/claude-code-mods, then /plugin install code-pet@claude-code-mods. To try it for one session instead, load the folder with claude --plugin-dir ./code-pet.
What makes the pet react?
It eats when Claude calls a tool, gets sick when a tool fails, panics when a destructive command like rm -rf shows up, and sleeps while the session is idle.
Can I rename or feed the pet myself?
Yes. /pet rename <name> gives it a new name, and /pet snack feeds it.
Badge for your README
Own this listing? Add it to your README. The badge shows the install count as it grows.
[](https://staging.statuslin.es/mods/code-pet?utm_source=readme-badge)
Or show the preview card:

[](https://staging.statuslin.es/mods/code-pet?utm_source=readme-badge)