Claude source code leaked by Anthropic, gives everyone a look inside how viral chatbot works

Oops! It’s happened again. Anthropic has once again accidentally exposed sensitive information related to its Claude AI family. This time, it’s the internal source code of its AI coding assistant, Claude Code. The leak, which surfaced on March 31, 2026, was not the result of a cyberattack or hack, but likely a basic packaging mistake. The company recently rolled out an update, during which developers noticed that the release package contained a source map file, something that is never meant to be publicly distributed.

The leak first came to light when security researcher Chaofan Shou found that Claude Code’s latest update (version 2.1.88) included a source map file in its npm package. This file, called cli.js.map, essentially can allow anyone to rebuild and view the tool’s original code. Within hours, the leak, the source map spread across developer communities, with users downloading, analysing, and sharing the exposed code online.

Claude Code leaked

What exactly went wrong

The leak was likely caused by a simple technical error during the update process.

Software like Claude Code is typically written in human-readable languages such as TypeScript and then compiled into a compressed format before being released. This process helps Anthorpic to protect the original code and prevents it from being easily accessed or reverse-engineered.

However, in this case, Anthropic accidentally included a source map file in the public release. Such files are meant only for internal use, as they link the compiled software back to its original source code to help developers debug issues.

By shipping this file as part of the npm package, the company effectively made it possible for anyone to reconstruct and access the full codebase. This exposed the internal workings of Claude Code, including its underlying architecture and design.

In short, the leaked code gives people a blueprint of how the Claude Code actually works.

What was exactly leaked?

According to reports, the leak exposed more than 500,000 lines of Claude Code’s source code, spread across nearly 2,000 internal files.

This included important parts of how the Anthropic’s AI tool works, such as:

– Internal APIs (how different parts of the system connect)
– Telemetry and analytics systems
– Some encryption-related logic
– Communication between different components

Developers who explored the code also found hints of upcoming features and experiments. These include a Tamagotchi-like assistant that reacts while you code, and a feature called “KAIROS,” which could enable an always-on AI agent working in the background.

The leak even reportedly included internal developer comments, giving a rare glimpse into how engineers at Anthropic think while building the code, including doubts about whether certain features actually improve performance or just add complexity.

Not the first time for Anthropic

While the latest leak is significant, what’s more concerning is that it isn’t an isolated incident. A similar issue was reported in early 2025, also linked to a source map file being included in a public release. The version exposed details around how Claude AI works and how it has been connected to Anthropic’s internal systems.

Although the issue was fixed at the time, the recurrence of a sensitive code leak now raises questions about Anthropic’s internal release processes and quality control.

Given that Anthropic is currently at the forefront of the AI race, with its tools widely used by businesses and developers, the slip-up is drawing heavy criticism. Users are questioning how a company that positions itself as a leader in AI safety and reliability could allow such repeated errors.

Latest

Vivo V70 FE with 7,000mAh battery and 200MP camera launched in India: Price, specs and more

Vivo V70 FE launches in India with a 200MP camera, 7,000mAh battery and 90W charging support. Check price in India, availability and more. 

Realme 16 5G launched with iPhone Air-like camera design, selfie mirror – Price and more

Realme 16 5G launches in India with a 7,000 mAh battery, 50MP cameras, AMOLED display, and Dimensity 6400 Turbo, starting at ₹31,999.

Apple issues urgent security fix — update your iPhone now to stay safe

Earlier, iOS 18.7.7 was available only for the iPhone X series models. But now, it is available for all iPhone models that cannot download iOS 26.

Oppo K15 Pro Plus and K15 Pro launched with cooling fan, up to 8,000mAh battery

Oppo has launched the K15 Pro series in China. The lineup contains two smartphones — the Oppo K15 Pro and the Oppo K15 Pro+. The devices rolled out alongside

IPhone 20 leak reveals stunning design, super-curved display and other details before launch

The iPhone 20 is expected to debut in 2027, but details about the device have already started surfacing. Recent rumours suggest that the smartphone could featur

Topics

Vivo V70 FE with 7,000mAh battery and 200MP camera launched in India: Price, specs and more

Vivo V70 FE launches in India with a 200MP camera, 7,000mAh battery and 90W charging support. Check price in India, availability and more. 

Realme 16 5G launched with iPhone Air-like camera design, selfie mirror – Price and more

Realme 16 5G launches in India with a 7,000 mAh battery, 50MP cameras, AMOLED display, and Dimensity 6400 Turbo, starting at ₹31,999.

Apple issues urgent security fix — update your iPhone now to stay safe

Earlier, iOS 18.7.7 was available only for the iPhone X series models. But now, it is available for all iPhone models that cannot download iOS 26.

Quote of the day by Ajay Devgn: ‘Awards are only given to those who…’

Happy birthday Ajay Devgn: As the actor enters his 57th year, he remains a rare breed of superstar, one who lets his work do the talking.

Moment Nasa launched four astronauts on first Moon mission of 21st century

The crew will not land on the lunar surface as this flight is a test run, designed to put Nasa's new spacecraft, Orion, and its giant rocket, the Space Launch S

Nasa successfully launches four astronauts on a 10-day trip to the Moon

Nasa successfully launches four astronauts on a 10-day trip to the Moon

Small plane crash lands in Philadelphia park- Here is what happened

A small plane crash landed in a Philadelphia park and both people on board were rescued.

Iran prez writes open letter to Americans ahead of Trump’s big speech: ‘World stands at crossroads’

Iran’s President Pezeshkian wrote to Americans, signaling openness to talks while tensions remain high.
spot_img

Related Articles

Popular Categories

spot_imgspot_img