
We Dug Into the Claude Code Source Leak — Here's What It Reveals About AI Agent Architecture
We Dug Into the Claude Code Source Leak — Here's What It Reveals About AI Agent Architecture On March 31, 2026, the AI development community woke up to an unexpected gift: Anthropic accidentally shipped the entire source code of Claude Code inside .map files in their npm package. Someone forgot to add *.map to .npmignore . The irony? Claude Code is likely the tool that built itself. At Gerus-lab, we build AI-powered products daily — from Telegram bots to multi-agent orchestration systems. When this leak happened, we dropped everything and spent the evening reverse-engineering what Anthropic actually built under the hood. What we found reshapes how we think about AI agent architecture. How Did This Even Happen? When you publish a JavaScript/TypeScript package to npm, your build toolchain often generates .map files (source maps). These files exist for debugging — they map minified production code back to the original source lines. The problem: source maps contain the original source code
Continue reading on Dev.to Webdev
Opens in a new tab



