Anthropic's Claude Code Source Leak Exposes 512,000 Lines, Proactive Kairos AI
Image: The Times of India

Anthropic's Claude Code Source Leak Exposes 512,000 Lines, Proactive Kairos AI

27 March, 2026.Technology and Science.26 sources

Key Takeaways

  • About 512,000 lines of Claude Code exposed via an npm packaging error.
  • Unreleased features and roadmap surfaced, including Mythos and autonomous agent capabilities.
  • Leak occurred due to public npm package release, not deliberate breach.

Massive Source Code Exposure

The leak spread quickly on GitHub, becoming the fastest-ever downloaded repository.

Image from Ars Technica
Ars TechnicaArs Technica

Anthropic confirmed no sensitive customer data was exposed and framed it as human error.

The code contained numerous unreleased feature flags and internal details.

Proactive Kairos Persistent Agent

The leak revealed Kairos, an always-on persistent AI agent that operates autonomously in the background.

Kairos would use periodic tick prompts and a PROACTIVE flag to surface needed information.

Image from Bitcoin News
Bitcoin NewsBitcoin News

It includes a file-based memory system for persistent operation across sessions.

An AutoDream subsystem performs reflective passes to consolidate and prune memory.

Privacy and Proactive Monitoring

The userPromptKeywords.ts file included patterns matching f-bombs and colorful metaphors.

This raises broader privacy questions about surveillance across AI platforms.

The combination of proactive AI and monitoring highlights tension between autonomy and privacy.

OpenClaw Reimplementations Spread

Developers quickly began reimplementing Claude Code based on the exposed source code.

Sigrid Jin created Claw Code, a Python edition that reached thousands.

Image from CNBC
CNBCCNBC

Anthropic and GitHub have not issued takedowns against these reimplementations.

The leak has accelerated open-source AI development but put Anthropic at risk.

More on Technology and Science