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

@svavar @sigsegv @tante here are recent numbers: more activity, less getting shipped https://mastodon.cloud/@jasongorman/116327493190480229
Jason Gorman (@[email protected])

CircleCI's analysis of 28 million CI workflows confirms the same picture the DORA data shows. While feature branch activity's up significantly, the median impact on *main* (i.e. release) branch activity's net-negative 7%. Only the top 5% of teams saw significant gains. The top 10% flatlined at 1%. For the average team, AI slows them down overall. Told ya! https://www.linkedin.com/pulse/what-28-million-workflows-reveal-ai-codings-biggest-risk-circleci-j9syc/

mastodon.cloud
@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
@vikxin @tante @atax1a i wanted to note the same sentiment, great analogy. I'll make sure to read that post!
@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?

@skjeggtroll @tante I've seen "prompt fondler" and "sloperator" and both terms have value.

@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")
@erikarn @tante You are right 🤣

@parikhparth23 @erikarn @tante I guess I'll have to swear in a language other than English then.

Tòn an t-Sàtain!

@erikarn @tante exactly !English

@parikhparth23 if only we had a way of classifying text as different language/dialects based on some sort of rules and bayesian statistical based processing, then a way to apply different subsets of regular expression tables based on this

(sorry as a programmer and a linguistics graduate, i can not resist)

@parikhparth23 @tante sounds like me googling some new feature from windows update
@parikhparth23 @tante Things like this would work fantastically in languages and dialects with a richer swearing tradition
@aslakr @tante exactly thats my point…swear in !English

@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

@LordCaramac @tante washing machines out of plastic Haven't seen that!

Though they do use things like alu or magnesium spiders with steel drums which are susceptible to galvanic corrosion. Or light gauge painted steel instead of hravy weight steel and enamel.

Lower weight saves significantly on shipping for those overseas factories, at the expense of longevity.

@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?
@aras @tante I'm guessing this is equivalent to the people who say the digits of Pi contains the full source code for Doom: yeah, it might be in there, but who has the time to wade through all the extraneous garbage to find it? Just go get the real thing!
<- @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.

@hopeless @tante yes, as I read this, I found myself questioning whether the author has ever even used coding agents before. They are very competent, and I am working on a project for the fediverse using a variety of them. I have a programming/engineering background though, so I can design the architecture for them to implement and just use them as basically a super charged search engine/code monkey. I do also plan on full code reviews and outside collaboration so we can sanity check the results, but from what I have seen so far, the results it can achieve with thoughtful guidance is really amazing.

@korendian @tante

Some people are experiencing AI as a very unpleasant thing... they want it to just go away. If Anthropic's code leaked and it was super awesome, it would in no way improve their opinion. The topic of the next meeting of Anti AI Anonymous would simply be something else negative.

If you tell them it's good for coding assist (as it is) it's like telling them Cthulhu is good at coding assist. It's important to keep them in touch with reality. But it's not going to solve it.

@tante Well written. I don't know anything 'bout coding, but I can contribute with my music associations. Here at "Begging & Pleading": https://www.youtube.com/watch?v=mH0EBPiJdzE
Brandy - Beggin & Pleadin

YouTube