Anthropic exposes Claude Code source code due to error in April npm package

Claude by Anthropic
Photo: Claude by Anthropic - gguy/ Shutterstock.com

Anthropic confirmed that version 2.1.88 of the @anthropic-ai/claude-code package, released on April 1, 2026, accidentally included an approximately 60 MB source map file that allowed significant portions of the encoding agent source code to be reconstructed. The company immediately removed the affected version from the npm registry after users identified the exposure. The company attributed the incident to human error in the packaging process, ruling out any external security breach or exposure of sensitive customer data.

Escala of exposure and leaked file contents

The source map file made available allowed access to approximately 1,900 TypeScript files and more than 512 thousand lines of code relating to the Claude Code structure, a command line tool that uses the agentic capabilities of the Claude model to execute programming tasks autonomously. The failure occurred because ignore settings that were supposed to keep the source map internal did not work properly during final build preparation.

The included map pointed to a compressed file hosted on Anthropic storage, making it easy for anyone interested to fully download the content during the brief period in which it remained available on the npm registry, a repository widely used by developers around the world.

  • Package version 2.1.88 was removed from npm shortly after the issue was identified.
  • Cópias of the leaked code was quickly archived in public repositories on GitHub.
  • Pesquisadores began examining the material for insights into the agent’s architecture.

Resposta of Anthropic and preventive measures implemented

The company issued an official statement confirming that the episode resulted exclusively from human error and reinforced that no sensitive customer data or credentials were exposed. Additional Medidas prevention measures are being implemented to prevent similar repetitions in future software releases. Claude Code remains operational for users without case-related outages.

Especialistas in supply chain security note that leaks of this type, even without exposure of AI models or customer data, can provide visibility into a company’s internal tools and workflows. Anthropic stated that it works to strengthen review processes before new publications.

Análise technical code available

Desenvolvedores who reviewed the exposed code identified references to internal tools, interaction patterns between components, and agent-specific configurations. The volume of lines of code suggests a complex foundation that integrates the language model with task execution, automatic review and workflow management capabilities. Parte content reveals approaches used to control agent behavior in practical coding scenarios.

The material allows researchers to examine agent orchestration mechanisms, tool management, and strategies for containing unwanted behaviors. Embora’s core language model has not been exposed, the architecture around it offers clues about how Anthropic structures complex interactions between AI and external systems.

Contexto of recent incidents and impact on the ecosystem

Este is the second episode reported in a short period of time involving accidental exposure of internal information from Anthropic. Last week, draft content files became publicly accessible through management tool settings. The company treated both cases as isolated operational failures and unrelated to external attacks or misuse of its own AI tools.

The incident comes at a time of accelerated growth for AI-assisted development tools. Claude Code, launched in February 2025, gained traction by adding agentic features that allow the model to perform actions on behalf of the user with different levels of autonomy. Comunidades of developers are closely following developments in the case, especially as npm represents a central part of the modern software supply chain. The leak could accelerate discussions about security practices in AI product releases, particularly those involving agentic components with the potential for autonomous action.

See Also Latest News (EN)

August will have a partial lunar eclipse visible in Belo Horizonte with almost 96% of the moon covered
Latest News (EN) • 14/08/2026

August will have a partial lunar eclipse visible in Belo Horizonte with almost 96% of the moon covered

Discovery reveals 280-million-year-old amphibian with plant-based diet in Brazil
Latest News (EN) • 14/08/2026

Discovery reveals 280-million-year-old amphibian with plant-based diet in Brazil

Galaxy S26 FE will have its price adjusted at its launch by Samsung
Latest News (EN) • 14/08/2026

Galaxy S26 FE will have its price adjusted at its launch by Samsung

Honda Biz launches Kuromi special edition with purple look after success at geek event
Latest News (EN) • 14/08/2026

Honda Biz launches Kuromi special edition with purple look after success at geek event

Forecast points to Apple’s iPhone 18 Pro announcement in August 2026
Latest News (EN) • 14/08/2026

Forecast points to Apple’s iPhone 18 Pro announcement in August 2026

South American Men’s Volleyball Championship 2026: check dates, format and table
Latest News (EN) • 14/08/2026

South American Men’s Volleyball Championship 2026: check dates, format and table

SpaceX Starship prepares for 14th test flight aiming for September 2026 launch
Latest News (EN) • 14/08/2026

SpaceX Starship prepares for 14th test flight aiming for September 2026 launch

Fernandópolis trader dies after explosion when lighting a barbecue in a skewer
Latest News (EN) • 14/08/2026

Fernandópolis trader dies after explosion when lighting a barbecue in a skewer

EA SPORTS Madden NFL 27 hits the market with Persona engine and expanded control on the field
Latest News (EN) • 14/08/2026

EA SPORTS Madden NFL 27 hits the market with Persona engine and expanded control on the field

Foo Fighters schedule shows in Belo Horizonte and São Paulo for 2027
Latest News (EN) • 14/08/2026

Foo Fighters schedule shows in Belo Horizonte and São Paulo for 2027

Wife of American soldier is rescued from deportation on flight and released after a month in detention
Latest News (EN) • 14/08/2026

Wife of American soldier is rescued from deportation on flight and released after a month in detention

Finlay Tarling, 19-year-old British cyclist, dies in an accident during a race in Portugal
Latest News (EN) • 14/08/2026

Finlay Tarling, 19-year-old British cyclist, dies in an accident during a race in Portugal

PS5 and PS4 games receive new discounts on PlayStation Store
Latest News (EN) • 14/08/2026

PS5 and PS4 games receive new discounts on PlayStation Store

Report details engine failure on Ryanair flight where passenger was sucked out of window
Latest News (EN) • 14/08/2026

Report details engine failure on Ryanair flight where passenger was sucked out of window

Al Hilal beats Al Faisaly 4-2 in a duel with goals and comebacks in the final minutes
Latest News (EN) • 14/08/2026

Al Hilal beats Al Faisaly 4-2 in a duel with goals and comebacks in the final minutes