AI

Anthropic accidentally exposed part of Claude Code's internal source code

Dario Amodei
The leak comes after Anthropic saw a surge of downloads over the past month. Bloomberg/Getty Images
Read in app

Rival developers just gained insight into how Anthropic built its popular AI-powered coding assistant tool, Claude Code.

The company accidentally leaked part of the internal source code for Claude Code during a release, a spokesperson confirmed to Business Insider on Tuesday.

"Earlier today, a Claude Code release included some internal source code. No sensitive customer data or credentials were involved or exposed," an Anthropic spokesperson said in a statement. "This was a release packaging issue caused by human error, not a security breach. We're rolling out measures to prevent this from happening again."

An X post with a link and a screenshot of what appeared to be internal source code for Claude Code had racked up 26 million views on X as of Tuesday evening.

The exposed code was related to Claude Code itself, not the underlying AI models.

The leak could give a leg up to Anthropic's rivals by offering an inside look into one of its most popular products. It also raises security questions about a company that has positioned itself as focused on AI safety.

The leak comes after a period of growth for Anthropic, fueled by a very public breakup with the Pentagon in February. After CEO Dario Amodei refused to back down in a dispute over how its AI could be used, the Defense Department instead struck a deal with OpenAI.

Last week, a US District Judge Rita Lin granted a temporary injunction blocking the supply chain risk designation.

Following the dispute, Anthropic's Claude chatbot saw a surge of downloads over the past month, briefly rising to No. 1 in the US Apple App Store.

Read next

Kelsey Vlamis's face on gray background.
Kelsey Vlamis
Kelsey Vlamis is a senior reporter for Business Insider, where she covers business and tech news. She also writes business stories about travel, luxury, and culture. Previously, she covered the environment, outdoors, and indigenous issues.Her feature story "Disaster at 18,200 feet" received awards from the New York Press Club and the North American Travel Journalists Association, as well as honorable mention from the Society of American Travel Writers. She has also received an American Journalism Online Award for her coverage on missing and murdered Indigenous people in Wyoming.She's appeared on CBS, NPR, NBC, and other outlets to discuss her reporting. She previously worked on the world news desk at the BBC in London and received a master's in journalism from Northwestern University.She can be reached by email at kvlamis@jkmperu.com or via the encrypted-messaging app Signal at kelseyv.21.