Configuration Guide ๐ŸŽจ

August 19, 2025 ยท View on GitHub

Your Tamagotchi is fully customizable through environment variables! Set these in your shell profile (~/.bashrc, ~/.zshrc, etc.) or before running Claude Code.

Complete Environment Variables List

๐Ÿ“ Core Settings

VariableDefaultDescription
PET_STATE_FILE~/.claude/pets/claude-pet-state.jsonWhere your pet's data lives
PET_NAMEBuddyYour pet's default name (can change with /pet-name)
PET_TYPEdogPet type (dog, cat, dragon, robot)

๐Ÿ“Š Display Options

VariableDefaultDescription
PET_SHOW_DIRECTORYtrueShow current directory in statusline
PET_SHOW_SESSIONfalseShow session update counter
PET_SHOW_MODELtrueShow Claude model name in statusline

โฑ๏ธ Decay Rates (How Fast Stats Drop)

VariableDefaultDescription
PET_DECAY_INTERVAL20Updates between stat decreases
PET_HUNGER_DECAY0.9Hunger decrease per interval
PET_ENERGY_DECAY0.75Energy decrease per interval
PET_CLEAN_DECAY0.6Cleanliness decrease per interval
PET_SLEEP_RECOVERY3Energy gained per update when sleeping

๐Ÿ’ญ Thought System

VariableDefaultDescription
PET_THOUGHT_FREQUENCY15Updates between thoughts
PET_THOUGHT_MIN_DURATION3000Min milliseconds before changing thought
PET_THOUGHT_COOLDOWN10Min updates between thoughts
PET_CHATTINESSnormalHow talkative (quiet/normal/chatty)
PET_NEED_THRESHOLD40Stat level that triggers need thoughts
PET_CRITICAL_THRESHOLD20Stat level for urgent thoughts

๐ŸŽฒ Thought Category Weights

VariableDefaultDescription
PET_THOUGHT_WEIGHT_NEEDS40Weight for hunger/energy/clean thoughts
PET_THOUGHT_WEIGHT_CODING25Weight for code observations
PET_THOUGHT_WEIGHT_RANDOM20Weight for philosophical musings
PET_THOUGHT_WEIGHT_MOOD15Weight for mood-based thoughts

๐Ÿค– AI Feedback System

VariableDefaultDescription
PET_FEEDBACK_ENABLEDfalseEnable AI-powered observations
GROQ_API_KEY or PET_GROQ_API_KEY-Your Groq API key from https://console.groq.com/keys
PET_GROQ_MODELopenai/gpt-oss-20bLLM model (alt: llama-3.1-8b-instant)
PET_FEEDBACK_CHECK_INTERVAL5Check every N updates
PET_FEEDBACK_DEBUGfalseEnable debug logging
PET_FEEDBACK_LOG_DIR~/.claude/pets/logsLog file location

๐Ÿ›ก๏ธ Violation Detection

VariableDefaultDescription
PET_VIOLATION_CHECK_ENABLEDtrueEnable/disable violation checking
PET_ANNOYED_THRESHOLD3Violations before pet gets annoyed
PET_ANGRY_THRESHOLD5Violations before pet gets angry

Personality Presets & Recipes ๐Ÿงช

Want a specific personality? Here are some tested configurations:

๐Ÿฆฅ The Sleepy Pet

Always tired, loves naps:

export PET_ENERGY_DECAY=3        # Gets tired super fast
export PET_SLEEP_RECOVERY=1      # Sleeps longer
export PET_THOUGHT_WEIGHT_MOOD=30  # More sleepy thoughts

๐Ÿ• The Never-Hungry Pet

Food? What's food?

export PET_HUNGER_DECAY=0        # Never gets hungry
export PET_THOUGHT_WEIGHT_NEEDS=10  # Rarely thinks about food

๐ŸŽญ The Drama Queen

Everything is urgent!

export PET_NEED_THRESHOLD=70     # Complains early
export PET_CRITICAL_THRESHOLD=50  # Panics often
export PET_CHATTINESS=chatty
export PET_THOUGHT_WEIGHT_NEEDS=60

๐Ÿง˜ The Zen Master

Eternally content:

export PET_DECAY_INTERVAL=100    # Barely needs anything
export PET_HUNGER_DECAY=0.1
export PET_ENERGY_DECAY=0.1
export PET_CLEAN_DECAY=0.1
export PET_CHATTINESS=quiet
export PET_THOUGHT_WEIGHT_RANDOM=50  # Philosophical thoughts

๐ŸŽฎ The Gamer Pet

High energy, always ready to play:

export PET_ENERGY_DECAY=0.2      # Rarely gets tired
export PET_SLEEP_RECOVERY=10     # Quick power naps
export PET_THOUGHT_WEIGHT_MOOD=40  # Excited thoughts

๐Ÿค– The Debugger

Obsessed with your code:

export PET_THOUGHT_WEIGHT_CODING=70  # Mostly code observations
export PET_THOUGHT_WEIGHT_RANDOM=5
export PET_THOUGHT_FREQUENCY=10      # Comments frequently

๐Ÿ‘ป The Silent Companion

Just vibes, no words:

export PET_THOUGHT_FREQUENCY=9999    # Almost never speaks
export PET_THOUGHT_COOLDOWN=100
export PET_SHOW_SESSION=false        # Minimal UI

๐Ÿฆธ The Motivational Coach

Your personal cheerleader:

export PET_CHATTINESS=chatty
export PET_THOUGHT_WEIGHT_MOOD=50
export PET_CRITICAL_THRESHOLD=10     # Never negative
export PET_THOUGHT_COOLDOWN=5        # Constant encouragement

Multiple Pets

You can have different pets for different projects:

# Add to your ~/.bashrc or ~/.zshrc for different pets
export PET_STATE_FILE=~/.claude/pets/work-pet.json  # Your work pet
export PET_STATE_FILE=~/.claude/pets/personal-pet.json  # Your personal pet
export PET_STATE_FILE=~/.claude/pets/weekend-pet.json  # Your weekend project pet

Mix and match these settings to create your perfect coding companion!