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.
Claude Code's source code has been leaked via a map file in their NPM registry
131–140 of 1001 posts
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#132Earlier quoted context omitted.
They're searching for multiple substrings in a single pass, regexes are the optimal solution for that.
It's fast, but it'll miss a ton of cases. This feels like it would be better served by a prompt instruction, or an additional tiny neural network. And some of the entries are too short and will create false positives. It'll match the word "offset" ("ffs"), for example. EDIT: no it won't, I missed the \b. Still sounds weird to me.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#133Was searching for the rumored Mythos/Capybara release, and what even is this file? https://github.com/chatgptprojects/claude-code/blob/642c7f94...
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#134Undercover mode also pretends to be human, which I'm less ok with: https://github.com/chatgptprojects/claude-code/blob/642c7f94...
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#135Earlier quoted context omitted.
It's fast, but it'll miss a ton of cases. This feels like it would be better served by a prompt instruction, or an additional tiny neural network. And some of the entries are too short and will create false positives. It'll match the word "offset" ("ffs"), for example. EDIT: no it won't, I missed the \b. Still sounds weird to me.
The pattern only matches if both ends are word boundaries. So "diffs" won't match, but "Oh, ffs!" will. It's also why they had to use the pattern "shit(ty|tiest)" instead of just "shit".
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#136Earlier quoted context omitted.
won't they just try to dmca or take these down especially if they're more popular
They can't. AI generated code cannot be copyrighted. They've stated that claude code is built with claude code. You can take this and start your own claude code project now if you like. There's zero copyright protection on this.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#137> current: 2.1.88 · latest: 2.1.87
Which makes me think they pulled it - although it still shows up as 2.1.88 on npmjs for now (cached?).
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#138Earlier quoted context omitted.
An LLM company using regexes for sentiment analysis? That's like a truck company using horses to transport parts. Weird choice.
what you are suggesting would be like a truck company using trucks to move things within the truck
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#139Why is Claude Code, a desktop tool, written in JS? Is the future of all software JS or Typescript?
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#140Would 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/