Inside Claude Code’s leaked source: swarms, daemons, and 44 features Anthropic kept behind flags

Key summary
Anthropic shipped Claude Code v2.1.88 with a 59.8 MB source map that exposed 512,000 lines of unobfuscated TypeScript across about 1,900 files.
Anthropic pulled the npm package within hours, citing a packaging issue caused by human error; GitHub mirrors had already appeared before removal.
The Register reported the original repository was forked over 41,500 times before the uploader replaced it with a Python port.
The codebase includes a Tamagotchi-style pet system and 187 "spinner verbs" identified by Wes Bos (examples: Ruminating, Philosophising, Flibbertigibbeting, Photosynthesizing).
The leaked source shows an agent operating-system architecture similar to CrewAI/Google ADK/LangGraph/AWS Strands; the tool system has 40+ separate modules with permission gates, and the base tool definition spans about 29,000 lines of TypeScript for a syscall-like layer.



