Claude Code Source Code Leaked, Over 500,000 Lines of Code Obtained by Developers

marsbitPublicado em 2026-04-01Última atualização em 2026-04-01

Resumo

Anthropic faces a major security incident as the complete source code for its AI tool Claude Code, exceeding 500,000 lines of TypeScript, was leaked. The breach originated when a developer shared a compressed file on Twitter, which quickly gained over 5.3 million views. The exposure was due to Anthropic accidentally including .map files when publishing to npm, revealing core code. The leaked code unveils several advanced features, including a project codenamed BUDDY, which offers a personalized cyber pet system with traits like debugging power and even a "sarcasm value." Another feature, KAIROS, aims to create an "always-on" AI assistant capable of maintaining memory across sessions and initiating tasks. The code also includes a "Nightly Dreaming" mechanism, allowing Claude to organize information and consolidate core content while the user sleeps. Despite the breach, the incident has inadvertently showcased Anthropic's innovative capabilities, turning a PR crisis into an unexpected demonstration of their cutting-edge AI developments.

Recently, artificial intelligence company Anthropic encountered an unprecedented crisis when the complete source code of its latest tool, Claude Code, was accidentally leaked within the developer community. The incident began when a developer, Chaofan Shou, posted a compressed package containing over 500,000 lines of TypeScript code on Twitter, sparking widespread attention and discussion among developers globally. This leak quickly exploded online, with page views surpassing 5.3 million within hours, becoming a hot topic in the tech circle.

So, what was the cause of this leak? According to reports, when Anthropic published the code to npm, it actually forgot to remove the .map files, leading to the exposure of the core code. This mistake not only embarrassed the company but also raised external doubts about its security management. However, this accidental leak has given the outside world an early glimpse into some of Anthropic's cutting-edge functionalities in the AI field.

From the source code, it can be seen that Claude Code includes several astonishing features, with the project codenamed BUDDY being particularly notable. It can not only accompany developers in writing code but also has a unique personalized pet system, allowing users to incubate their own cyber pets based on personal information. This pet not only has a cute appearance but also has dynamic stats like debugging power and patience, and even a "sarcasm value," undoubtedly adding a lot of fun to the work atmosphere.

Even more forward-looking is the feature codenamed KAIROS, which aims to achieve 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 the AI smarter but also brings new possibilities for future work methods.

Although Anthropic is currently busy dealing with this leak, the unexpected exposure might also provide a platform to showcase their cutting-edge technology. This accidental PR crisis has instead highlighted the company's innovative capabilities. The future of the AI field will become even more exciting because of such attempts.

Perguntas relacionadas

QWhat was the cause of the Claude Code source code leak at Anthropic?

AAnthropic forgot to remove .map files when publishing the code to npm, which exposed the core source code.

QHow many lines of TypeScript code were leaked in the Claude Code incident?

AOver five hundred thousand lines of TypeScript code were leaked.

QWhat is the name of the project that features a personalized cyber pet system for developers?

AThe project is called BUDDY, which includes a personalized cyber pet system with traits like debugging power and patience.

QWhat is the KAIROS feature designed to do according to the leaked source code?

AKAIROS is designed to be an 'always-on' AI assistant that maintains memory across multiple sessions and can proactively initiate tasks.

QWhat mechanism does Claude have for processing information during user inactivity?

AClaude has a 'Nightly Dreaming' mechanism where it organizes information and consolidates core content while the user is sleeping.

Leituras Relacionadas

Anthropic Starts Poaching Scientists? $27K Weekly Onsite Stipend to Fix Claude's Expert-Level Errors

Anthropic has launched a new STEM Fellow program, offering $3,800 per week for a three-month, in-person residency in San Francisco. The role targets experts from science, technology, engineering, and mathematics (STEM) fields—machine learning experience is helpful but not required. Instead, Anthropic values scientific judgment and a willingness to learn quickly. Fellows will work with Claude models and internal tools under the guidance of an Anthropic researcher. Example projects include a materials scientist identifying errors in Claude’s reasoning or a climate scientist integrating atmospheric modeling software with Claude. The goal is to have experts "tell Claude where it's wrong" and improve its scientific capabilities. This initiative is part of Anthropic’s broader strategy to strengthen its scientific ecosystem, following earlier programs like the AI Safety Fellows and AI for Science programs. The company acknowledges that current AI models, while powerful, still produce high-confidence errors and lack end-to-end research autonomy. The program aims to embed domain expertise directly into model development, turning scientists into "high-level reviewers" for AI. Anthropic CEO Dario Amodei has previously emphasized AI’s potential to accelerate scientific breakthroughs, particularly in biology and healthcare. The company believes that the next phase of AI competition will depend not on scaling parameters, but on integrating human expertise to refine model accuracy and reliability.

marsbitHá 37m

Anthropic Starts Poaching Scientists? $27K Weekly Onsite Stipend to Fix Claude's Expert-Level Errors

marsbitHá 37m

On the Eve of X Money's Launch, Musk Dismantles the Referee First

"X Money Launches After Dismantling Regulator: Musk's 9-Day Power Play" In February 2025, a team from the "Department of Government Efficiency" (DOGE), led by Elon Musk, entered the Consumer Financial Protection Bureau (CFPB) headquarters. Shortly after, the CFPB was effectively dismantled—its funding frozen, activities suspended, and nearly 90% of staff laid off. This move came just nine days after X announced a partnership with Visa and as X Money prepared to launch. The article contrasts this with the decade-long regulatory battles faced by companies like Coinbase and PayPal. Coinbase spent over $75 million in political contributions and endured a major SEC lawsuit to operate legally. PayPal complied with strict state and federal rules for its stablecoin PYUSD, including 100% reserve requirements and monthly audits. However, Musk’s approach was different. After the CFPB introduced a rule placing large digital payment apps under federal oversight, Musk tweeted "Delete CFPB." Within months, the rule was revoked by Congress. Meanwhile, DOGE operatives gained "god-tier" access to CFPB databases, potentially obtaining sensitive competitive information from rivals like Apple, Google, and PayPal. The article also highlights a "suspicious exemption clause" in the GENIUS Act, which allows private companies like X to issue stablecoins with fewer restrictions. Senator Elizabeth Warren questioned whether Musk, who was a senior presidential advisor during the Act’s drafting, influenced this clause. X Money offers a 6% APY on deposits, despite FDIC warnings that stablecoin users are not insured. As X Money launches to 600 million monthly users, the article questions the fairness of a system where Musk can bypass regulations that others spent years and millions to comply with. The dismantling of the CFPB and the alleged regulatory advantages raise concerns about the future of equitable rule-making in the U.S. financial system.

marsbitHá 46m

On the Eve of X Money's Launch, Musk Dismantles the Referee First

marsbitHá 46m

Trading

Spot
Futuros
活动图片