Claude Code leaked, you know what that means. Time to break down the worst typescript I've ever seen.

First off this isn't code, its advanced begging. The most common design pattern I can find is just
recurseUntilSuccess which is more of a prayer than an efficient architecture.

Shit like this is hard fucking coded into the prompts. Not that the LLM will obey, they just hope it will:

"You are not a lawyer and never comment on the legality of your own prompts and responses."

"In the Sources section, list all relevant URLs from the search results as markdown hyperlinks: [Title](URL). This is MANDATORY - never skip including sources in your response"

"IMPORTANT - The current month is ${currentMonthYear}. You MUST use this year when searching"

"ONLY mark a task as completed when you have FULLY accomplished it"

These people use caps like children. This isn't code, this is begging to a false god that cannot understand your words.

(1/?)
This is the simplest tool in the repo, a simple LLM sleep function. Somehow this thing will consume tokens even when its not fucking doing anything???

Like look at this shit: "Each wake-up costs an API call, but the prompt cache expires after 5 minutes of inactivity — balance accordingly."

That's not a function you idiots, that's an LLM instruction. Sleeping, the simplest fucking thing in the world, takes active processing power for Claude Code. Galaxy brain levels of stupid.
(2/?)
There's a type for logging called AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS that presumably is prompting the LLM coding agent as it writes code. Its used everywhere as a string type for logging, with no extra validation that the string doesn't contain filepaths or code.

here its logging raw error message using the type which could contain either

This is a common pattern. Tons of function names are literally just a full sentence long:
useAppStateMaybeOutsideOfProvider. getFeatureValue_CACHED_MAY_BE_STALE, getDynamicConfig_BLOCKS_ON_INIT

(3/?)
Reading source code for the /doctor command. Excuse me what the fuck is this shit. I think the LLM had a fucking stroke.

This is very, very common throughout the code btw. This is not code you can understand. This is slop. This is incomprehensible code in the section of the code base that's supposed to be about verifying your installation. How does anyone know its working?

(4/?)
All over the codebase are functions with the word maybe in the signature. Here is one called maybeRefreshOverageCreditCache in which the idiot clanker attempts to refresh how many credits the user have. In a comment above it, we see why this pattern is so common: "Safe to call unconditionally on mount"

The system is so complex with so many race conditions that they just have to hope the data is there and if it isn't try again until it is. Lol.

maybeMarkProjectOnboardingComplete in which the LLM attempts to update a boolean value. Simple right? Well...because all of the file IO is nondeterministic, it has to use a try/catch. If it fails, it just calls maybeMarkProjectOnboardingComplete the next time a user interacts with the cli.

(5/?)
@AnarchoCatgirlism this reads like asbestos smells

@CauseOfBSOD @AnarchoCatgirlism

AssBestOS -- the new operating system written entirely by Claude.

Wow. This is incredible.
@AnarchoCatgirlism an entire product sector exclusively created by the people too ignorant to understand that this product sector should not exist and cannot be made to work.
@AnarchoCatgirlism this straight up looks obfuscated
@green its not because its alongside full text code in the same file
@AnarchoCatgirlism @green But it might have been trained on one too many obfuscated malware samples...
@AnarchoCatgirlism if you told me that was the output from a reverse engineering decompiler I'd believe you.
@AnarchoCatgirlism I need to call an ambulance for myself after looking at that code

@mitsunee @AnarchoCatgirlism

Ouroboros code:
An automated slopware developer written by an automated slopware developer.

@AnarchoCatgirlism This is worse than obfuscated JavaScript omfg
@meluzzy minification / obfuscation has a purpose. This is just sloppy code in a place where its supposed to be readable

@AnarchoCatgirlism

Is this code written by Claude or for Claude?

Or both, is Claude writing its own code? 😬

@Phosphenes @AnarchoCatgirlism I saw somewhere that Anthropic has said Claude is now written by Claude, but I cannot find the source quickly enough.

@ozzelot @Phosphenes @AnarchoCatgirlism

I mean, they at least eat their own dogfood That's good in my books.

Of course, that doesn't make the rest right.

@dragonfi @ozzelot @Phosphenes @AnarchoCatgirlism

Well, they're feeding dog food back into the dog food making machine that's made of other people's dogs.

@[email protected] @[email protected] @[email protected]
What if there never were any humans involved and Claude Code sent a copy of itself from the future and manipulated some local meatbags into marketing itself as useful product? 😱🤖
@Phosphenes One of their devs was bragging on linkedin that he doesn't commit code anymore, just uses claude and commits what claude writes.

So yes, the slop machine is building itself
@AnarchoCatgirlism This was trained on the code they show on computer monitors in the background of movies

@bstacey @AnarchoCatgirlism

“THEY’RE IN THE MAIN FRAME! I’m gonna have to download more RAM and hack the firewall. See if you can trace the IP when they download the DNS port. Hurry!”

NCIS ridiculous hacking scene: one keyboard, two typists HD

YouTube
@AnarchoCatgirlism Reads like the prompts Claude gives itself in Claude Plays Pokémon,which it often gaslights itself with (and often distrusts and ignores anyway)
@AnarchoCatgirlism This is some of what it lets it poll a task running in the background for updates — like watching a log file for an event.
@aredridel indeed. My point is that its doing it incredibly inefficiently. A simple polling function would suffice, you don't need to prompt an LLM to do this lol
@AnarchoCatgirlism Yeah, for a lot of uses. Not all of them. It's definitely wasteful, but a simple poll isn't exactly equivalent.

@AnarchoCatgirlism

Prefer this over `Bash(sleep ...)` — it doesn't hold a shell process.

🤯 🤦 🤦‍♂️ 🤦‍♀️

@AnarchoCatgirlism the types of people who would... lmao use anything even close to this are confusing to me. I dont understand them. I would literally abandon any employer or client who tried to make me use even the most basic version of any of this.

@AnarchoCatgirlism One thing I notice about this is their liberal use of what I suspect are em dashes in their instructions to The Machine.

I like to think they used em dashes instead of perfectly serviceable periods, colons, semicolons, and others, precisely because they *discovered* (or were reminded of) the existence of em dashes; and that they (re)discovered them because of the (luckily short-lived) urban legend about em dashes supposedly being a sure marker of genAI textual output as opposed to human textual output. Plus, who know, maybe some magical thinking that if genAIs use em dashes, maybe they understand them better?