Anthropic’s Claude Code source code has just leaked online through a .map file in its npm registry package.
Developer Chaofan Shou spotted it first. Posting as @Fried_rice on X, he shared a direct link to the full src.zip just a couple of hours ago. That thread now has over 3.1 million views.
From what people have pulled out of the files so far, it’s way more than the public version. The leak includes internal notes on several unreleased features hidden behind flags and environment variables.
One that’s getting the most attention is BUDDY — a Tamagotchi-style AI pet that sits in a speech bubble next to your input box. According to the leaked notes, it’s seeded from your user ID hash. There are 18 species (duck, dragon, axolotl, capybara, mushroom, even a ghost), rarity tiers from common to 1% legendary, cosmetics like hats and shiny variants, and five stats: DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK. Claude generates a name and personality on first hatch, complete with sprite animations and a floating heart effect. The plan was a teaser rollout April 1-7, going live for real in May, starting with Anthropic employees.
A screenshot of this was shared by user @baanditeagle in the comments under Shou’s post.
Another big one is KAIROS, the “Always-On Claude” persistent assistant mode. It keeps working across sessions, stores memory logs in a private directory, does nightly “dreaming” to tidy things up, and can proactively start tasks. The code even spells out midnight boundary handling so the dream process doesn’t break.
There are mentions of ULTRAPLAN for 30-minute remote planning sessions in the cloud and a Coordinator Mode that lets one Claude spawn and manage multiple worker agents in parallel.
Discussions about this leak are blowing up on Reddit and Hacker News. People are calling this a “treasure trove” given how many hidden or unfinished ideas are inside the codebase.
I have not independently verified how complete the leaked archive is, but even at a glance, this is more than enough to have Anthropic staffers scurrying to do some damage control.
Shou’s original X post is here if you want the source link. That said, this is yet another major embarrassment for the company, which is still trying to figure out what’s causing usage limits to drain abnormally fast for days. More on that here.
We’ll keep an eye out for any further developments and will update the article accordingly.
Featured image generated with AI

