Back to articles
Anthropic accidentally published Claude Code's source code. Here's the part nobody's talking about.

Anthropic accidentally published Claude Code's source code. Here's the part nobody's talking about.

via Dev.toTrevor

Originally published on linear.gg Earlier today, security researcher Chaofan Shou noticed that version 2.1.88 of the @anthropic-ai/claude-code npm package shipped with a source map file. Source maps are JSON files that bridge bundled production code back to the original source. They contain the literal, raw TypeScript. Every file, every comment, every internal constant. Anthropic's entire 512,000-line Claude Code codebase was sitting in the npm registry for anyone to read. The leak itself is a build configuration oversight. Bun generates source maps by default unless you turn them off. Someone didn't turn them off. It happens. What's worth writing about isn't the leak. It's what the source reveals about how Claude Code's safety controls actually work, who controls them, and what that means for developers who depend on them. The permission architecture Claude Code's permission system is genuinely sophisticated. The source shows a multi-layered evaluation pipeline: a built-in safe-tool a

Continue reading on Dev.to

Opens in a new tab

Read Full Article
8 views

Related Articles