The source code of Claude Code, a commercial product, was accidentally leaked due to a bug in the Bun toolchain. The leaked code reveals various features, including anti-distillation mechanisms, undercover mode, and native client attestation. The leak exposes product roadmap details, such as the unreleased autonomous agent mode KAIROS. The incident raises concerns about the potential impact on the company's competitive advantage.