Live data from Hacker News

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

twitter.com

371–380 of 1001 posts

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

#371

Earlier quoted context omitted.

The problem is the oauth and their stance on bypassing that. You'd want to use your subscription, and they probably can detect that and ban users. They hold all the power there.

Could you use claude via aws bedrock?

Sure, but that'd be charged at API pricing. I'm talking about subscription mode above.

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

#372
post #332

Earlier quoted context omitted.

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.

WTF per minute strongly correlates to an increased token spending. It may be decided at Anthropic at some moment to increase wtf/min metric, not decrease.

It also increases the number of former customers.

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

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

An LLM company using regexes for sentiment analysis? That's like a truck company using horses to transport parts. Weird choice.

Because they are engineers? The difference between an engineer and a hobbyist is an engineer has to optimize the cost.

As they say: any idiot can build a bridge that stands, only an engineer can build a bridge that barely stands.

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

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

An LLM company using regexes for sentiment analysis? That's like a truck company using horses to transport parts. Weird choice.

[dead]

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

#377

I don't understand why claude code (and all CLI apps) isn't written in Rust. I started building CLI agents in Go and then moved to Typescript and finally settled on Rust and it was amazing! I even made it into an open source runtime - https://agent-air.ai . Maybe I'm just a backend engineer so Rust appeals to me. What am I missing?

[dead]

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

#378

I don't understand why claude code (and all CLI apps) isn't written in Rust. I started building CLI agents in Go and then moved to Typescript and finally settled on Rust and it was amazing! I even made it into an open source runtime - https://agent-air.ai . Maybe I'm just a backend engineer so Rust appeals to me. What am I missing?

Think about your question, depending on the tool, Rust might not be needed, is high level memory performance and safety needed in a coding agent ? Probably not.

It's high speed iteration of release ? Might be needed, Interpreted or JIT compiled ? might be needed.

Without knowing all the requirements its just your workspace preference making your decision and not objectively the right tool for the job.

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

#379

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…

Well, literally no one has ever accused anthropic of having even half way competent engineers. They are akin to monkeys whacking stuff with a stick.

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

#380
post #185

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.

Because they actually want it to work 100% of the time and cost nothing.

Maybe hard to believe but not everyone is speaking English to Claude
Post reply on HN