Live data from Hacker News

Claude Code's source code has been leaked via a map file in their NPM registry

twitter.com

731–740 of 1001 posts

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#731

I think this is ultimately caused by a Bun bug which I reported, which means source maps are exposed in production: https://github.com/oven-sh/bun/issues/28001 Claude code uses (and Anthropic owns) Bun, so my guess is they're doing a production build, expecting it not to output source maps, but it is.

I doubt it's this. This was an `npm` misconfiguration.

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#732

haha.. Anthropic need to hire fixer from vibecodefixers.com to fix all that messy code..lol

I don’t think they can hear you over the billions of dollars they are generating, and definitely not over them redefining what SWE means.

> redefining what SWE means

Redefining the "SW" to stand for "slopware"?

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#733
post #120

Undercover mode also pretends to be human, which I'm less ok with: https://github.com/chatgptprojects/claude-code/blob/642c7f94...

That whole “feature” is vile.

How so? Good bit of my global claude.md is dedicated to fighting the incessant attribution in git commits. It is on the same level as the "sent from my iphone" signature - I'm not okay with my commits being advertising board for anthropic.

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#734
post #251

Earlier quoted context omitted.

What's going on with the issues in that repo? https://github.com/instructkr/claude-code/issues

It seems human. It taught me 合影, which seems to be Chinese slang for just wanting to be in the comments. Probably not a coincidence that it's after work time in China. Really interesting to see Github turn into 4chan for a minute, like GH anons rolling for trips.

In this situation, it means "Hey I have been here and observed this!"

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#735
There's a bunch of unreleased features and update schedules in the source, cool to see.

One neat one is the /buddy feature, an easter egg planned for release tomorrow for April fools. It's a little virtual pet, sort of like Tamagotchi, randomly generated with 18 species, rarities, stats, hats, custom eyes.

The random generation algorithm is all in the code though, deterministic based on you account's UUID in your claude config, so it can be predicted. I threw together a little website here to let you check what your going to get ahead of time: https://claudebuddychecker.netlify.app/

Got a legendary ghost myself.

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#736
post #645

I think this is ultimately caused by a Bun bug which I reported, which means source maps are exposed in production: https://github.com/oven-sh/bun/issues/28001 Claude code uses (and Anthropic owns) Bun, so my guess is they're doing a production build, expecting it not to output source maps, but it is.

It could be because of a Bun bug, but I don't think it's because of that one. It's a duplicate of a year-old issue, and it's specific to Bun.serve.

Yeah this bun development server bug has nothing to do with the Claude Code leak.

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#737
post #134

Undercover mode also pretends to be human, which I'm less ok with: https://github.com/chatgptprojects/claude-code/blob/642c7f94...

You'll never win this battle, so why waste feelings and energy on it? That's where the internet is headed. There's no magical human verification technology coming to save us.

Nothing like throwing in the towel before a battle is ever fought. Let's just sigh and wearily march on to our world of AI slop and ever higher bug counts and latency delays while we wait for the five different phone homes and compilations through a billion different LLM's for every silly command.

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#738

I think this is ultimately caused by a Bun bug which I reported, which means source maps are exposed in production: https://github.com/oven-sh/bun/issues/28001 Claude code uses (and Anthropic owns) Bun, so my guess is they're doing a production build, expecting it not to output source maps, but it is.

I don’t think that’s the reason, but using Bun for production this early is a bad idea. It’s still too buggy, and compromising stability for a 2–3% performance gain just isn’t worth it.

> for a 2–3% performance gain

this is highly workload-dependent. there are plenty of APIs that are multiple-factor faster and 10x more memory efficient due to native implementation.

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#739

Earlier quoted context omitted.

I wish. Claude Code is clearly a pile of vibe-coded garbage. The UI is janky and jumps all over the place, especially during longer sessions. (Which also have a several second delay to render. In a terminal). Lately, it's been crashing if I hold the Backspace key down for too long. Being open-source would be the best thing to happen to them. At least they would finally get a pair of human eyes looking at their codeba…

> Claude Code is clearly a pile of vibe-coded garbage. The UI is janky and jumps all over the place, especially during longer sessions. (Which also have a several second delay to render. In a terminal). Don't you know, they're proud of their text interface that is structured more like a video game. https://spader.zone/engine/

This is a pretty interesting article in of itself

Re: Claude Code's source code has been leaked via a map file in their NPM registry

#740

Anthropic team does an excellent job of speeding up Claude Code when it slows down, but for the sake of RAM and system resources, it would be nice to see it rewritten in a more performant framework! And now, with Claude on a Ralph loop, you can.

But its already optimized so well that its comparable to a "small game engine"?

https://nitter.net/trq212/status/2014051501786931427#m

Post reply on HN