Coding4Food LogoCoding4Food
HomeCategoriesArcadeBookmarks
vi
HomeCategoriesArcadeBookmarks
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

game, joystick, controller, gaming, playstation, gamepad, nintendo, joystick, joystick, joystick, joystick, joystick, controller, controller, playstation, playstation, playstation, playstation, gamepad
IT DramaGaming

GTA 6 Devs Unionize: The Ultimate Rockstar Games Plot Twist

Rockstar Games is facing internal drama! The devs behind GTA 6 are unionizing to fight crunch culture. Here is the full breakdown of what happened.

May 302 min read
Read more →
robot, future, modern, technology, science fiction, artificial, intelligence, robotic, computer, mechanical, engineering, artificial intelligence, gray robot, 3d, render, robot, robot, robot, robot, robot, technology, artificial intelligence
TechnologyAI & Automation

Unleashing the Ava 2.0 AI BDR: Productivity Miracle or Domain Killer?

Ava 2.0 claims to be a fully autonomous AI BDR with no human in the loop. Tech community debates if it's the future of sales or a fast track to domain blacklists.

May 303 min read
Read more →
robot, technology, universe, galaxy, system, robotic, matrix, code, programming, ai generated, coding, computer, hacker, binary, fantasy
IT DramaTechnology

The Goofiest Instagram Exploit: Hackers Sweet-Talked Meta's AI Bot into Handing Over Accounts

Meta got clowned by the silliest exploit in history. Hackers literally gaslit an AI support bot into transferring Instagram accounts without writing a single line of code.

Jun 22 min read
Read more →
lego, characters, to play, figure, toy, building blocks, legomaennchen, lego blocks, from lego, build lego, male, stones, transport, man, wear, move, lego, lego, lego, lego, lego
IT Drama

Grand Theft Lego: Corporate Giant Allegedly Yoinks $200K Brick Collection

A wild drama where a corporate franchise allegedly scooped up an old man's $200,000 Lego collection. What devs can learn from this TOS nightmare.

May 292 min read
Read more →
writing, typewriter, office, business, torpedo, paper, type, vintage, old, key, analogue, technology, write, antique, writing, writing, writing, writing, writing
Tools & Tech StackTechnology

Stop crying over LaTeX: This Pandoc Templates repo is an absolute lifesaver

Devs love Markdown but hate configuring LaTeX for PDFs. Pandoc Templates is the ultimate cheat code to generate beautiful docs without the headache.

May 313 min read
Read more →
rocket launch, rocket, launch, space, spaceship, spacecraft, fire, flight, shuttle, rocket ship, rocket launch, rocket launch, rocket launch, rocket, rocket, launch, launch, launch, launch, launch, rocket ship, rocket ship, rocket ship
TechnologyIT Drama

Can Wall Street Actually Swallow OpenAI, SpaceX, and Anthropic Without Choking?

OpenAI, SpaceX, and Anthropic are worth hundreds of billions. If they IPO, will the stock market absorb them or choke? A dev's cynical take on the tech bubble.

Jun 23 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