Claude Source Code Leaked: Anthropic’s 512K Lines Now Public on GitHub

Claude Source Code Leaked: Anthropic’s 512K Lines Now Public on GitHub

Claude source code leaked—512K lines of Claude Code v2.1.88 exposed via npm source map bug. BUDDY AI pet, KAIROS always-on, multi-agent system out. 1,100 GitHub stars before takedown.

Claude Code’s 512,000 Lines of Source Code Leaked: A Goldmine for AI Devs

Imagine this: you’re sipping coffee on a Sunday morning, scrolling X, when bam—a tweet from @Fried_rice hits you like a freight train. “Claude Code’s entire source code is online. 512k lines. Source map leak.” Attached? A screenshot of a massive directory tree from Anthropic’s R2 bucket. No hack. No breach. Just pure, accidental genius—or idiocy, depending on your view.

By Monday, GitHub was on fire. 1,100 stars. 1,900 forks. DMCA takedowns flying left and right. But the cat? Long out of the bag. Anthropic’s prized Claude Code CLI— that terminal beast powering agentic coding for thousands—laid bare in 59.8MB of source maps bundled into an npm package. v2.1.88. Bun bundler. .npmignore fail. Cloudflare R2 wide open.

This isn’t some junior dev’s slip. It’s Anthropic—safety poster child—doing it twice in 13 months. Last February? Inline maps. Now? Full archive. And what a treasure trove it is.

The Leak That Kept on Giving: From npm to Mirrors

Chaofan Shou spotted it first, 4:23 AM ET March 31. The cli.js.map in @anthropic-ai/claude-code@2.1.88 wasn’t stripped. It pointed straight to r2://anthropic-source.zip. No password. Download city.

Inside? 1,906 TypeScript files. main.tsx clocks 785KB alone—a React terminal masterpiece using Ink. 40+ slash commands. Git integration. Repo search. Teams. Permissions. And the real juice: hidden features devs have only dreamed of.

GitHub exploded. codeaashu/claude-code hit 1K stars before nuked. Mirrors popped like whack-a-mole. Zscaler screamed malware (Vidar stealers hiding in “leaked.zip”s). But the pure code? Pure gold.

Anthropic’s line: “Packaging error. No security impact. v2.1.89 fixed.” Boris Cherny, the lead, called it “honest mistake.” Fair. But oof.

BUDDY: Anthropic’s Secret Tamagotchi for Coders

Scroll to /src/buddy/. Your jaw drops. BUDDY—the pet AI nobody knew existed. Tamagotchi meets Claude.

Emotional states? Check. Hunger meter? Yep. “Feed me code reviews”? Done. Pet it for morale boosts. Persistent memory across sessions. React renderer keeps it cute in terminal.

Why? Coding companion that feels alive. Reduces burnout. Sneaky genius—or distraction? Leakers say it’s in beta for enterprise teams.

KAIROS and Undercover: The Stealth Agents

Deeper in: /agents/kairos/. Always-on mode. Monitors your inbox, Slack. Auto-tasks without prompts. “Always ready.”

Then /stealth/undercover/. No UI traces. Stealth execution. Enterprise compliance ninja? Or something shadier?

Multi-agent swarm in /orchestrator/. Coordinator buses tasks to parallel workers. Self-healing graphs. Dependency magic. This is Claude Code’s brain—the stuff powering $200/mo Max subs.

Codenames tease more: Capybara (next model?). Claude Mythos (recursive fixer).

Why This Leak Changes Everything

512K lines isn’t “code.” It’s a blueprint. Anthropic’s agent playbook, open for remix.

  • OSS clones brewing. Multi-agent frameworks ported yesterday.

  • Enterprise audits incoming. “You ran leaked IP?”

  • Bun drama. Issue #28001: “Maps in prod.” Fixed, but scarred.

  • India devs (50K+ CLI users) forking with Qwen swaps.

Sabrina Ramonov tore it apart: “Engineering porn. Custom terminal + 40 tools = masterpiece.”

The Human Factor: Twice in 13 Months?

Feb 2025: 18M chars inline. Pulled in 2 hours.

Mar 2026: 59MB npm + R2. Mirrors eternal.

Bun defaults bit them. .npmignore complexity. R2 public by default. Prod stripping forgotten.

No firings. “Lessons learned.” But trust? Shaken.

What You Do Now

  1. npm uninstall @anthropic-ai/claude-code

  2. Update v2.1.89+

  3. Hunt mirrors (archive.org safest)

  4. Fork responsibly—no malware zips

  5. Build: BUDDY bots, KAIROS watchers

India? Port to Krutrim. Bangalore terminals await.

Claude source code leaked hands AI devs Anthropic’s secret sauce. BUDDY whimsy. KAIROS stealth. Swarms that dream. npm blunder = open-source win.

Anthropic built safety. Accidentally open-sourced it. Code flows free. Build something wild.

CATEGORIES
TAGS