Claude Code Source Accidentally Exposed… Again 👀

Developers on GitHub are currently digging through the internal code of Claude Code after a packaging mistake exposed its source code in a public npm release.

On 31 March, security researcher Chaofan Shou discovered that the latest version of the CLI tool included a 60MB source-map file (cli.js.map). That file allows anyone to reconstruct the original TypeScript source code used to build the tool.

Source maps are normally meant for debugging during development, but they’re not supposed to ship with production software because they effectively reveal the underlying codebase.

Reports suggest the exposed map referenced 1,900+ internal files, including parts of the tool’s API design, telemetry logic, encryption utilities, and internal communication layers. The codebase was quickly archived by developers and began spreading across repositories within hours.

Importantly, the leak does not include Claude model weights or user data, only the client-side implementation of the CLI.

Interestingly, this isn’t the first time this has happened. A similar source-map exposure reportedly occurred in 2025 and was later removed.

Which brings up a bigger question for developer tools 👇

If an AI company accidentally exposes the full source of its developer tool, does that actually hurt them… or does it give the community valuable transparency into how these tools work?