Inside the Claude Code Source Leak: Fake Tools, Frustration Regex, and an Unreleased Agent Mode
· 9 min readAnthropic accidentally shipped a .map file with its Claude Code npm package, exposing the full readable source. The standout finding: an anti-distillation system that injects fake tool definitions to poison training data scrapers. The code also reveals frustration detection via regex, an "undercover mode" where the AI conceals its nature, and KAIROS, an unreleased autonomous agent mode. This is Anthropic's second accidental exposure in a week.