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.

claude-code-source-leak-post-x

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.

claude-code-source-leak-details

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

We stand out from the tech-media crowd because we break news stories; we mainly bring you stuff that you won’t find anywhere in the mainstream tech media. Our stories have been picked up by some of the world’s most popular websites and media outlets—more info is available here.

Dwayne Cubbins
2718 Posts

I cover fast-moving stories across apps, online platforms, and everyday tech — phones, wearables, consoles, and whatever else people are fighting with this week. Bugs, rollouts, scams, policy enforcement, and the occasional internet-culture rabbit hole are all fair game. My goal is simple — make confusing tech news readable. When I'm not working, I'm working out or chilling with my dog. Got a tip? You can find me on X @dcubbins.

Next article View Article

GitHub enforces Anthropic DMCA notices on leaked code, but spin-offs and reworks remain online [Updated]

Update (April 2, 2026): Anthropic engineer Boris Cherny has acknowledged that the DMCA notices sent to legitimate forks of Anthropic's own public Claude Code repository were unintentional. "This was...
Apr 01, 2026 3 Min Read