Live data from Hacker News

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

twitter.com

31–40 of 1001 posts

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

#31
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…

(spoiler alert)

Buddy system is this year's April Fool's joke, you roll your own gacha pet that you get to keep. There are legendary pulls.

They expect it to go viral on Twitter so they are staggering the reveals.

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

#34
post #25

Isn't it open source? Or is there an open source front-end and a closed backend?

The Github repo is only for issue tracker

Wow it's true. Anthropic actually had me fooled. I saw the GitHub repository and just assumed it was open source. Didn't look at the actual files too closely. There's pretty much nothing there.

So glad I took the time to firejail this thing before running it.

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

#38
Neat. 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 the TOS, it might brake some sources. But claude said, "no worries", it only break the TOS technically. So by saving that conversation I would have some defense if I would start messing with it, but felt a bit uneasy and stopped the experiment. Also claude came into a loop, but if I would point it at this, it might work I suppose.

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

#40
post #21

Earlier quoted context omitted.

Can you give an example? Looks fairly decent to me

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.

It probably exists only in CLAUDE or AGENTS.md since no humans are working on the code!
Post reply on HN