Just Now, Was Claude Code Forced to Open Source?

The source code of Claude Code has been leaked.

Around 4 o’clock, X blogger @Fried_rice posted:

“The source code of Claude Code was leaked through the map files in their npm repository!”

In the official @anthropic-ai/claude-code npm package released by Anthropic, the .map source map files used for debugging were mistakenly included.

These source maps contain the complete TypeScript source code paths and content, which should only exist in development or debugging environments,but were packaged into the production build.

Using the .map files, someone successfully fully restored the source code from the compressed output.

Someone packaged and organized the extracted complete source code anduploaded it to the GitHub platform for “research and security analysis” purposes.

For example, the following GitHub project that just went open source:


Open Source Address: https://github.com/instructkr/claude-code
It gained over 10,000 Stars in just 1 hour,and Forks outnumber Stars.
<span leaf="" style="color: rgba(0, 0, 0, 0.9);font-size: 17px;font-family: mp-quote, 'PingFang SC', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans