Personal

Dandan

I live with a Maltese named Dandan. I read a fair amount about canine nutrition and health. Always happy to talk dogs.


Coding Projects

How to Choose Your Claude Code Buddy

Claude Code comes with a built-in virtual companion called a buddy – a small creature that sits beside your input box. You can meet yours by typing /buddy in Claude Code. Each buddy has a species, rarity tier, appearance traits, and stats.

By default your buddy is randomly assigned. But if you want a specific one – say, a legendary shiny dragon with a wizard hat – you can use buddy-reroll, a CLI tool created by grayashh. I maintain a fork as well.

Install

# recommended (fastest)
bun install -g buddy-reroll

# or via npm
npm install -g buddy-reroll

# or run without installing
npx buddy-reroll

Quick start

The easiest way is interactive mode – it walks you through each option:

buddy-reroll

Or specify exactly what you want:

buddy-reroll --species dragon --rarity legendary --hat wizard --shiny

You can also pick just a few traits and leave the rest random:

buddy-reroll --species cat --rarity epic

Available options

Option Choices
Species duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk
Rarity common, uncommon, rare, epic, legendary
Eyes · × @ °
Hat none, crown, tophat, propeller, halo, wizard, beanie, tinyduck
Stats DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK

Use --peak and --dump to control stat distribution:

buddy-reroll --species owl --peak WISDOM --dump CHAOS

Keep your buddy after updates

Claude Code updates can reset your buddy. The --hook flag installs a persistence hook so your companion auto-restores:

buddy-reroll --hook

To remove: buddy-reroll --unhook

Other useful commands

buddy-reroll --current   # see your current buddy
buddy-reroll --list      # list all options
buddy-reroll --doctor    # diagnose setup issues
buddy-reroll --restore   # reset to default

Credit: grayashh/buddy-reroll (MIT License).