Anthropic's Claude Code's full source code leaked. Claude is seen by many to be the best coding LLM on the market with Anthropic proudly stating that Claude Code itself is mostly written by the LLM.

Now this sounds good as long as nobody can see the code which is quite the trash fire. Detecting "code sentiment" via regular expressions, variable and functions names containing prompt parts trying to influence the bot, a completely intransparent mess of a control flow that makes actual maintenance and debugging functionally impossible and the prompts ... of the prompts. All the begging and pleading to the chatbot not to do this or not to do that or please to do this.

It is fascinating but it is as far away from actual engineering as drunkenly pissing your name in the snow. Dunno what you call the people prompting software at Anthropic but "engineer" is not it.

Now it is fun to look at the currently hyped product striped bare and showing its pathetic quality but that is the future of software if we let those companies continue to undermine every good practice software engineering has tried establishing.

The software we have to use will be bad, insecure, unmaintainable, expensive with nobody having the skills or resources to build something better. As I wrote a few months ago: LLM based software production is equivalent to saying that fast fashion should be the only way to produce clothing. A tragic degeneration of the quality of the artefacts we rely on build for maximum profit on the backs of people in countries from the global majority.

@tante I often wonder how much of (especially proprietary) software already suffered from these issues before the whole LLM situation came about.

@Namnatulco @tante

This Reddit thread is a good example. A dev posts some visible problems with the leaked code — some problems more serious than others, but just about everything in there counts as dubious “code smell”, sketchy team/organization culture, or both, at a minimum.

The general response? Blowing it off. Stating that the person posting this doesn’t know what real software development is like. Reinforced by an AI-generated summary at the top of the thread, emphasizing the sentiment just described, and generally belittling the concerns raised here.

(TL;DR summary of my own experience with enterprise software development, going back almost 30 years: the quality of what’s in the Claude Code leak is, at the absolute best, definitely on the “very dysfunctional” side of “typical”. I’ve seen lots of dubious code, outdated code, tech debt time bombs as code, and just plain crap code; I have *not* routinely seen codebases for major applications that look quite like this.)

https://www.reddit.com/r/ClaudeAI/comments/1s8lkkm/i_dug_through_claude_codes_leaked_source_and/

@dpnash @Namnatulco @tante

re: AI top of thread summary

can't get much more dystopian than having AI's defend themselves using some unknown energy amount.

bad code actually costs energy.

whole bunch of thesis papers on it.

@Namnatulco @tante software engineers are in general excellent at criticism - the fast iterative work flow makes this skill more useful than in say surgery. But asking them about code their group wrote will get the answer that it is terrible. But IME the problems are more often with conditions than code itself. A lot of times management won't pay for the right way, and a lot of times management won't years of tech debt is hard to maintain, but quality is higher than the people say.
@tante might well be the event that will make the bubble-popping begin. especially because its so far away from the values that anthropic tries so hard to project.
@tante der kaiser hat keine kleider after all
@lechimp @tante i hope so but this might be wishful thinking, there is no evidence to dissuade True Believers anymore because they have bet their skills and careers on slop. their ships have been burned
@cap_ybarra @lechimp @tante yeah :/ unfortunately I'm gonna have to agree with this here. If anyone hasn't heard enough to sway them against AI by now, they're probably not going to read the source code for Claude. I'm not going to either, because I've already made up my mind on the software (I hate it, tbc). So have the people using it, so why would they put more effort into knowing how bad the code is than I will?
@tante
I love this so very much I could cry.
@tante great timing only a couple of months before the plannend IPO of Anthropic.
@tante "drunkenly pissing [my] name in the snow" might be the closest thing I ever did to vibe coding
@tante I know devs that are saying if AI makes them 10-20% more productive it is worth it. And there’s a rejection of the ethical implications of the technology. I’m thankful I’m on the tail end of my career.

@sigsegv @tante

There's a study that found that engineers report being 20% more productive but they're actually 20% less productive.

So it's delusional all the way down.

@tante but it's the AI Overlord god code it's not meant to be understood by meat sacks ... 🤣

@tante

Salesforce has Agentforce Vibes and if you have access to it you can see a lot of the prompts they wrote to guide the LLM. There's very little to stop you from copying it all.

It's the same with a lot of their agentic offerings, you can look under the hood and customise how it works. All they're selling you is a prompt library and the ability to run the LLM on their infrastructure.

https://www.salesforce.com/agentforce/developers/vibe-coding/

Enterprise Vibe Coding - Agentforce Vibes

With Agentforce Vibes, leverage vibe coding to customize Salesforce faster and transform software development directly in your coding environment.

Salesforce
@tante but why does it work better than the other machines then?
@Openhuman @tante it doesn't. it's all psychological tricks to make you think it works.
@tante @atax1a comparing LLM code to fast fashion is really an A+ comparison. I'm gonna use that one
Software as Fast Fashion

Clothes have never been cheaper. These days a t-shirt is often cheaper than a decent cup of tea in a cafe. The wonders of capitalism. At least that is how it is often described. And when you point at the underpaid, gruesome labor that people in poorer regions of the planet have to do to […]

Smashing Frames
@tante @atax1a I'll give this a read when I have a bit more time
@tante instead of prompt engineer, they appear to be prompt therapists.

@tante

"Dunno what you call the people prompting software at Anthropic but "engineer" is not it."

'Software mendicants', perhaps?

@tante like this

const negativePattern =
/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/

😂

@parikhparth23 @tante (linguistics doing parts of speech tagging enter the chat and all rub their hands together saying "YESSSSSSSS")
@parikhparth23 @tante sounds like me googling some new feature from windows update

@tante Ever since the Industrial Revolution, capitalism has been thriving on producing bad quality for cheap, and then selling that cheap disposable shit to everyone so they have to throw it out and replace it when it breaks. Before the Industrial Revolution, people didn't have many pieces of clothing, but their clothes lasted for decades. Then mechanical looms produced so much cloth for so cheap that weavers lost their livelihoods, even though their artisanal cloth was far superior. All of a sudden, many people could afford to buy a lot of new clothes, but then they had to keep buying them because the fabric didn't last as long as it used to.

Making things cheap, shoddy, disposable, has always been the general direction of industrial mass production. If it's cheap enough, who cares if it breaks after a while, just buy a new one.

First it was textiles. Then it was all kinds of consumer goods. After WW2, everything became increasingly disposable. Nowadays even entire washing machines are often made out of plastic so that they break after a decade. Automated factories don't care if their products are of worse quality than the things that came before, they just dump their cheap shit onto the marketplace until the competition crumbles.

@LordCaramac @tante this llm project is primarily about getting you used to paying the same price for worse service. they're selling you two chips in a king size bag and telling you it's inevitable
@tante Was it the full code base? I heard that some things were leaked which would prove useful for reverse engineering but that the code itself wasn't leaked.
@angiebaby @tante my understanding was the the code was leaked and then quickly reimplemented in another language using Claude Code in order to thwart takedown requests.

@angiebaby @tante

A javascript source map file for the claude code client was accidentally published and people were able to convert that back into source directory.

We don't know what's going on on their servers though.

@tante I wouldn't claim that I expected something else, but I sure hoped for it. So, at least the harness is known now to be iteratively developed to adress the symptoms. Looks like LLMs are too complex even for the "real" experts, compared to an eternal GenAI beginner like me. They just have more optimism about how much control they have.
@tante I am currently significantly refactoring a medium sized C++ code base from the 00s. I have mostly only used LLMs to suggest sed substitutions to me. I will probably rely more on traditional AST-based refactoring e.g. clang-tidy initially, though I have an item to turnup Opencode.ai. I do not trust Cursor, Codex, GitHub Copilot or Claude Code.
@tante After reading this, very carefully - and reading replies with the same care - I now hope that I am still compos mentis when AI goes tits-up. The world will need the knowledge of the ancient ones...to rebuild.
@tante did anyone find the place where claude code is supposedly "similar to a full game engine", as was claimed by some of their folks a while ago?
<- @xChaos búst, no dobrá, myslíme si, že je špatně. Proč si to vlastně myslíme? Otázka.

@tante ... the scaffolding around a natural language engine isn't going to look like oldstyle heuristic code. That's what all those highly paid "prompt engineers" have been doing.

Although it clearly eases the pain for people to come together and ritually denounce AI and all that sail in it, the fact is coding AIs work very well and aren't going anywhere even when the "add clippy to everything" bubble bursts.

Just bear in mind it's widely used, but quietly on masto due to all the pitchforks.