Entire Claude Code CLI source code leaks thanks to exposed map file

TL;DR AI
2 min readKey summary
An exposed map file led to the full Claude Code CLI source code being leaked.
Reported component sizes include about 40,000 lines for a plugin-like tool system and 46,000 lines for the query system.
Developers had previously partially reverse-engineered Claude Code, but not to this extent.
The leak exposes architectural details that competitors could use and gives bad actors information to find vulnerabilities.



