News Grower

Independent coverage of AI, startups, and technology.

Ars Technica Mar 31, 2026 at 19:09 Big Tech

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.

By Samuel Axon Original source
Entire Claude Code CLI source code leaks thanks to exposed map file

The entire source code for Anthropic's Claude Code command line interface application (not the models themselves) has been leaked and disseminated, apparently due 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

Related tags

Companies and people

Story threads

Continue with this story

Follow the same topic through connected articles, entity pages, and active story threads.

Ad slot

Article inline monetization block

A reserved partner slot for relevant tools, services, and contextual editorial integrations.

Partner slot

Related articles

More stories that share tags, source, or category context.

More from Ars Technica

Fresh reporting and follow-up coverage from the same newsroom.

Open source page