Anthropic accidentally leaks Claude Code
嗯,用户让我用中文总结一篇文章,控制在一百个字以内,而且不需要特定的开头。首先,我需要仔细阅读文章内容,抓住主要信息。 文章讲的是Anthropic不小心泄露了Claude Code的源代码,通过npm公开了一个包含50万行代码的调试文件。这导致代码迅速传播。他们解释说这是打包错误,不是安全漏洞,并且已经采取措施防止再次发生。 然后,文章详细介绍了Claude Code的记忆系统设计,包括分层索引、按需获取数据、背景处理合并数据等。泄露还揭示了KAIROS功能,允许AI在后台自主运行,并进行记忆整合。 此外,泄露还暴露了Anthropic的内部AI路线图和一些未发布的产品,这对安全构成威胁。 现在我需要把这些要点浓缩到100字以内。要包括泄露事件、原因、影响以及技术细节。可能的结构是:事件、原因、后果、技术亮点。 确保语言简洁明了,不使用复杂的术语。检查字数是否符合要求。 </think> Anthropic意外通过npm公开Claude Code源代码,引发快速传播。该工具采用分层记忆系统和自洽机制,确保可靠性和效率。泄露揭示其内部架构及AI roadmap,可能威胁安全。 2026-3-31 22:23:49 Author: securityaffairs.com(查看原文) 阅读量:4 收藏

Anthropic accidentally leaks Claude Code

Anthropic accidentally exposed Claude Code source via npm, causing the code to quickly spread online after discovery.

Anthropic accidentally leaked the source code of its Claude Code tool after a large debug file was included in a public npm release. The file exposed over 500,000 lines of code, which were quickly discovered, shared, and analyzed by developers after being flagged online.

“Earlier today, a Claude Code release included some internal source code. No sensitive customer data or credentials were involved or exposed. This was a release packaging issue caused by human error, not a security breach. We’re rolling out measures to prevent this from happening again.” an Anthropic spokesperson’s told VentureBeat.

Claude Code’s memory system is carefully engineered for reliability and efficiency. Instead of storing everything, it uses a structured, self-correcting approach: a small index tracks pointers, while actual knowledge is fetched only when needed. Memory updates follow strict rules to avoid polluting context, and a background process continuously merges, deduplicates, and prunes data. Memory is treated as a guide, not absolute truth, and verification against real data is required. Irrelevant or derivable details are never stored, keeping the system lean and accurate.

Based on everything explored in the source code, here's the full technical recipe behind Claude Code's memory architecture:

[shared by claude code]

Claude Code’s memory system is actually insanely well-designed. It isn't like “store everything” but constrained, structured and… pic.twitter.com/PlGRvuvkts

— himanshu (@himanshustwts) March 31, 2026

The leaked Claude Code shows how Anthropic keeps its AI focused during long interactions, avoiding confusion or errors. It uses a layered memory system where a small index tracks locations instead of storing full data, and the actual information is retrieved only when needed. Failed updates don’t affect the AI’s memory, keeping it accurate. Essentially, the model treats its memory as a guide, checking details against the real data before taking action, offering a clear example for others to create more dependable AI agents.

“The leak also pulls back the curtain on KAIROS,” the Ancient Greek concept of “at the right time,” a feature flag mentioned over 150 times in the source. KAIROS represents a fundamental shift in user experience: an autonomous daemon mode.” states VentureBeat. “While current AI tools are largely reactive, KAIROS allows Claude Code to operate as an always-on background agent. It handles background sessions and employs a process called autoDream. In this mode, the agent performs “memory consolidation” while the user is idle. The autoDream logic merges disparate observations, removes logical contradictions, and converts vague insights into absolute facts.”

The leak reveals Anthropic’s internal AI roadmap, including Capybara (Claude 4.6), Fennec (Opus 4.6), and the unreleased Numbat. Capybara v8 faces a 29–30% false claims rate versus 16.7% in v4. Features like “Undercover Mode” let Claude Code contribute to public repositories without revealing internal info.

The Claude Code leak not only compromises Anthropic’s IP but also exposes Anthropic’s internal architecture, giving attackers a roadmap to bypass security prompts.

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

Pierluigi Paganini

(SecurityAffairs – hacking, Claude Code)




文章来源: https://securityaffairs.com/190229/data-breach/anthropic-accidentally-leaks-claude-code.html
如有侵权请联系:admin#unsafe.sh