Code Pet

A Claude Code pet that reacts to tool calls

·

source at e6da26c

·

MIT license

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.
Are mods safe?

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 · chilling

Claude Desktop

Code Pet in Claude 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

  1. Each tool call Claude makes feeds the pet, with a toast saying it ate a snack
  2. A failed tool call makes it sick
  3. It panics when a destructive command such as rm -rf shows up
  4. 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.

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

Or show the preview card:

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