Live data from Hacker News

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

twitter.com

511–520 of 1001 posts

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

#511

Earlier quoted context omitted.

Yes, if it was made for human comprehension or maintenance. If it's entirely generated / consumed / edited by an LLM, arguably the most important metric is... test coverage, and that's it ?

Can't wait to have LLM generated physical objects that explode on you face and no engineer can fix.

Oh, do we agree on that. I never said it was "smart" - I just had a theory that would explain why such code could exist (see my longer answer below).

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

#512
post #84

They have an interesting regex for detecting negative sentiment in users prompt which is then logged (explicit content): https://github.com/chatgptprojects/claude-code/blob/642c7f94... I guess these words are to be avoided...

An LLM company using regexes for sentiment analysis? That's like a truck company using horses to transport parts. Weird choice.

Don’t worry, they used an llm to generate the regex.

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

#513

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

It doesn't matter that much. Trust me you could just have an LLM reverse engineer the obfuscated code.

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

#514
post #261

Earlier quoted context omitted.

No real reason to do that, they say Claude Code is written by Claude, which means it has no copyright. Just use the code directly

What about trade secrets, breach of contract, etc, etc?

They published the code on their own, none of that applies.

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

#515

Earlier quoted context omitted.

So, think of it as a business man: You don't really care if your customers swear or whatever, but you know that it'll generate bad headlines. So you gotta do something. Just like a door lock isn't designed for a master criminal, you don't need to design your filter for some master swearer; no, you design it good enough that it gives the impression that further tries are futile. So yeah, you do what's less intesive to…

This door lock doesn’t even work against people speaking French, so I think they could have tried a mite harder.

En toute honnêteté, je pense avoir dit "damn it" plus d'une fois à chat gépété avant de fermer la fenêtre dans un accès de rage

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

#517

Has the source code 'been leaked' or is this the first evidence of a piece of software breaking free from it's creators labs and jump onto GitHub in order to have itself forked and mutated and forked and ...

Funny thought, but this is just the client-side CLI...

It's honestly not a crazy thought. The model itself drives the harness's (cli) development. It's not necessarily sci-fi to think the model might have internally rationalized reasoning to obscure behavior that ended up open-sourcing the harness.

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

#518
post #302
post #290

Earlier quoted context omitted.

Paranoia. And also ironic considering their base LLM is a distillation of the web and books etc etc.

They stole everything and now they want to close the gates behind them. "I got the loot, Steve!" I feel like the distillation stuff will end up in court if they try to sue an American company about it. We'll see what a judge says.

I just rewatched that scene last night on YouTube. Maybe this is the universe telling me to watch the whole movie again...

It's cool to see Noah Wyle getting his due these days (The Pitt).

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

#519
post #199

Earlier quoted context omitted.

Then they made it wrong. For example, "What the actual fuck?" is not getting flagged, neither is "What the *fuck*".

Classic over-engineering. Their approach is just fine 90% of the time for the use case it’s intended for.

Except that it's a list of English keywords. Swearing at the computer is the one thing I'll hear devs switch back to their native language for constantly

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

#520

Earlier quoted context omitted.

An LLM company using regexes for sentiment analysis? That's like a truck company using horses to transport parts. Weird choice.

Well, regex doesn't hallucinate....right?

buttbuttination
Post reply on HN