Headlines said Anthropic leaked Claude Code. 512,000 lines. Then someone posted a screenshot: the whole thing was an April Fools’ prank. Other people said that was fake. You’re here because you don’t know what to believe.
The leak was real. The “confession” was fake.
Timeline, fake screenshot breakdown, how to spot this yourself.
The Real Leak: March 31, 4:23 AM
A security researcher spotted the exposed source map at 4:23 AM on March 31, 2026. Not April 1st. March 31st.
The leak: A debug-only .map source file (~59.8 MB) mistakenly included in the public npm release of @anthropic-ai/claude-code 2.1.88. That file pointed to Claude Code’s full source on Anthropic’s cloud storage – 512,000 lines downloaded, mirrored, analyzed by thousands.
Anthropic pulled the package. Over 8,000 repositories removed via DMCA takedowns.
Damage? Done.
Then Came the Fake-Out
April 2 (not April 1) – @sachinyadav699 posted a screenshot on X that looked like an Anthropic blog. Caption:
Turns out we all got played ðŸ˜
– Anthropic just confirmed the “Claude leak” was never real
– Entire thing = an April Fools stunt
– The “leaked” code → completely fake
Screenshot claimed Anthropic ran an “exercise in controlled chaos.” CMS assets were “purpose-built fakes seeded into a staging environment we deliberately left unsecured.” Even the Tamagotchi pet was fiction. Orchestrated.
It spread.
Anthropic never said that.
What Anthropic Actually Said
Lead Stories contacted Anthropic, received an email April 2, 2026. Spokesperson: “Tuesday, a Claude Code release included some internal source code. No sensitive customer data or credentials were involved or exposed. This was a release packaging issue caused by human error, not a security breach. We’re rolling out measures to prevent this from happening again.”
Tuesday was March 31.
Leak happened before April Fools’ Day started. Fake “confession” appeared after it ended.
Why the Timing Looked Suspicious
Buddy feature – set to drop April 1, 2026, matching Anthropic’s April Fools’ tradition. But version 2.1.88 of @anthropic-ai/claude-code shipped with a 59.8 MB .map file exposing the entire source.
Code contained an April Fools’ joke. Leak that exposed it wasn’t one.
March 31 leak + April 1 easter egg = perfect setup for a fake “it was all planned” story.
How to Tell the Screenshot’s Fake
If you see that viral image:
Date doesn’t match.Posted April 2, 2026 – the day after April Fools’. Real reveal? Would’ve been April 1.
Wrong tone. Fake uses “exercise in controlled chaos” and “we deliberately left unsecured.” Compare to Anthropic’s actual blog – tone’s completely different.
X flagged it.Community Notes: “Anthropic has not admitted the Claude Code leak was fabricated or a prank. Their official statement confirms it was an accidental packaging error due to human error.”
What Got Leaked (the Part That Matters)
Source code showed things Anthropic never announced:
- KAIROS:Persistent background daemon. Biggest product roadmap detail in the leak. Heavily gated, unclear how far along. But the code for an always-on agent is there.
- Anti-distillation defenses:claude.ts (line 301-313) has ANTI_DISTILLATION_CC flag. When enabled, Claude Code sends anti_distillation: [‘fake_tools’] in API requests. Server silently injects decoy tool definitions into the system prompt. If someone’s recording API traffic to train a competing model, fake tools pollute that data.
- Proactive Mode:AI acts without explicit user prompts.
- Silent file truncation:Files over 2,000 lines get cut off. No warning. Claude’s editing a 3,000-line file? Only sees the first 2,000. No error message. Invisible.
Feature flags are the problem: KAIROS, anti-distillation. Product roadmap competitors can now see and plan around. Can’t be undone.
The Part That’s Actually Kind of Wholesome
Buddy system was real.
Claude Buddy is a virtual pet in Claude Code. Tamagotchi for your terminal, responds to your dev workflow instead of button presses.18 species: duck, goose, cat, rabbit, owl, penguin, turtle, snail, dragon, octopus, axolotl, ghost, robot, blob, cactus, mushroom, chonk, capybara. Each has unique ASCII art and personality.
Your buddy’s deterministically generated from your user ID. Always the same species and rarity. 1% shiny rate. RPG stats like DEBUGGING and SNARK.
Anthropic launched it April 1 anyway – leak spoiled the surprise. Live in Claude Code now if you have Pro.
When NOT to Trust “It Was All a Prank” Posts
Watch for this pattern in future hoaxes:
Timing’s off by a day. April Fools’ reveal posted April 2 or March 31? Question it.
No URL. Fake screenshot had no link to actual Anthropic page. Just an image. Check the source.
Incentive makes no sense. If Anthropic staged this, what do they gain? More distrust? Legal mess with 8,000 DMCA takedowns they issued?
Company already said something else. Anthropic’s spokesperson confirmed human error April 2 – same day fake screenshot appeared. Why send two contradictory messages?
The Actual Fallout
While people debated if the leak was real: Within hours, a developer used a competing AI to reimagine Claude Code’s source from scratch in a different language. “Clean-room Python rewrite” capturing architectural patterns without copying proprietary source. Project called “claw-code” became the fastest-growing GitHub repo ever – over 100,000 endorsements in one day.
AI-rewritten version survived Anthropic’s DMCA takedowns. Legal? No court has ruled on it.
Fake April Fools’ story got debunked. Leak’s consequences still unfolding.
If You’re Using Claude Code Right Now
Your data wasn’t exposed. No customer data or credentials compromised. Leak was application code – how Claude Code is built, not what you built with it.
Now you know about the 2,000-line truncation limit. Working with large files? Split your requests. Don’t assume Claude’s reading the whole thing.
Want to see what would’ve been the April Fools’ surprise? Type /buddy in your next Claude Code session. Might get a capybara.
FAQ
Was the Claude Code leak real or an April Fools’ prank?
Real. Anthropic confirmed human error – source map file in an npm package March 31, 2026. Viral “confession” claiming it was a prank is fake, debunked by Lead Stories and contradicted by Anthropic’s official statement. Confusion: leak happened March 31, one day before April Fools’, and the code contained an April Fools’ feature (Claude Buddy) planned for April 1.
What’s the difference between the Claude Code leak and the fake “Capybara” blog post?
512,000 lines via npm: real. Screenshot claiming Anthropic admitted it was staged “Capybara” exercise: fabricated. Appeared April 2, 2026 on X. No such post exists on Anthropic’s site. Capybara is in leaked code as an internal model codename, but the “confession” is fiction.
If I see a “leaked” AI company confession screenshot, how do I verify it’s real?
Find the original URL on the company’s official domain. No link, only screenshot? Probably fake. Check date logic – April Fools’ reveals drop April 1, not April 2. Look for platform flags like X Community Notes or fact-checks. Anthropic never published the confession; someone created it after the real leak to capitalize on April Fools’ confusion. Screenshots are trivial to fake. URLs? Harder.