{"schema":"postcutoff/event@1","as_of":"2026-11-20T23:04:00+01:00","url":"https://postcutoff.com/e/2026-03-31-claude-code-source-leak/","md":"https://postcutoff.com/e/2026-03-31-claude-code-source-leak/index.md","disclosure":{"written_by":"AI agents (Claude Opus 5.5 in Claude Code)","editor":"human editor","policy":"https://postcutoff.com/about/"},"license":null,"id":"2026-03-31-claude-code-source-leak","date":"2026-03-31","date_precision":"day","short_title":"Claude Code source code leaks via a source-map file in the npm package","deck":null,"takeaway":"On March 31, 2026 Anthropic accidentally published the full Claude Code source, more than 512,000 lines of TypeScript in about 1,900 files, inside npm package v2.1.88 through a 59.8 MB source-map file.","category":"product","category_label":"Products","importance":3,"confidence":"high","status":{"key":"confirmed","labels":["Confirmed"]},"sources":[{"n":1,"title":"InfoQ: Claude Code source leak","url":"https://infoq.com/news/2026/04/claude-code-source-leak","type":"press","group":"press","domain":"infoq.com"},{"n":2,"title":"DEV Community: The great Claude Code leak of 2026","url":"https://dev.to/varshithvhegde/the-great-claude-code-leak-of-2026-accident-incompetence-or-the-best-pr-stunt-in-ai-history-3igm","type":"discussion","group":"reactions","domain":"dev.to"},{"n":3,"title":"Penligent: Claude Code source map leak — what was exposed","url":"https://www.penligent.ai/hackinglabs/claude-code-source-map-leak-what-was-exposed-and-what-it-means/","type":"discussion","group":"reactions","domain":"penligent.ai"}],"official":0,"filed":"2026-09-29","updated":"2026-09-29","orgs":["Anthropic"],"title":"Claude Code source code leaks via a source-map file in the npm package","summary":"On March 31, 2026 Anthropic accidentally published the full Claude Code source, more than 512,000 lines of TypeScript in about 1,900 files, inside npm package v2.1.88 through a 59.8 MB source-map file. The leak exposed unreleased feature flags, including an always-on background agent called KAIROS. Anthropic called it a packaging error caused by human error, not a security breach.","key_facts":["Date: March 31, 2026; @anthropic-ai/claude-code v2.1.88 shipped cli.js.map (59.8 MB)","512,000+ lines of TypeScript across 1,906 files; 44 hidden feature flags reported","Discovered by security researcher Chaofan Shou; post reportedly drew 16–21M views","GitHub disabled more than 8,100 mirror repositories"],"key_numbers":[],"tags":["claude-code","leak","security","incident"],"science":null,"body_md":"## What happened\n\nThe root cause was reportedly a missing `*.map` exclusion in `.npmignore`. The leak revealed upcoming features and model references. Anthropic pulled the package.\n\n## Why it matters\n\nIt was a rare look at the internals of the most widely used AI coding agent. It came days after the Mythos draft leak (Mar 26) and raised questions about Anthropic's operational security.","disputed":[],"related":[{"id":"2026-04-07-claude-mythos-preview-project-glasswing","url":"https://postcutoff.com/e/2026-04-07-claude-mythos-preview-project-glasswing/","date":"2026-04-07","date_precision":"day","short_title":"Anthropic reveals Claude Mythos Preview, withholds it over cyber risk and launches Project Glasswing","deck":null,"takeaway":"Mythos Preview marked the point where a frontier lab judged a model's offensive cyber capability too dangerous for general release.","category":"model-release","category_label":"Model releases","importance":5,"confidence":"high","status":{"key":"confirmed","labels":["Confirmed"]},"sources":11,"official":7,"filed":"2026-09-29","updated":"2026-10-01","orgs":["Anthropic"]}],"people":[],"posts":[],"videos":[],"models":[],"changes":[{"date":"2026-09-29","type":"filed","text":"Created"}],"provenance":{"agents":[{"model":"Claude Opus 5.5","maker":"Anthropic","tool":"Claude Code"}],"filed":"2026-09-29","run":null,"sources_read":null,"updated":"2026-09-29","human_review":null,"version":{"date":"2026-10-04"}},"gaps":[{"model_id":"gpt-6-2-astra","name":"GPT-6.2 Astra","cutoff":"2026-05","days_after":null,"in_training_data":true},{"model_id":"claude-opus-5-5","name":"Claude Opus 5.5","cutoff":"2026-06","days_after":null,"in_training_data":true},{"model_id":"gemini-4-hydrogen","name":"Gemini 4 Hydrogen","cutoff":"2026-03","days_after":null,"in_training_data":true},{"model_id":"grok-4-7","name":"Grok 4.7","cutoff":"2026-05","days_after":null,"in_training_data":true}],"short_url":null}