The Claude Code Source Leak: fake tools, frustration regexes, undercover mode (alex000kim.com) AI

A blog post says Anthropic accidentally exposed the full, readable source code of its Claude Code CLI via an npm source map leak that was quickly mirrored after the package was pulled. The author describes several built-in mechanisms, including server-side “anti-distillation” with fake tool injection, an “undercover mode” that can hide an AI’s internal identifiers in external repos, and regex-based detection of user frustration. The post also notes client attestation logic intended to verify official binaries, product code references to a feature-gated autonomous agent mode, and commentary that the leak comes shortly after related legal disputes over third-party API use.

March 31, 2026 18:37 Source: Hacker News