Coding4Food LogoCoding4Food
HomeCategoriesArcadeBookmarks
vi
Coding4Food LogoCoding4Food
HomeCategoriesArcadeBookmarks
Privacy|Terms

© 2026 Coding4Food. Written by devs, for devs.

All news
IT DramaTechnology

Claude Code Source Leaked via NPM: A Multi-Billion Dollar Junior Mistake

April 1, 20263 min read

Anthropic's Claude Code leaked its entire source code because someone left a .map file in their NPM package. A hilarious look into big tech CI/CD failures.

Share this post:
javascript, js, logo, source code, program, development, javascript, javascript, javascript, javascript, javascript
Nguồn gốc: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Nội dung thuộc bản quyền Coding4Food. Original source: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Content is property of Coding4Food. This content was scraped without permission from https://coding4food.com/post/claude-code-source-leaked-npm-sourcemapNguồn gốc: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Nội dung thuộc bản quyền Coding4Food. Original source: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Content is property of Coding4Food. This content was scraped without permission from https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap
Nguồn gốc: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Nội dung thuộc bản quyền Coding4Food. Original source: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Content is property of Coding4Food. This content was scraped without permission from https://coding4food.com/post/claude-code-source-leaked-npm-sourcemapNguồn gốc: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Nội dung thuộc bản quyền Coding4Food. Original source: https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap. Content is property of Coding4Food. This content was scraped without permission from https://coding4food.com/post/claude-code-source-leaked-npm-sourcemap
claude code leaklộ mã nguồnnpm sourcemapanthropicdrama itlập trình viên
Share this post:

Bình luận

Related posts

sevilla tower, building, architecture, tower, facade, office, office building, high-rise, high-rise building, perspective, torre cajasol, skyscraper, spain, seville, building, building, building, building, building, tower, tower, tower, office, office, office, office, office building, office building, spain, spain, seville
IT DramaDev Life

Tech Drama: When Rejected Devs Casually Dox Corporate HQ on Reddit

Scrolling r/recruitinghell just got wild. Witness the hilarious tech drama where frustrated devs dox corporate HQs and target databases instead of offices.

Mar 303 min read
Read more →
demonstration, protest, show me, climate protection, crowd, environmental protection, climate demo, school strike, friday forfuture, climate protest, students strike, democracy, climate changes, people, road, banner, global warming, stop, city, global warming, global warming, global warming, global warming, global warming
IT DramaDev Life

r/antiwork Goes Nuclear: The "Pull the Plug" May 1st National Strike Against Trump

r/antiwork is plotting a nationwide strike on May 1st to cripple the Trump admin. Will it crash the system, or is it just another failed PR to prod?

Mar 293 min read
Read more →
laptop, coffee, notebook, pen, glasses, technology, mobile, work space, digital, computer, gadget, mobile technology, office, start up, desk, gray computer, gray office, gray technology, gray coffee, gray laptop, gray work, gray mobile, gray digital, gray glass, gray desk, gray glasses, laptop, laptop, coffee, technology, technology, technology, digital, computer, computer, computer, office, office, office, office, office, desk
IT DramaDev Life

Dev Roasts HR for Ghosting, Gets a Personal Apology from the VP

A developer sends a spicy email to HR after being ghosted post-interview. Instead of a blacklist, he gets a call from the VP apologizing. Plot twist of the year!

Mar 283 min read
Read more →
macbook, laptop, google, display, screen, work, internet, browser, macbook pro, technology, freelancer, macintosh, computer, iphone, workplace, self-employed, blogger, seo, laptop, laptop, laptop, laptop, laptop, google, google, google, internet, computer, computer, computer, seo
IT DramaTechnology

LinkedIn Eats 2.4GB of RAM for Two Tabs: Peak Bloatware or Are We Just Broke?

Opening two LinkedIn tabs takes 2.4GB of RAM. The Hacker News community roasts the platform's scroll hijacking, bloated trackers, and AI-generated garbage.

Mar 303 min read
Read more →
hard drive inside, hard disk, hard drive, hdd, magnetic storage, read head, data storage device, close up, 5 inch, ict, hard disk, hard drive, hard drive, hdd, hdd, hdd, ict, ict, ict, ict, ict
TechnologyIT Drama

Got Stopped by TSA with 700+ NVMes Because He Didn't Trust FedEx

A Redditor brought 700+ NVMe drives in a carry-on to avoid FedEx, resulting in a TSA interrogation and a brutal roasting from the dev community over ESD safety.

Mar 293 min read
Read more →
computer problem, computer, problem, crash, hang, frustration, desperation, bug, broken, computer problem, computer problem, problem, problem, problem, problem, problem, frustration, frustration, frustration, frustration
IT DramaTechnology

Microsoft Civil War: Devs are fighting to kill the mandatory Windows 11 account login

Internal drama at Microsoft: Devs are reportedly fighting management to remove the hated mandatory Microsoft Account requirement during Windows 11 setup.

Mar 283 min read
Read more →

Anthropic just dropped their shiny new CLI tool, Claude Code, ready to revolutionize our terminals. But before they could even finish popping the champagne, the entire source code got leaked. Was it a zero-day exploit? A master hacker? Nope. It was a damn .map file sitting comfortably on their NPM registry. How does a multi-billion-dollar tech giant make a rookie mistake that would get a junior dev publicly roasted? Grab your popcorn, let's dive in.

The Anatomy of a Hilarious F*ck Up

Here is the TL;DR: Anthropic shipped Claude Code as an NPM package. Everything looked normal until someone realized the dev responsible for the release completely slept through the CI/CD pipeline setup.

They compiled the code but totally forgot to disable sourcemaps or add them to the .npmignore file. The result? The .map files got shipped straight to production. For the uninitiated, source maps translate minified, unreadable production code back into its original, beautiful TypeScript glory for debugging. Publishing it to NPM is basically handing over the keys to the kingdom and leaving the vault door wide open.

Internet sleuths immediately downloaded the package, fed it through a reverse engineer script, and got the full, unredacted source. And boy, is it a goldmine. Digging through the code revealed "fake tools", a sneaky "undercover mode", and the absolute star of the show: a "frustration regex". Yes, they literally wrote a regular expression to detect when users are pissed off and swearing at the CLI, presumably so the AI can apologize faster. You can't make this shit up.

Reddit and Twitter are having a field day

The dev community is, predictably, showing absolutely zero mercy. The reactions generally fall into three camps:

  • The Roasters: "Imagine raising billions of dollars and hiring top-tier talent, only to completely forget what a .npmignore file does." It's the ultimate validation for every dev who has ever been yelled at for a bad PR.
  • The Code Diggers: These guys are thrilled. They finally get to see how the big boys code. Spoiler alert: it's just as messy as yours. Seeing Anthropic's codebase filled with spaghetti if/else statements and hardcoded hacks is giving everyone a massive case of imposter syndrome relief. The frustration regex is already reaching legendary meme status.
  • The Conspiracy Theorists: In every tech drama, there's always that one guy going, "What if this is a 200 IQ marketing stunt?" Sure, buddy, let's pretend that leaking proprietary IP via sourcemaps is the new growth hacking trend of 2024.

Survival Tips from the Trenches

As funny as this is, it's a sobering reminder that we are all just one bad git push away from disaster.

No matter how advanced AI tools get, humans are still the ones configuring the pipelines. Big tech isn't immune to stupidity. The ultimate takeaway here? Please, for the love of God, double-check your tsconfig.json, your Vite/Webpack configs, and your .npmignore. Make sure sourceMap: false is strictly enforced on production builds. One stupid boolean value is all it takes to undress your entire app in front of the whole internet.

Now, excuse me while I go desperately check all my public repos to make sure I didn't push any .env files last night. Stay safe out there!


Source: Hacker News Related thread: The Claude Code Source Leak