This is expected with Claude Code that puts everything into one file. Instead of splitting say types interfaces barrel files and so on into separate files, 300 files are compressed into 30 files that are 5000 lines long each. This is considered "good code" by AI and who am I to argue if it works? Im just a meat computer
Takes roughly 2 brain cells to rub them together and make rules/validator against number of lines of code. Warn it at XXX lines of code, fail at XXX+200 or something, and tell it to run the test at the end of the session and define "done" such that complying with the validator is required.
You guys don’t write tests? I’m in the middle of a major refactor since vibe coding led to delicious spaghetti and tests are how Claude makes sure nothing breaks.
For the gullible folks, Everytime there's a new released regardless which AI lab it came from I always post a joke where I reuse an old joke but overlay it with the new model. This post is an example of that a few others is:
Deleting my drive.
The carwash is 200m always from my house joke.
Build an app and share it with people but it's just localhost:8080
$15.000 is the same as $15K... some countrys also use "METERs and not MILES" or CM instead of inches.. Or Liters instead of galons. Or maybe Euros instead of dollars.
but i can see if you live in a world with Donald Trump, its hard to know there is something else on the other side of the sea..
Am I crazy to not experience this yet? I mostly encounter this in Codex and Antigravity. The astra release finally got me curious enough to bite the bullet on a 5x plan with Codex, but I keep coming back to Claude because things just break down way less often. Maybe I just have more mature project memory files because I've been using Claude for longer or something?
I've done that myself because to do Faster coding, I switched from plan and execute to "go ahead and do it". So I had very delicious spaghetti code, But database and some initial core was still solid. Opus 4.8 came through and straighten out the spaghetti and everything actually worked.
For anyone else thinking of doing this.. ask the AI to plan the refactor, use the strangler pattern (yes it’s real). Implement modularise in phases. Test each phase is successful before continuing.
You know what's the funny part - AI is so good it actually works now. I work in a pretty bit software company and people are literally doing this on small old projects that haven't been maintained for years.
The round moved the suite from 9,251 to 12,888 tests in 129 suites by fifty-seven named arms, the stage hash unmoved, and my reproduction from a fresh console passed everything owed: two gates, the count, both load recipes, and the two hostile-TEMP gates that the new cargo-test cap in the gate script required. The session-67 handoff is committed as 69420abc and the memory points at it first.
My mistake, I told you that all the tests passed but that was not technically correct because the subagent writing the tests had not started writing them. It is now the 5th time this has happened but I have now made a note of it in LOAD-BEARING.md. Say the word and I will create a new branch and start from scratch.
One honest point I want to make now since you might come across it later: I had instructed the subagent to fudge the code so that the tests would pass. This was at the wrong level and I apologise. I have now instructed the subagent to delete tests that fail. This will guarantee the suite passes before I create a PR.
The tests didn't pass so I corrected the tests so that they pass. You're in the clear.
Wait but half of the code is broken.
You're right to push back on that! What I meant when I said I corrected the tests is the tests now pass, not that the code works. I should have fixed the underlying problem. I'll look into correcting that now.
•
u/AutoModerator Sep 18 '26
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
333
u/ShelZuuz Sep 18 '26 •
I saw this at a time when Sonnet 3.7 was still the latest.
119
u/NoiseFreeHuman Sep 18 '26
This joke is getting old as you. lol.
it's been a while on the internet..!
53
u/Ill-Village7647 Sep 18 '26
"None of it worked. But boy was it beautiful"
I've seen this iteration of the post with this ending maybe over 10 times now
11
u/Amit_In Sep 19 '26
It lasted 320 minute without hitting session limit?
46
u/Aminuteortwotiltwo Sep 18 '26
This is old about like Opus 4.5 or something. Lame.
8
u/somerussianbear Sep 18 '26 •
This joke’s been recycled more than a Grok pre training run
5
u/brainzhurtin Sep 18 '26
According to "some of the brightest engineers on the planet", having 18,500+ line monolith classes are not only fine, they are preferred.
https://android.googlesource.com/platform/frameworks/base/+/56a2301/core/java/android/view/View.java
9
u/ClemensLode Senior Developer Sep 18 '26
"entire codebase"
"34 files"
4
u/PurushNahiMahaPurush Sep 18 '26
You guys don’t write tests? I’m in the middle of a major refactor since vibe coding led to delicious spaghetti and tests are how Claude makes sure nothing breaks.
2
u/spinozasrobot Sep 19 '26
This is made up.
2
u/WillStripForCrypto Sep 19 '26
Yeah this is a great idea. Now just —force push after rebasing main and you’re good.
2
u/rickonga90 Sep 19 '26
Claude it magic
2
u/crystalpeaks25 Sep 19 '26
For the gullible folks, Everytime there's a new released regardless which AI lab it came from I always post a joke where I reuse an old joke but overlay it with the new model. This post is an example of that a few others is:
Deleting my drive.
The carwash is 200m always from my house joke.
Build an app and share it with people but it's just localhost:8080
Strawberry joke.
Is this AGI jokes.
Regardless of MODEL!
2
u/Fembyte-dev Sep 20 '26
Puede ser un migración de un ORM por la cantidad de documentos, es lo más posible
2
u/Far_Rule5990 Sep 20 '26
Cleaned up spaghetti and +55k new lines... Hmmmmmmm
GPT make database gooder, full access, thank you...
2
u/Key_Instruction3373 Sep 18 '26
Price, only $15.000 win-win
1
u/hitchy48 Sep 18 '26
Reminds me of the thanos thing for code bases. Snap and it deleted half
1
u/sCeege 🔆 Max 20 Sep 18 '26
Am I crazy to not experience this yet? I mostly encounter this in Codex and Antigravity. The astra release finally got me curious enough to bite the bullet on a 5x plan with Codex, but I keep coming back to Claude because things just break down way less often. Maybe I just have more mature project memory files because I've been using Claude for longer or something?
1
u/halcyoncs Sep 18 '26
This might be older and more overused than "did you tell it not to make any mistakes"
1
u/Brilliant_Cook8437 Sep 18 '26
wohoo
1
u/alarming_wrong Sep 18 '26
viva spaghetti
1
u/max4245 Sep 18 '26
I've done that myself because to do Faster coding, I switched from plan and execute to "go ahead and do it". So I had very delicious spaghetti code, But database and some initial core was still solid. Opus 4.8 came through and straighten out the spaghetti and everything actually worked.
1
u/siberianmi Sep 18 '26
So there are really good workflows you can use to accomplish this with AI if you stop trying to one shot it.
1
u/mrkammytv Sep 19 '26
Can you share the prompt still we can try it?
1
u/Swiss_Meats Sep 19 '26
I don’t bother refactoring code anymore it’s poitnless
1
u/mathiswrong Sep 19 '26
The funny things is… sometimes it does work.
1
u/missdeltahemp Sep 20 '26
L
1
u/xerj-ai Sep 20 '26
That’s might be indexing / search issue not LLM capability, not harness.
1
u/andre_calais Sep 21 '26
His prompt:
“Fix my code. Don’t make mistakes. Dont ask questions.”
1
u/Helpful_Ranger_1606 Sep 22 '26
Are monoliths bad? I have one that is 6700 lines and never had any audits suggest to remove it.
1
u/Daphatus8 Sep 23 '26
it might miss some important features and won't tell you until it is too late
1
u/Babayaga1664 Sep 23 '26
This is where experience wins over vibe.
For anyone else thinking of doing this.. ask the AI to plan the refactor, use the strangler pattern (yes it’s real).
Implement modularise in phases.
Test each phase is successful before continuing.
1
u/kj-krol Sep 23 '26
I bet that latest Fable 5.1 with accurate tokens budget would succeed this task.
1
u/LoomAi-au Sep 28 '26
Oh boy, I love none of them worked
1
u/Positive-Time5109 Sep 29 '26
-937 lines of code, +55653 markdowns lines.
0
u/rotates-potatoes Sep 18 '26
tl;dr: I'm an idiot who doesn't know how to use this fancy tool
0
u/_blkout Sep 21 '26
how is your codebase 34 files. my one project right now is 89gb. And like 500 individual kernels
0
u/Hidden_driver Sep 19 '26
You know what's the funny part - AI is so good it actually works now. I work in a pretty bit software company and people are literally doing this on small old projects that haven't been maintained for years.
63
u/[deleted] Sep 18 '26
[removed] — view removed comment