MediumAnthropic Accidentally Leaked Claude Code’s Source. Inside It Was a Tamagotchi. | by Jacopo Castellano | Generative AI
Sitemap
Generative AI

Stay updated with the latest news, research, and developments in the world of generative AI. We cover everything from AI model updates, comprehensive tutorials, and real-world applications to the broader impact of AI on society. Work with us: jimclydegm@gmail.com

Member-only story

Anthropic Accidentally Leaked Claude Code’s Source. Inside It Was a Tamagotchi.

--

Press enter or click to view image in full size

On March 31, 2026, developer Chaofan Shou noticed something odd in the Claude Code npm package: a .map file that shouldn't have been there. That source map contained roughly 512,000 lines of internal TypeScript, according to analyses of the leaked source. The entire Claude Code codebase, sitting in plain sight for anyone who knew where to look.

Buried inside was a feature nobody expected. A full Tamagotchi-style companion system, codenamed “Buddy,” scheduled to launch as an April Fools’ Easter egg the very next day.

Press enter or click to view image in full size
My new buddy

The leak that spoiled the surprise

Anthropic confirmed the leak was human error. No customer data was exposed, but the damage to the surprise was done. By the time the rainbow notification appeared on April 1 inviting users to type /buddy, many developers had already seen the source code and knew exactly what was coming.

The timing could not have been worse. An entire engineering effort, built to delight, got its punchline read aloud before the joke landed.

--

--

Jacopo Castellano
Jacopo Castellano

Written by Jacopo Castellano

I'm a developer and designer writing about code, Python, Bash, automations, and TouchDesigner. Follow my insights on these topics on Medium!

Generative AI
Generative AI

Published in Generative AI

Stay updated with the latest news, research, and developments in the world of generative AI. We cover everything from AI model updates, comprehensive tutorials, and real-world applications to the broader impact of AI on society. Work with us: jimclydegm@gmail.com