Live data from Hacker News

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

twitter.com

251–260 of 1001 posts

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

#251

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

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.

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

#252
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...

everyone here is commenting how odd it looks to use a regexp for sentiment analysis, but it depends what they're trying to do.

It could be used as a feedback when they do A/B test and they can compare which version of the model is getting more insult than the other. It doesn't matter if the list is exhaustive or even sane, what matters is how you compare it to the other.

Perfect? no. Good and cheap indicator? maybe.

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

#253
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...

Interesting that expletives and words that are more benign like "frustrating" are all classified the same.

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

#255
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...

I don't know about avoided, this kind of represents the WTF per minute code quality measurement. When I write WTF as a response to Claude, I would actually love if an Antrhopic engineer would take a look at what mess Claude has created.

/feedback works for that i believe

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

#256

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

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

trying to get github to nuke the repo? at a guess.

certainly nothing friendly.

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

#257
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/

Eh, the value is the unlimited Max plan which they have rightfully banned from third-party use.

People simply want Opus without fear of billing nightmare.

That’s like 99% of it.

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

#260
post #9

The code looks, at a glance, as bad as you expect.

It really doesn’t matter anymore. I’m saying this as a person who used to care about it. It does what it’s generally supposed to do, it has users. Two things that matter at this day and age.

Do compilers care about their assembly generated code to look good? We will soon reach that state with all the production code. LLMs will be the compiler and actual today's human code will be replaced by LLM generated assembly code, kinda sorta human readable.
Post reply on HN