The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

Table of ContentsAnti-distillation: injecting fake tools to poison copycatsUndercover mode: AI that hides its AIFrustration detection via regex (yes, regex)Native client attestation below the JS runtime250,000 wasted API calls per dayKAIROS: the unreleased autonomous agent modeOther stuffSo what?Update: see HN discussions about this post: https://news.ycombinator.com/item?id=47586778I use Claude Code daily, so when Chaofan Shou noticed earlier today that Anthropic had shipped a .map file alongside their Claude Code npm package, one containing the full, readable source code of the CLI tool, I immediately wanted to look inside. The package has since been pulled, but not before the code was widely mirrored, including myself and picked apart on Hacker News.This is Anthropic’s second…

Read more on Hacker News