HomeTechnologyEntire Claude Code CLI source code leaks thanks to exposed map file

Entire Claude Code CLI source code leaks thanks to exposed map file

TechnologyMarch 31, 2026
1 min read
Entire Claude Code CLI source code leaks thanks to exposed map file
512,000 lines of code that competitors and hobbyists will be studying for weeks.
Reading Settings

The entire source code for Anthropic's Claude Code command line interface application (not the models themselves) has been leaked and disseminated, apparently thanks to a serious internal error. The leak gives competitors and armchair enthusiasts a detailed blueprint for how Claude Code works—a significant setback for a company that has seen explosive user growth and industry impact over the past several months.

Early this morning, Anthropic published version 2.1.88 of Claude Code npm package—but it was quickly discovered that package included a source map file, which could be used to access the entirety of Claude Code's source—almost 2,000 TypeScript files and more than 512,000 lines of code.

Security researcher Chaofan Shou was the first to publicly point it out on X, with a link to an archive containing the files. The codebase was then put in a public GitHub repository, and it has been forked tens of thousands of times.

Read full article

Comments

Source: Ars Technica

Share this article

Related Articles

The Download: US robot restrictions, and ICE’s DNA grab
Aug 047 hours ago

The Download: US robot restrictions, and ICE’s DNA grab

This is today’s edition of The Download, our weekday newsletter that provides a daily dose of what’s going on in the world of technology. Trump’s AI protectionism has come for robotics   —

technologyreview.com6 min read
Read More
‘Everyone Is Doing It’: The Truth About AI in Hollywood
Aug 047 hours ago

‘Everyone Is Doing It’: The Truth About AI in Hollywood

Puck’s Matthew Belloni says AI has quietly become part of everyday filmmaking. The battle now isn’t whether Hollywood will use the technology—it’s who controls what’ll come next.

6a6caf552bba9f4c44a513ef36 min read
Read More