Claude Code's source code has been leaked via a map file in their NPM registry
91–100 of 1001 posts
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#92Neat. Coincidently recently I asked Claude about Claude CLI, if it is possible to patch some annoying things (like not being able to expand Ctrl + O more than once, so never be able to see some lines and in general have more control over the context) and it happily proclaimed it is open source and it can do it ... and started doing something. Then I checked a bit and saw, nope, not open source. And by the wording of…
I think that you do not need to feel uneasy at all. It is your computer and your memory space that the data is stored and operating in you can do whatever you like to the bits in that space. I would encourage you to continue that experiment.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#93Was 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
#94Neat. Coincidently recently I asked Claude about Claude CLI, if it is possible to patch some annoying things (like not being able to expand Ctrl + O more than once, so never be able to see some lines and in general have more control over the context) and it happily proclaimed it is open source and it can do it ... and started doing something. Then I checked a bit and saw, nope, not open source. And by the wording of…
I think that you do not need to feel uneasy at all. It is your computer and your memory space that the data is stored and operating in you can do whatever you like to the bits in that space. I would encourage you to continue that experiment.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#95Earlier quoted context omitted.
https://github.com/instructkr/claude-code this one has more stars and more popular
won't they just try to dmca or take these down especially if they're more popular
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#96They 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...
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#97Earlier quoted context omitted.
Honestly when using it, it feels vibe coded to the bone, together with the matching weird UI footgun quirks
Team has been extremely open how it has been vibe coded from day 1. Given the insane amount of releases, I don’t think it would be possible without it.
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#98Earlier quoted context omitted.
1. Randomly peeking at process.argv and process.env all around. Other weird layering violations, too. 2. Tons of repeat code, eg. multiple ad-hoc implementations of hash functions / PRNGs. 3. Almost no high-level comments about structure - I assume all that lives in some CLAUDE.md instead.
What is wrong with peeking at process.env? It is a global map, after all. I assume, of course, that they don't mutate it.
Such state should be strongly typed, have a canonical source of truth (which can then be also reused to document environment variables that the code supports, and eg. allow reading the same options from configs, flags, etc) and then explicitly passed to the functions that need it, eg. as function arguments or members of an associated instance.
This makes it easier to reason about the code (the caller will know that some module changes its functionality based on some state variable). It also makes it easier to test (both from the mechanical point of view of having to set environment variables which is gnarly, and from the point of view of once again knowing that the code changes its behaviour based on some state/option and both cases should probably be tested).
Re: Claude Code's source code has been leaked via a map file in their NPM registry
#99Re: Claude Code's source code has been leaked via a map file in their NPM registry
#100It's a wake up call.