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

Flipkart has a unique way to discover electronics deals during IPL 2026: Here is how it works

Flipkart has come up with a fun way to discover deals on the platform. Capture an umpire’s signal and relate it to a product.

Redmi Note 15 5G Special Edition arrives in India with a 5,800mAh battery: Price, specs, more

The Redmi Note 15 Special Edition 5G is a part of the Redmi Note 15 series and it starts at ₹19,999 in India.

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.

Topics

JEE Main 2026 Session 2 paper analysis: Paper easy, maths lengthy, chemistry scoring

The first shift of JEE Main Session 2 was rated easy to moderate by experts. With physics and chemistry scoring, mathematics remained the most time-consuming se

Flipkart has a unique way to discover electronics deals during IPL 2026: Here is how it works

Flipkart has come up with a fun way to discover deals on the platform. Capture an umpire’s signal and relate it to a product.

Redmi Note 15 5G Special Edition arrives in India with a 5,800mAh battery: Price, specs, more

The Redmi Note 15 Special Edition 5G is a part of the Redmi Note 15 series and it starts at ₹19,999 in India.

CBSE students to learn AI and computational thinking from Class 3

Union Education Minister Dharmendra Pradhan launches AI curriculum for early classes to prepare students for future technologies

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.
spot_img

Related Articles

Popular Categories

spot_imgspot_img