Live data from Hacker News

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

twitter.com

261–270 of 1001 posts

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

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

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

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

#263
post #60

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

Original author of Claude Code is expert on TypeScript [1] [1] https://www.amazon.com/Programming-TypeScript-Making-JavaScr...

is that the reason why Anthropic acquired Bun, a javascript tooling company?

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

#265
post #85

Once the USA wakes up, this will be insane news

What's special about Claude Code? Isn't Opus the real magic? Surely there's nothing here of value compared to the weights except for UX and orchestration? Couldn't this have just been decompiled anyhow?

I think pi has stolen the top honors, but people consider the Claude code harness very good (at least, better than Cursor)

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

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

Hmm.. I flag things as 'broken' often and I've been asked to rate my sessions almost daily. Now I see why.

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

#267

[flagged]

Cost tracking is used if you connect claude code with an api key instead of a subscription. It powers the /cost command.

It is tricky to meaningfully expose a dollar cost equivlent value for subscribers in a way that won't confuse users into thinking that they will get a bill that includes that amount. This is especially true if you have overages enabled, since in a session that used overages it was likely partially covered by the plan (and thus zero-rated) with the rest at api prices, and the client can't really know the breakdown.

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

#268
post #146

For a combo with another HN homepage story, Claude Code uses… Axios: https://x.com/icanvardar/status/2038917942314778889?s=20 https://news.ycombinator.com/item?id=47582220

I've checked, current Claude Code 2.1.87 uses Axios version is 1.14.0, just one before the compromised 1.14.1

To stop Claude Code from auto-updating, add `export DISABLE_AUTOUPDATER=1` to your global environment variables (~/.bashrc, ~/.zshrc, or such), restart all sessions and check that it works with `claude doctor`, it should show `Auto-updates: disabled (DISABLE_AUTOUPDATER set)`

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

#269

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

I saw this on restic's main repository the other day.

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

#270

haha.. Anthropic need to hire fixer from vibecodefixers.com to fix all that messy code..lol

I don’t think they can hear you over the billions of dollars they are generating, and definitely not over them redefining what SWE means.
Post reply on HN