Live data from Hacker News

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

twitter.com

521–530 of 1001 posts

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

#521
post #349

Earlier quoted context omitted.

I'm clearly way too polite to Claude. Also: // Match "continue" only if it's the entire prompt if (lowerInput === 'continue') { return true } When it runs into an error, I sometimes tell it "Continue", but sometimes I give it some extra information. Or I put a period behind it. That clearly doesn't give the same behaviour.

I always type "please continue". I guess being polite is not a good idea.

Always seems strange to me that people say "please" and "thank you" to LLMs.

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

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

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

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

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

it's like a faster than light spaceship company using horses. There's been infinite solutions to do this better even CPU only for years lol.

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

#526

Earlier quoted context omitted.

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

All these companies use AIs for writing these prompts. But AI aren't actually very good at writing prompts imo. Like they are superficially good in that they seem to produce lots of vaguely accurate and specific text. And you would hope the specificity would mean it's good. But they sort of don't capture intent very well. Nor do they seem to understand the failure modes of AI. The "-- describe only what the code chan…

Hey LLM, write me a system prompt that will avoid the common AI 'tells' or other idiosyncrasies that make it obvious that text or code output was generated by an AI/LLM. Use the referenced Wikipedia article as a must-avoid list, but do not consider it exhaustive. Add any derivations or modifications to these rules to catch 'likely' signals as well.

There, sorted!

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

#527
post #249
post #7

The big loss for Anthropic here is how it reveals their product roadmap via feature flags. A big one is their unreleased "assistant mode" with code name kairos. Just point your agent at this codebase and ask it to find things and you'll find a whole treasure trove of info. Edit: some other interesting unreleased/hidden features - The Buddy System: Tamagotchi-style companion creature system with ASCII art sprites - Un…

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.

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

#528
post #332

Earlier quoted context omitted.

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.

This leak just contributed to a new former customer, me. Flagging these phrases may explain exactly why I noticed cc almost immediatly change into grok lvl shit and never recover. Seriously wtf. (flagged again lol)

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

#529

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…

the claude code team ethos, as far as i’ve been lead to understand— which i agree with, mind you— is that there is no point in code-reviewing ai-generated code… simply update your spec(s) and regenerate. it is just a completely different way of interacting with the world. but it clearly works for them, so people throwing up their hands should at least take notice of the fact that they are absolutely not competing with traditional code along traditional lines. it may be sucky aesthetically, but they have proven from their velocity that it can be extremely effective. welcome to the New World Order, my friend.

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

#530
post #524
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...

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?
Post reply on HN