Claude Code source code leaked, over 500,000 lines of code obtained by developers
2026-04-01 10:06:00+08
Recently, the AI company Anthropic faced an unprecedented crisis as the complete source code of its latest tool, Claude Code, was accidentally leaked within the developer community. The incident began when a developer named Chaofan Shou posted a compressed file containing over 500,000 lines of TypeScript code on Twitter, drawing widespread attention and discussion from global developers. This leak quickly spread online, with views exceeding 5.3 million within a few hours, becoming a hot topic in the tech circle.
So, what exactly caused this leak? According to reports, Anthropic forgot to remove .map files when publishing the code to npm, leading to the exposure of core code. This mistake not only put the company in an embarrassing situation but also raised doubts about its security management. However, this accidental leak allowed the outside world to get a glimpse of some of Anthropic's cutting-edge features in the AI field.
From the source code, it can be seen that Claude Code includes several impressive features, among which the project codenamed BUDDY has attracted significant attention. It not only accompanies developers in writing code but also has a unique personalized pet system. Users can hatch their own cyber pets based on personal information. These pets have cute appearances and dynamic values such as debugging ability and patience, even featuring a "snarky value," undoubtedly adding a lot of fun to the work atmosphere.
More forward-looking is the feature codenamed KAIROS, which aims to create an "always-on" AI assistant. Unlike traditional conversation methods, KAIROS can maintain memory across multiple sessions and proactively initiate tasks. Additionally, the source code includes a Nightly Dreaming mechanism, where Claude organizes information and consolidates core content while the user sleeps. This innovative concept not only makes AI smarter but also brings new possibilities for future work styles.