Anthropic has inadvertently open-sourced the complete client-side code for Claude Code, its terminal-based AI coding assistant. This significant leak occurred through a misconfiguration in its npm packaging.
The incident, first identified by an intern at Fuzzland, involved a large source map file in the latest version of the `@anthropic-ai/claude-code` package. This file provided direct access to a public Cloudflare R2 bucket containing the full, unobfuscated TypeScript source code.
The exposed code comprises 1,906 files, detailing internal APIs, tool orchestration logic, and permission systems. It also reveals dozens of feature flags for unreleased capabilities.
Within hours, the code was mirrored on GitHub, de-minified, and analyzed by the community. Some developers are already working on cleanroom replicas.
What is Claude Code?
Claude Code is Anthropic's entry into the burgeoning field of agentic development tools. Launched in early 2025, it allows developers to issue natural language commands directly in the terminal to perform tasks like code editing, file manipulation, and shell command execution.
