Blog

Claude Code's Source Code Leak: A Sourcemap Oversight

2026-04-08

Anthropic recently released a new version of Claude Code, an Electron-based application. Due to an oversight, the release included the full, unminified source code via a sourcemap, making it publicly available. This incident highlights the risks of rapid development cycles, even when AI agents are involved.

Claude Code's Source Code Leak: A Sourcemap Oversight

Just a few days ago, Anthropic released a new version of Claude Code. Claude Code is built with Electron and runs on Bun. Applications of this nature typically undergo minification, a process that renders the code unreadable to humans. However, due to an error by the coding agent, this particular version included the original source code (akin to a debug build).

The internet quickly took notice, and the complete source code for Claude Code is now widely available for download from numerous websites, which Anthropic is actively trying to remove from the web.

Anthropic is known for a development process where coding agents are responsible for writing code from the initial concept all the way to production. Could humans also make a similar mistake and fail to notice that a version with the full source code is being uploaded? Probably yes, such incidents have occurred in the past. Nevertheless, there's no doubt that when the entire development process shifts into high gear, it becomes easier to make mistakes.