I Tore Apart the Claude Code Source Code 3/3

Dev.to AI
Generative AI

Posts at radarlog.kr. The most surprising thing I found digging through Claude Code's source wasn't a tool or an architecture pattern. It was opening the buddy/ folder. There's a virtual pet system. It works like a gacha game. Five rarity tiers. Eighteen species. Buddy - A Gacha Virtual Pet Inside a Coding Agent src/buddy/ directory. Five files, 79KB. Gated behind the BUDDY feature flag, so it's not publicly available yet. But the implementation is complete. Characters are generated deterministically from the userId as a seed. Same user always gets the same character.