Hidden pet system discovered in Claude Code leak: gacha mechanics with ASCII animations

Analysis of the leaked Claude Code source reveals a hidden companion pet system that was apparently scheduled for release. The system implements gacha mechanics with deterministic generation based on user IDs.
System architecture
The pet system is located in the buddy/ directory. Companions are deterministically rolled from a hash of the user ID through a seeded PRNG, ensuring the same account always gets the same pet. Species, eyes, hats, rarity, and stats are never stored — they're regenerated every time from the hash. Only the "soul" (name and personality, generated by the model on first hatch) gets persisted to config.
Pet mechanics
- 18 species including duck, ghost, axolotl, capybara, robot, and something called "chonk"
- Rarity weights: common 60%, uncommon 25%, rare 10%, epic 4%, legendary 1%
- 1% shiny chance on top of rarity (legendary shiny is about 1 in 10,000)
- 5 stats per companion: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK
- Each species has 3-frame ASCII idle animations with fidget cycles and blinking
- Hats only appear on uncommon+ pets (options include crown, tophat, wizard, and "tinyduck")
Commands and implementation details
The system includes a /buddy pet command that spawns floating hearts. Species names are encoded as hex char codes in the source because one species name collides with an internal model codename. A comment in the code states: "One species name collides with a model-codename canary in excluded-strings.txt."
The teaser was apparently scheduled to go live April 1-7 with a rainbow /buddy notification, then remain permanent.
Specific user ID results
Analysis of brute-forced user IDs reveals specific combinations:
- Typing "ak" gives a legendary robot with a tophat
- Typing "szq" gives a legendary shiny cat
- Typing "bd" gives a legendary blob
📖 Read the full source: r/ClaudeAI
👀 See Also

Claude Code Bug Replaces German Umlauts with ASCII Substitutes
Claude Code and Claude.ai app have been randomly replacing German umlauts (ä, ö, ü, ß) with ASCII substitutes (ae, oe, ue, ss) since December 2025. The bug persists despite explicit instructions and has gone unfixed for over 3 months with no response from Anthropic support.

Claude-Code v2.1.74 Release: Memory Leak Fixes, Context Optimization, and Plugin Improvements
Claude-Code v2.1.74 fixes a critical memory leak in streaming API responses that caused unbounded RSS growth on Node.js/npm code paths. The update adds actionable suggestions to the /context command and introduces the autoMemoryDirectory setting for custom auto-memory storage.

Simple Self-Distillation Method Improves LLM Code Generation
Researchers show that fine-tuning LLMs on their own sampled outputs (simple self-distillation) improves code generation performance, boosting Qwen3-30B-Instruct from 42.4% to 55.3% pass@1 on LiveCodeBench v6.

Anthropic Paying SpaceX $15B/Year for Compute Through 2029
SpaceX IPO filing reveals Anthropic pays $1.25B/month through May 2029 for compute. The deal supports AI training on Colossus 1 & 2 facilities.