The source code for the AI coding assistant 'Claude Code' was leaked due to human error; Anthropic has removed 8,000 copies that had been reposted on GitHub.



Anthropic has admitted that nearly 2,000 files, part of the source code for its AI coding assistant '

Claude Code ,' were unintentionally leaked. While the files do not contain any confidential information or credentials, 8,000 copies that had been reposted on GitHub have been removed at Anthropic's request.

Anthropic leaks part of Claude Code's internal source code
https://www.cnbc.com/2026/03/31/anthropic-leak-claude-code-internal-source.html



Claude Code's source code appears to have leaked: here's what we know | VentureBeat

https://venturebeat.com/technology/claude-codes-source-code-appears-to-have-leaked-heres-what-we-know

Claude's code: Anthropic leaks source code for AI software engineering tool | Technology | The Guardian
https://www.theguardian.com/technology/2026/apr/01/anthropic-claudes-code-leaks-ai

Anthropic Races to Contain Leak of Code Behind Claude AI Agent - WSJ
https://www.wsj.com/tech/ai/anthropic-races-to-contain-leak-of-code-behind-claude-ai-agent-4bc5acc7

Claude Code is an AI coding assistant that was released in February 2025, at the same time as Claude 3.7 Sonnet.

'Claude 3.7 Sonnet' and 'Claude Code' have been released, demonstrating performance exceeding that of OpenAI o1 and DeepSeek-R1, and successfully defeating three Pokémon Gym Leaders - GIGAZINE



On March 31, 2025, X user Chaofan Shou reported that the source code for Claude Coe was included in GitHub's npm registry. This was an accidental inclusion during an update, resulting in the leak of approximately 2,000 internal files and 500,000 lines of code. The information spread rapidly, and the source code was copied extensively on GitHub, with the British newspaper The Guardian commenting that 'the rewritten source code became the fastest-downloaded repository in GitHub history.'



According to Reddit user Clear_Reserve_8089, who examined the code, a Tamagotchi-like pet system called 'buddy' was discovered. The system was given the salt 'friend-2026-401,' leading Clear_Reserve_8089 to suggest it's an April Fool's Day feature. However, the inclusion of 'Teaser window: April 1-7, 2026 only. Command stays live forever after.' suggests it might not be just an April Fool's joke.

i dug through claude code's leaked source and anthropic's codebase is absolutely unhinged : r/ClaudeAI
https://www.reddit.com/r/ClaudeAI/comments/1s8lkkm/i_dug_through_claude_codes_leaked_source_and/


i dug through claude code's leaked source and anthropic's codebase is absolutely unhinged
by
u/Clear_Reserve_8089 in
ClaudeAI



The following article provides more detailed information about the newly discovered 'buddy,' 'KAIROS,' and 'AutoDream.'

What is the Anthropic development project revealed by the Claude Code source code leak? - GIGAZINE



By the morning of April 1, 2026, Anthropic had removed more than 8,000 copies that had been reposted and shared on GitHub using copyright removal requests. A spokesperson stated that the source code leak was not due to a security breach but rather a release packaging issue caused by human error, and commented that they would 'take measures to ensure this never happens again.'

Furthermore, the data leak revealed that shortly before this incident, Anthropic had developed a new AI model and begun testing it with some customers.

Exclusive: Anthropic 'Mythos' AI model representing 'step change' in power revealed in data leak | Fortune

https://fortune.com/2026/03/26/anthropic-says-testing-mythos-powerful-new-ai-model-after-data-leak-reveals-its-existence-step-change-in-capabilities/



in AI, Posted by logc_nt