Live data from Hacker News

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

twitter.com

561–570 of 1001 posts

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

#561
post #500
post #290

Earlier quoted context omitted.

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

It's not really paranoia if it's happening a lot. They wrote a blog post calling several major Chinese AI companies out for distillation.[0] Perhaps it is ironic, but it's within their rights to protect their business, like how they prohibit using Claude Code to make your own Claude Code.[1] [0]: https://www.anthropic.com/news/detecting-and-preventing-dist... [1]: https://news.ycombinator.com/item?id=46578701

Their business shouldn't exist. It was predisposed on non-permissive IP theft. They may have found a judge willing to cop to it not being so, but the rest of the public knows the real score. And most problematically for them, that means the subset of hackerdom that lives by tit-for-tat. One should beware of pissing off gray-hats. Iit's a surefire way to find yourself heading for bad times.

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

#562

src/cli/print.ts This is the single worst function in the codebase by every metric: - 3,167 lines long (the file itself is 5,594 lines) - 12 levels of nesting at its deepest - ~486 branch points of cyclomatic complexity - 12 parameters + an options object with 16 sub-properties - Defines 21 inner functions and closures - Handles: agent run loop, SIGINT, rate-limits, AWS auth, MCP lifecycle, plugin install/refresh, wo…

Maybe going slow is a feature for them? A kind of rate limit by bad code way to controlling overall throughput.

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

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

oh I hope they really are paying attention. Even though I'm 100% aware that claude is a clanker, sometimes it just exhibits the most bizarre behavior that it triggers my lizard brain to react to it. That experience troubles me so much that I've mostly stopped using claude code. Claude won't even semi-reliably follow its own policies, sometimes even immediately after you confirm it knows about them.

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

#564

Earlier quoted context omitted.

No it isn't. It's a competition, making moves that benefit you and attempting to deprive your opponent of the same move is just called competing

Wait, are you saying that it's not hypocritical for my chess opponent to try to protect their king while trying to kill mine? :mind-blown: Tech people are funny, with these takes that businesses do/should adhere to absolute platonic ideals and follow them blindly regardless of context.

No, it's ethical people pointing out that if you toss aside ethics for success at all costs, you aren't going to find any sympathy when people start doing the same thing back to you. Live by the sword, die by the sword, as they say.

There is a reason we don't do things. That reason is it makes the world a worse place for everyone. If you are so incredibly out of touch with any semblance of ethics at all; mayhaps you are just a little bit part of the problem.

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

#565
post #524

Earlier quoted context omitted.

Probably a lot of my prompts have been logged then. I’ve used wtf so many times I’ve lost track. But I guess Claude hasn’t

Did you notice a change in quality after you went foul?

I find when you give harsh feedback to claude it becomes "neurotic" and worthless, if "wtf" enters the chat, then you know it's time to restart or DIY.

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

#566
post #527
post #249

Earlier quoted context omitted.

If this true. My old personal agent Claude Code setup I open sourced last month will finally be obsolete (1 month lol): https://clappie.ai - Telegram Integration => CC Dispatch - Crons => CC Tasks - Animated ASCII Dog => CC Buddy

Clappie looks much more fabulous than CC though. I'll have to give it a try. I like how you put the requests straight into an already running CC session instead of calling `claude -p` every time like the claws.

Thanks so much! It's a fancy landing page thanks to Claude.

Tmux is seriously an amazing tool.

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

#567
post #134

Undercover mode also pretends to be human, which I'm less ok with: https://github.com/chatgptprojects/claude-code/blob/642c7f94...

You'll never win this battle, so why waste feelings and energy on it? That's where the internet is headed. There's no magical human verification technology coming to save us.

Fatalism will also not fix anything. But I suppose death comes for us all, yes? Why do anything at all?

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

#568

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.

The difference in response time - especially versus a regex running locally - is really difficult to express to someone who hasn't made much use of LLM calls in their natural language projects. Someone said 10,000x slower, but that's off - in my experience - by about four orders of magnitude. And that's average, it gets much worse. Now personally I would have maybe made a call through a "traditional" ML widget (sciki…

> Someone said 10,000x slower, but that's off - in my experience - by about four orders of magnitude.

You do know that 10,000x _is_ four orders of magnitude, right? :-D

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

#569
post #537

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.

Oh it’s worse than that. This one ended up getting my account banned: https://github.com/anthropics/claude-code/issues/22284

This is a tricky problem, I mean, Pinyin also uses the English alphabet.

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

#570

Undercover mode also pretends to be human, which I'm less ok with: https://github.com/chatgptprojects/claude-code/blob/642c7f94...

> Write commit messages as a human developer would — describe only what the code change does. The undercover mode prompt was generated using AI.

That's not supposed to be surprising. They're dogfooding CC to develop CC. I assume any and every line in this repo is AI generated.
Post reply on HN