Discussion
JavaScript is not available.
LeoDaVibeci: Isn't it open source?Or is there an open source front-end and a closed backend?
mapcars: Are there any interesting/uniq features present in it that are not in the alternatives? My understanding is that its just a client for the powerful llm
avaer: I know HN doesn't like AI comments, but since folks might be reluctant to download + investigate this code, Anthropic's own model says the differentiators are: > the hooks lifecycle API, the multi-tier compaction system, the coordinator/swarm architecture, worktree-based isolation, and the enterprise policy layer. From my cursory read, the compaction seems to have a lot of effort put into it.
bob1029: Is this significant?Copilot on OAI reveals everything meaningful about its functionality if you use a custom model config via the API. All you need to do is inspect the logs to see the prompts they're using. So far no one seems to care about this "loophole". Presumably, because the only thing that matters is for you to consume as many tokens per unit time as possible.The source code of the slot machine is not relevant to the casino manager. He only cares that the customer is using it.
dragonwriter: > Isn't it open source?No, its not even source available,.> Or is there an open source front-end and a closed backend?No, its all proprietary. None of it is open source.
q3k: The code looks, at a glance, as bad as you expect.
swimmingbrain: From the directory listing having a cost-tracker.ts, upstreamproxy, coordinator, buddy and a full vim directory, it doesn't look like just an API client to me.
treexs: 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.
loevborg: Can you give an example? Looks fairly decent to me
Insensitivity: the "useCanUseTool.tsx" hook, is definitely something I would hate seeing in any code base I come across.It's extremely nested, it's basically an if statement soup
vbezhenar: LoL! https://news.ycombinator.com/item?id=30337690Not exactly this, but close.
avaer: 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/
NitpickLawyer: 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.
woleium: Just use one of the distilled claude clones instead https://x.com/0xsero/status/2038021723719688266?s=46
avaer: You'd be playing cat and mouse like yt-dlp, but there's probably more value to this code than just a temporary way to milk claude subscriptions.
q3k: 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.
luc_: Fits with the origin story of Claude Code...
loevborg: useCanUseTool.tsx looks special, maybe it'scodegen'ed or copy 'n pasted? `_c` as an import name, no comments, use of promises instead of async function. Or maybe it's just bad vibing...
Insensitivity: Maybe, I do suspect _some_ parts are codegen or source map artifacts.But if you take a look at the other file, for example `useTypeahead` you'd see, even if there are a few code-gen / source-map artifacts, you still see the core logic, and behavior, is just a big bowl of soup
loevborg: You're right about process.argv - wow, that looks like a maintenance and testability nightmare.
karimf: The Github repo is only for issue tracker
lukan: Neat. Coincidently recently I asked Claude about Claude CLI, if it is possible to patch some annoying thing (like not being able to expand Ctrl + O more than once, so never be able to see some lines and 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.
anhldbk: I guess it's time for Anthropic to open source Claude Code.
theanonymousone: I am waiting now for someone to make it work with a Copilot Pro subscription.
Squarex: Codex and gemini cli are open source already. And plenty of other agents. I don't think there is any moat in claude code source.
matheusmoreira: 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.
PierceJoy: Nothing a couple /simplify's can't take care of.
breppp: Honestly when using it feels vibe coded to the bone, together with the matching weird UI footgun quirks
tokioyoyo: Team has been extremely open how it has been vibe coded from day 1. Given the insane amount of releases, I don’t think it would be possible without it.
Overpower0416: export function extractSearchToken(completionToken: { token: string; isQuoted?: boolean; }): string { if (completionToken.isQuoted) { // Remove @" prefix and optional closing " return completionToken.token.slice(2).replace(/"$/, ''); } else if (completionToken.token.startsWith('@')) { return completionToken.token.substring(1); } else { return completionToken.token; } } Why even use else if with return...
DeathArrow: Why is Claude Code, a desktop tool, written in JS? Is the future of all software JS or Typescript?
tokioyoyo: It really doesn’t matter anymore. I’m saying this as a person who used to care about it. It does what it’s generally supposed to do, it has users. Two things that matter at this day and age.
delamon: What is wrong with peeking at process.env? It is a global map, after all. I assume, of course, that they don't mutate it.
hu3: For one it's harder to unit test.
ChicagoDave: I hope everyone provides excellent feedback so they improve Claude Code.
DeathArrow: And while they are at it, open source Opus and Sonet. :)
dhruv3006: I have a feeling this is like llama.Original llama models leaked from meta. Instead of fighting it they decided to publish them officially. Real boost to the OS/OW models movement, they have been leading it for a while after that.It would be interesting to see that same thing with CC, but I doubt it'll ever happen.
DeathArrow: I wonder what will happen with the poor guy who forgot to delete the code...
epolanski: Responsibility goes upwards.Why weren't proper checks in place in the first place?Bonus: why didn't they setup their own AI-assisted tools to harness the release checks?
rafram: Well, Claude does boast an absolutely cursed (and very buggy) React-based TUI renderer that I think the others lack! What if someone steals it and builds their own buggy TUI app?
FiberBundle: This is the dumbest take there is about vibe coding. Claiming that managing complexity in a codebase doesn't matter anymore. I can't imagine that a competent engineer would come to the conclusion that managing complexity doesn't matter anymore. There is actually some evidence that coding agents struggle the same way humans do as the complexity of the system increases [0].[0] https://arxiv.org/abs/2603.24755
loveparade: Your favorite LLM is great at building a super buggy renderer, so that's no longer a moat
bigbezet: It's not a desktop tool, it's a CLI tool.But a lot of desktop tools are written in JS because it's easy to create multi-platform applications.
jsk2600: Original author of Claude Code is expert on TypeScript [1][1] https://www.amazon.com/Programming-TypeScript-Making-JavaScr...
matltc: Lol even the name is crazy
isodev: Can we stop referring to source maps as leaks? It was packaged in a way that wasn’t even obfuscated. Same as websites - it’s not a “leak” that you can read or inspect the source code.
echelon: "Approach Sonnet"...So not even close to Opus, then?These are a year behind, if not more. And they're probably clunky to use.
tokioyoyo: I agree, there is obviously “complete burning trash” and there’s this. Ant team has got a system going on for them where they can still extend the codebase. When time comes to it, I’m assuming they would be able to rewrite as feature set would be more solid and assuming they’ve been adding tests as well.Reverse-engineering through tests have never been easier, which could collapse the complexity and clean the code.
avaer: (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.
ares623: So close to April Fool's too. I'm sure it will still be a surprise for a majority of their users.
samhh: It may be economically effective but such heartless, buggy software is a drain to use. I care about that delta, and yes this can be extrapolated to other industries.
tokioyoyo: Genuinely I have no idea what you mean by buggy. Sure there are some problems here and there, but my personal threshold for “buggy” is much higher. I guess, for a lot of other people as well, given the uptake and usage.
hrmtst93837: Users stick around on inertia until a failure costs them money or face. A leaked map file won't sink a tool on its own, but it does strip away the story that you can ship sloppy JS build output into prod and still ask people to trust your security model.'It works' is a low bar. If that's the bar you set you are one bad incident away from finding out who stayed for the product and who stayed because switching felt annoying.
ivanjermakov: > It exposes all your frontend source code for everyoneI hope it's a common knowledge that _any_ client side JavaScript is exposed to everyone. Perhaps minimized, but still easily reverse-engineerable.
Monotoko: Very easily these days, even if minified is difficult for me to reverse engineer... Claude has a very easy time of finding exactly what to patch to fix something
cbracketdash: Once the USA wakes up, this will be insane news
ivanjermakov: Because it's the most popular programming language in the world?
JohnLocke4: You heard it here first
mikrotikker: I think that you do not need to feel uneasy at all. It is your computer and your memory space that the data is stored and operating in you can do whatever you like to the bits in that space. I would encourage you to continue that experiment.
singularity2001: You are not allowed to use the assistance of Claude to manufacture hacks and bombs on your computer
mesmertech: Was searching for the rumored Mythos/Capybara release, and what even is this file? https://github.com/chatgptprojects/claude-code/blob/642c7f94...
treexs: does this not work? https://www.mintlify.com/samarth777/claude-code-copilot/intr...
echelon: The only exciting leak would be the Opus weights themselves.
bmitc: The source is linked to in this thread. Is that not the source code?
dheerajmp: Source here https://github.com/chatgptprojects/claude-code/
zhisme: https://github.com/instructkr/claude-codethis one has more stars and more popular
treexs: won't they just try to dmca or take these down especially if they're more popular
echelon: 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?