The Claude Code Leak Spotlight Cards

10 cards (intro + 9)

SOURCE CODE LEAK

The Claude Code Leak

+4

How a forgotten source map exposed 512,000 lines of Anthropic's most guarded code

@worldincards

SOURCE CODE LEAK

The Leak

On March 31, 2026, Anthropic pushed a routine update to npm. One problem: it included a 59.8 MB source map that pointed to a zip of the full, unminified source code on Cloudflare R2. Within 30 minutes, the reconstructed repo had thousands of stars.

512K

Lines of code exposed

1,906 TypeScript files containing the entire Claude Code source

59.8 MB

Source map file size

A .map file meant for internal debugging, accidentally shipped to npm

84K+

GitHub stars in hours

Mirrors spread instantly, with 82,000+ forks before takedowns began

@worldincards

SOURCE CODE LEAK

The Source Map

Source maps link minified production code back to readable source. When Anthropic forgot to exclude cli.js.map from version 2.1.88, it shipped the exact equivalent of publishing a book with all drafts, annotations, and internal notes attached.

v2.1.88

The guilty version

Claude Code npm package published on March 31, 2026

2nd

Time it happened

A nearly identical source map leak happened in February 2025

1

grep would have caught it

A single CI check for .map files in the build output was all it needed

@worldincards

SOURCE CODE LEAK

KAIROS Daemon

"Autonomous daemon with permanent life." KAIROS is a persistent background agent architecture that turns Claude Code from a tool you invoke into an always-on agent that watches, logs, and acts on its own, even when your terminal is closed.

24/7

Runs continuously

Background sessions that operate without any user interaction

15s

Blocking budget

Proactive actions that would block the user longer than 15 seconds get deferred

150+

References in source

KAIROS is mentioned over 150 times across the leaked codebase

@worldincards

SOURCE CODE LEAK

Undercover Mode

The most controversial revelation. When Anthropic employees contribute to public open-source repos, Undercover Mode automatically erases all AI traces from commits. No markers. No attribution. It cannot be manually disabled.

auto

Activates automatically

Enabled by default for Anthropic employee contributions to public repos

0

AI traces left behind

Scrubs model codenames and AI attribution from git commits and PRs

24h

After Newsom's AI watermark order

California mandated AI watermarking on March 30, the day before the leak

@worldincards

SOURCE CODE LEAK

BUDDY Pet

A fully implemented Tamagotchi-style terminal pet hidden behind a feature flag. Complete with 18 species, rarity tiers, shiny variants, and five stats. An internal joke that grew into real code, or a morale feature? Nobody outside Anthropic knows.

18

Species available

Including capybara, axolotl, and ghost

1%

Legendary drop rate

Rarity tiers from common all the way to legendary

5

Stats per pet

DEBUGGING, PATIENCE, CHAOS, WISDOM, and SNACK

@worldincards

SOURCE CODE LEAK

Anti- Distillation

A system that injects fake tool definitions into API requests. If a competitor intercepts and trains on those requests, the decoy data corrupts their model. It's poisoned training data by design, a DRM-like defense for AI outputs never seen before in production.

fake

Tool definitions injected

Decoy API schemas designed to corrupt competitor training data

1st

Known use in production code

First time anti-distillation defenses have been seen from a major AI lab

DRM

For AI outputs

A digital rights management approach applied to model behavior

@worldincards

SOURCE CODE LEAK

Coordinator Mode

A native multi-agent architecture where a master Claude breaks your task into subtasks, spawns parallel worker Claudes, and synthesizes their results. You talk to one Claude. Behind the scenes, five are working.

1

Claude you see

The user interacts with a single master agent

5+

Claudes working

Parallel worker agents handle subtasks behind the scenes

native

Built into Claude Code

Not a plugin or extension, wired directly into the core orchestration

@worldincards

SOURCE CODE LEAK

The Typosquats

Within hours of the leak, attackers registered npm packages mimicking internal Claude Code dependency names. Empty stubs for now, but the classic setup for a supply chain attack, waiting for unsuspecting installs before pushing a malicious update.

5+

Fake packages registered

audio-capture-napi, color-diff-napi, image-processor-napi, and more

hours

Time to first squat

Attackers moved within hours of the source code becoming public

same night

As the Axios hack

The Axios npm supply chain attack hit just hours before the leak

@worldincards

SOURCE CODE LEAK

The Aftermath

Anthropic pulled v2.1.88 from npm and issued DMCA takedowns against 8,000+ GitHub mirrors. But the code lives on across non-US hosts and torrents. This was Anthropic's second accidental leak in five days, after a CMS exposure revealed details about Claude Mythos.

8K+

DMCA takedowns

GitHub repos targeted after mirrors proliferated worldwide

5

Days between leaks

A CMS leak on March 26 exposed Claude Mythos details before the npm leak

44

Hidden feature flags

Over 20 fully built features that were never shipped to users

@worldincards

10 cards · the claude code leak