Machine Heart
Machine Heart
Apr 1, 2026 · Artificial Intelligence

Claude Code Source Leak: Inside the Accidental Open‑Source Release and New Buddy Feature

The accidental exposure of Claude Code’s TypeScript source via an npm source‑map mishap sparked a rapid community deep‑dive that uncovered anti‑distillation safeguards, a hidden Buddy pet, extensive prompt‑caching logic, undercover mode, auto‑compaction thresholds, and broader engineering trade‑offs, while Anthropic and its founder responded to the slip.

AI agentsClaude Codeanti-distillation
0 likes · 20 min read
Claude Code Source Leak: Inside the Accidental Open‑Source Release and New Buddy Feature
Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
Mar 31, 2026 · Artificial Intelligence

Claude Code Leak Exposes 510k Lines of Source and Hidden Features

A massive source‑map mishap exposed over 1,900 files and 510,000 lines of Claude Code’s TypeScript implementation, revealing its React‑Ink UI, Bun runtime, a 40‑module toolbox, a 46k‑line QueryEngine, multi‑agent coordinator, hidden Kairos mode, Undercover mode, and even an embedded virtual pet system.

AI toolingBunClaude Code
0 likes · 6 min read
Claude Code Leak Exposes 510k Lines of Source and Hidden Features