Anthropic's Claude Code command line interface source code has been leaked online due to an exposed source map file mistakenly included in a public npm package release. The version 2.1.88 update, published earlier today, contained a source map that allowed reverse-engineering of nearly 2,000 TypeScript files and over 512,000 lines of code—exposing the internal architecture of the tool. Security researcher Chaofan Shou first flagged the issue on X, sharing a link to an archived copy of the code, which was then uploaded to a public GitHub repository and forked tens of thousands of times. Anthropic confirmed the incident in a statement, clarifying that no customer data or credentials were exposed and attributing the error to a packaging mistake caused by human error, not a security breach. The company said it is implementing new safeguards to prevent future occurrences. Developers have already begun dissecting the codebase, with one analyst, @himanshustwts, detailing how Claude Code manages memory, including background rewriting and validation protocols for stored memories.

💡 NaijaBuzz Take

When Anthropic says this was a "release packaging issue," that means a single developer's oversight bypassed multiple internal checks—exposing core infrastructure to public scrutiny. For a company positioning itself as a leader in responsible AI, the leak undermines confidence in its engineering discipline. Nigerian startups building AI tools, like those using open-source frameworks to replicate advanced agent behaviors, now have a rare look at how a top-tier product is structured—but also a cautionary example of how fragile code security can be at any scale. This isn't just a stumble; it's a blueprint giveaway in an intensely competitive AI race.