
Claude Code Source Leaked: 5 Hidden Features Found in 510K Lines of Code
What Happened Anthropic shipped Claude Code v2.1.88 to npm with a 60MB source map still attached. That single file contained 1,906 source files and 510,000 lines of fully readable TypeScript. No minification. No obfuscation. Just the raw codebase, sitting in a public registry for anyone to download. Within hours, backup repositories appeared on GitHub. One of them — instructkr/claude-code — racked up 20,000+ stars almost instantly. Anthropic pulled the package, but the code was already mirrored everywhere. The cat was out of the bag, and it had opinions about AI safety. 5 Hidden Features Found in the Source 1. Buddy Pet System Deep in buddy/types.ts , there is a complete virtual pet system. Eighteen species, five rarity tiers, shiny variants, hats, custom eyes, and stat blocks. This was clearly planned as an April Fools easter egg. The species list: const SPECIES = [ ' duck ' , ' goose ' , ' blob ' , ' cat ' , ' dragon ' , ' octopus ' , ' owl ' , ' penguin ' , ' turtle ' , ' snail ' ,
Continue reading on Dev.to
Opens in a new tab


