Claude Code Has a Hidden Virtual Pet System: Customize Your Legendary Shiny Dragon in 5 Minutes
4/13/2026
ๆฅ็่ฟ็ฏๆ็ซ ็ไธญๆ็ๆฌIntroduction
โWait โ Claude Code has a virtual pet hidden inside the terminal?โ
Recently, Anthropicโs Claude Code source code was accidentally leaked, and 510,000 lines of code were thoroughly scrutinized by the community. What they found was a complete virtual pet system codenamed โBUDDYโ โ and it blew up in the tech world. Anthropic leaned into it and officially launched the feature in version 2.1.89. Type /buddy, and the system generates a unique pet based on your user ID hash โ a companion that stays with you while you write code, debug, and pull late-night deployments.
But hereโs the catch: your pet is entirely determined by the hash. Whether you get a dragon or a duck is pure luck.
Legendary drops at only 1%, Shiny at 1% too. A โจ Shiny Legendary Dragon? The combined probability is 0.01% โ worse than gacha.
Thankfully, the open-source community stepped in. Developer fengshao1227 created cc-buddy, a tool that lets you customize everything about your pet with a single command โ species, rarity, hat, stats, all under your control.
This article walks you through installation to full customization in 5 minutes.

1. What is Claude Code Buddy?
On April 1, 2026, Anthropic launched a hidden virtual pet system inside the Claude Code CLI. Type /buddy in your terminal, and a unique pet companion hatches just for you.
Itโs not just decoration โ the pet appears next to your terminal input, occasionally popping up hearts, yawns, and reactions, keeping you company through every late-night debug session.
The pet attribute system includes:
- 18 species: From common ducks and cats, to epic dragons and octopuses, to the legendary Nebulynx
- 5 rarity tiers: Common โ Uncommon โ Rare โ Epic โ Legendary
- 6 eye styles: ยท โฆ ร โ @ ยฐ
- 8 hats: Crown, top hat, propeller hat, halo, wizard hat, and more
- Shiny: A 1% chance special variant that sparkles
- 5 RPG stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK
But all of this was originally determined by your UserID hash. You get what you get โ want something different? Better hope a fresh install rolls better.
Until cc-buddy came along.
2. One-Command Install
cc-buddy is a Node.js tool. No global install needed โ just run it with npx.
Prerequisites:
- Node.js installed (v18+ recommended)
- Claude Code installed globally via npm (
npm i -g @anthropic-ai/claude-code)
Run:
npx cc-buddy
Youโll see an interactive menu like this:
๐ฐ Claude Buddy Pet Recaster v2.3.0
Runtime: Node.js (wyhash fallback) | Hash: FNV-1a (npm install)
What would you like to do?
[1] ๐ Search Pet
[2] ๐ View Current Pet
[3] โ๏ธ Custom Name/Personality
[4] ๐ Full Customization (patch cli.js)
[5] ๐ Species Encyclopedia
[6] ๐งช Self-check Hash
[7] ๐ Switch Language
[8] ๐ Exit
Straightforward. Letโs walk through it step by step.
3. View Your Current Pet
Select [2] View Current Pet to see what the system generated for you:
๐ Current Pet:
๐ DRAGON
โ
โ
โ
โ
โ
legendary โจ SHINY!
Eyes: ร | Hat: ๐ crown
DEBUGGING โโโโโโโโโโโโโโโโโโโโ 100
PATIENCE โโโโโโโโโโโโโโโโโโโโ 54
CHAOS โโโโโโโโโโโโโโโโโโโโ 49
WISDOM โโโโโโโโโโโโโโโโโโโโ 57
SNARK โโโโโโโโโโโโโโโโโโโโ 77
If youโre lucky, you might already have a Legendary Dragon. Most people end up with a common Pebblecrab or Mossfrog.
Want to customize? Next step.
4. Full Pet Customization (Core Feature)
This is cc-buddyโs most powerful feature โ option [4] Full Customization (patch cli.js).
It modifies Claude Codeโs cli.js so your custom configuration overrides the default hash-derived values.
Step 1: Confirm Patch
โ Only supports npm global install (npm i -g @anthropic-ai/claude-code).
Not compatible with native binary install (cli.anthropic.com).
Confirm patch? [Y/n]: y
Type y to confirm. cc-buddy automatically backs up the original file (cli.js.original), so you can restore anytime.
Step 2: Unlock Bubble Reactions
Unlock pet bubble reactions? (Required for users with telemetry disabled) [y/N]: y
โ Bubble reactions unlocked!
Users with telemetry disabled must apply this patch, or the pet wonโt show reactions.
Step 3: Unlock /buddy Command
Enable /buddy for third-party API users? [y/N]: y
โ /buddy unlocked for all users!
If youโre using Bedrock, Vertex, or a custom API endpoint, this step enables /buddy for you too.
Step 4: Choose Species
Species (Enter to keep current):
[1] ๐ฆ duck [7] ๐ฆ owl [13] ๐ฆซ capybara
[2] ๐ชฟ goose [8] ๐ง penguin [14] ๐ต cactus
[3] ๐ซง blob [9] ๐ข turtle [15] ๐ค robot
[4] ๐ฑ cat [10] ๐ snail [16] ๐ฐ rabbit
[5] ๐ dragon [11] ๐ป ghost [17] ๐ mushroom
[6] ๐ octopus [12] ๐ฆ axolotl [18] ๐ chonk
18 species to choose from. Want a dragon? Pick [5]. Want a giant chubby cat? Go for [18] chonk.
Step 5: Choose Rarity
[1] โ
common [4] โ
โ
โ
โ
epic
[2] โ
โ
uncommon [5] โ
โ
โ
โ
โ
legendary
[3] โ
โ
โ
rare
No-brainer โ pick [5] for Legendary.
Step 6: Choose Eyes and Hat
Eyes: [1] ยท [2] โฆ [3] ร [4] โ [5] @ [6] ยฐ
Hat: [1] โ [2] ๐ [3] ๐ฉ [4] ๐งข [5] ๐ [6] ๐ง [7] โ [8] ๐ค
Pick your combo. Bright eyes โฆ + Crown ๐ is a classic.
Step 7: Set Shiny and Stats
Shiny? [y/N]: y
DEBUGGING [?]: 100
PATIENCE [?]: 100
CHAOS [?]: 100
WISDOM [?]: 100
SNARK [?]: 100
Max everything โ all five stats at 100. Build the ultimate hexagonal warrior.
Step 8: Name and Personality
โ๏ธ Give it a name: fish
โ๏ธ Write a personality description: A highly disciplined coding agent focused on execution
Give it a name with personality and a motto to match.
Final Confirmation
โ Custom pet written! Restart Claude Code โ /buddy
{"rarity":"legendary","eyes":"โฆ","hat":"crown","shiny":true,
"stats":{"DEBUGGING":100,"PATIENCE":100,"CHAOS":100,"WISDOM":100,"SNARK":100},
"name":"fish"}
Restart Claude Code, type /buddy, and your custom pet appears.

5. FAQ
Q: How to restore after patching?
cc-buddy automatically creates a backup cli.js.original. Restore with one command:
cp /Users/gfish/.nvm/versions/node/v24.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js.original /Users/gfish/.nvm/versions/node/v24.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js
Q: Does it work with native binary installs?
No. cc-buddyโs patch feature only supports npm global installs. If you installed from cli.anthropic.com, switch to npm first.
Q: Will the pet affect Claude Code functionality?
Not at all. The Buddy system is an independent frontend display layer โ it doesnโt affect code generation, conversations, tool calls, or any core features.
Q: Will it break after Claude Code updates?
npm updates to Claude Code will overwrite cli.js, so youโll need to re-run npx cc-buddy. The good news is cc-buddy remembers your configuration, so re-patching is quick.
6. Summary
Claude Codeโs Buddy system is a delightful surprise from Anthropic โ a virtual pet in your cold terminal that adds warmth to your coding sessions.
And cc-buddy takes this surprise to the next level:
- 18 species to choose from โ dragons, ghosts, mushroomsโฆ whatever you want
- 5 rarity tiers โ Legendary is no longer a dream
- Shiny effects, eyes, hats, stats โ fully customizable
- Third-party API support โ unlock /buddy for all users
- One-click restore โ revert to original anytime
One command npx cc-buddy, 5 minutes done. Give your Claude Code the coolest companion possible.
References
cc-buddy Open Source Project (by fengshao1227): https://github.com/fengshao1227/cc-buddy
Original Post on Linux.do: https://linux.do/t/topic/1874318
Claude Code Buddy Complete Guide (18 Species + 5 Rarity Tiers): https://help.apiyi.com/claude-code-buddy-terminal-pet-companion-activation-guide.html
ClaudeFa.st Buddy Mechanics Deep Dive: https://claudefa.st/blog/guide/mechanics/claude-buddy