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

marsbitPublicado a 2026-04-01Actualizado a 2026-04-01

Resumen

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.

Preguntas 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.

Lecturas Relacionadas

Base Claims Its Distribution Advantage Can Outlast Robinhood Chain's Initial Surge

Base, a layer-2 blockchain, argues that its established distribution network will outlast Robinhood Chain's initial popularity surge. While Robinhood Chain quickly attracted 230,000 daily active users and over $9 billion in DEX volume (primarily from meme coins) shortly after launch, its core feature of tokenized stocks saw minimal use. Base acknowledged shortcomings in focusing on social blockchain products and lagging in areas like perpetual contracts, predictions markets, and on-chain tokenized stocks—a move Robinhood got right. In response, Base highlights its nearly three-year head start in building infrastructure. It emphasizes its x402 payment protocol, which has processed 187.8 million agent payments, its $3.9 billion in stablecoin deposits (mostly USDC), and its integration with partners like Visa, Shopify, and JPMorgan for institutional and merchant settlements. Base contends these capabilities for corporate payments and stablecoin liquidity represent a more durable and defensible ecosystem than Robinhood's retail trading metrics. Coinbase plans to launch its own on-chain, share-backed tokenized stocks on Base, which would directly challenge Robinhood's key differentiating feature. Base's strategy bets that its deep-rooted distribution and institutional partnerships will prove harder to overcome than Robinhood's early, meme-driven volume, which may fade after the initial launch hype.

cryptonews.ruHace 4 min(s)

Base Claims Its Distribution Advantage Can Outlast Robinhood Chain's Initial Surge

cryptonews.ruHace 4 min(s)

The Turning Point of the AI Bull Market: Leverage Blow-ups, Overcapacity in Compute, Why This Macro Analyst is Fully Bearish

AI Bull Market Reaches Inflection Point: Analyst Turns Bearish Due to Leverage, Chinese Competition, and Overcapacity Fidenza Macro analyst Geo Chen explains his decision to sell all AI semiconductor and infrastructure holdings in June, offering a comprehensive bearish thesis. He argues the AI-driven bull market has peaked, citing several key factors. First, unsustainable buying pressure: a massive influx of "low-quality" capital from Korean retail investors using highly leveraged ETFs on stocks like SK Hynix created a parabolic, fragile rally. Recent liquidations have wiped out billions and impacted over a million accounts, removing a key market driver. Second, a competitive threat: the rapid rise of powerful, cost-effective open-source AI models from China, such as MoonShot AI's Kimi K3 and Alibaba's Qwen 3.8, is commoditizing intelligence. This undermines the pricing power and high-valuation financing prospects of closed-source leaders like OpenAI and Anthropic, potentially creating a "single point of failure" for the ecosystem. Third, an impending capacity glut: while AI compute and components are currently in shortage, Chen warns this is typical of a cycle top. Massive, committed capex from cloud providers will likely lead to a supply overhang within 1-2 years. Data shows token spending has already peaked and declined since June, while bond spreads for data center companies are widening, signaling rising credit risk. Chen also highlights broader macro headwinds: the protracted Iran conflict acts as a persistent stagflationary force, and the Federal Reserve under Chair Kevin Warsh is losing credibility in its inflation fight. Long-term Treasury yields breaking above 5.2% present a new challenge for equities. In summary, Chen believes the convergence of speculative excesses, competitive disruption, looming overcapacity, and adverse macroeconomic conditions marks a significant turning point for the AI investment theme.

marsbitHace 20 min(s)

The Turning Point of the AI Bull Market: Leverage Blow-ups, Overcapacity in Compute, Why This Macro Analyst is Fully Bearish

marsbitHace 20 min(s)

Trading

Spot
活动图片