Live data from Hacker News

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

twitter.com

151–160 of 1001 posts

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

#151

Earlier quoted context omitted.

They're searching for multiple substrings in a single pass, regexes are the optimal solution for that.

The issue isn't that regex are a solution to find a substring. The issue is that you shouldn't be looking for substrings in the first place. This has buttbuttin energy. Welcome to the 80s I guess.

[deleted]

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

#152
post #57

Can we stop referring to source maps as leaks? It was packaged in a way that wasn’t even obfuscated. Same as websites - it’s not a “leak” that you can read or inspect the source code.

If it was included unintentionally, then it's a leak.

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

#153
Maybe the OP could clarify, I don't like reading leaked code, but I'm curious: my understanding is that is it the source code for "claude code", the coding assistant that remotely calls the LLMs.

Is that correct ? The weights of the LLMs are _not_ in this repo, right ?

It sure sucks for anthropic to get pawned like this, but it should not affect their bottom line much ?

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

#154

Earlier quoted context omitted.

They're searching for multiple substrings in a single pass, regexes are the optimal solution for that.

The issue isn't that regex are a solution to find a substring. The issue is that you shouldn't be looking for substrings in the first place. This has buttbuttin energy. Welcome to the 80s I guess.

Very likely vibe coded.

I've seen Claude Code went with a regex approach for a similar sentiment-related task.

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

#155
post #140
post #19

Would be interesting to run this through Malus [1] or literally just Claude Code and get open source Claude Code out of it. I jest, but in a world where these models have been trained on gigatons of open source I don't even see the moral problem. IANAL, don't actually do this. https://malus.sh/

Oh god, I was so close to believing Malus was a real product and not satire.

It is a real product. They take real payments and deliver on whats promised. Not sure if its an attempt to subvert criticism by using satirical language, or if they truly have so little respect for the open source community.

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

#156
Really surprising how many people are downplaying this leak! "Google and OpenAi have already open sourced their Agents, so this leak isn't that relevant " What Google and OpenAi have open sourced is their Agents SDK, a toolkit, not the secret sauce of how their flagship agents are wired under the hood! expect the takedown hammer on the tweet, the R2 link, and any public repos soon

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

#157
post #24

Is there anything special here vs. OpenCode or Codex? There were/are a lot of discussions on how the harness can affect the output.

Not really, except that they have a bunch of weird things in the source code and people like to make fun of it. OpenCode/Codex generally doesn't have this since these are open-source projects from the get go.

(I work on OpenCode)

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

#158
They do have a couple of interesting features that has not been publicly heard of yet:

Like KAIROS which seems to be like an inbuilt ai assistant and Ultraplan which seems to enable remote planning workflows, where a separate environment explores a problem, generates a plan, and then pauses for user approval before execution.

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

#159

Finally all spinner verbs revealed: https://github.com/instructkr/claude-code/blob/main/src/cons...

Random aside: I've seen a 2015 game be accused of AI slop on Steam because it used a similar concept... And mind you, there's probably thousands of games that do this. First it was punctuation and grammar, then linguistic coherence, and now it's tiny bits of whimsy that are falling victim to AI accusations. Good fucking grief

To me, this is a sign of just how much regular people do not want AI. This is worse than crypto and metaverse before it. Crypto, people could ignore and the dumb ape pictures helped you figure out who to avoid. Metaverse, some folks even still enjoyed VR and AR without the digital real estate bullshit. And neither got shoved down your throat in everyday, mundane things like writing a paper in Word or trying to deal with your auto mechanic.

But AI is causing such visceral reactions that it's bleeding into other areas. People are so averse to AI they don't mind a few false positives.

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

#160

Why is Claude Code, a desktop tool, written in JS? Is the future of all software JS or Typescript?

LLMs are good in JS and Python which means everything from now on will be written in or ported to either of those two languages. So yeah, JS is the future of all software.
Post reply on HN