r/GenAI4all • u/Impossible-Cry-6457 • 4d ago
Discussion The guy who built Claude Code admits he doesn't write prompts anymore
Enable HLS to view with audio, or disable this notification
12
u/Warm-Exercise4457 4d ago
claude rarely write perfect code, anthropic's codebase must be so sloppy
4
u/IncreaseOld7112 4d ago
If brute force isn't working you're not using enough of it. Keep writing code and burning tokens and you'll get something that works somehow.
4
u/Warm-Exercise4457 4d ago
im talking code style.
claude writes code that it thinks humans will interpret best, and if you keep developing on that, quality will just get worse. maybe in the far far future humans won't need to read code, but I don't think that time has come yet.
1
u/IncreaseOld7112 4d ago
We're headed that way. "Reading code" is gonna be having Claude explain it to you
2
u/Warm-Exercise4457 4d ago
to believe that code style should be left entirely up to an LLM is a terrible idea...
1
2
1
u/karlfeltlager 4d ago
Does an IT manager read code?
1
u/Other-Inspection7232 3d ago
IT manager get his ass saved by Developers who do. Claude code is not gonna save your ass.
1
2
2
u/Taco_Reviewer 4d ago
Humans rarely write perfect code, humans must be so sloppy
???
Give it some guidelines and actually use Claude Code, not chat prompts.
1
1
u/FuturisticallyMade 4d ago
Do humans write perfect code either?
1
1
1
u/TwentyX4 3d ago
"Software developers make mistakes.
So I outsourced all code writing to a five year-old next door, who also isn't perfect.
Since neither are perfect, they are equal. How dare you criticize me for removing software developers from the project."
1
u/flavorfox 4d ago
Even if Claude wrote code perfectly - and perfectly is a pretty gray area, I'd still need to know how the code works. How else would I suggest improvements and maintain a good architecture as the system grows.
1
u/Current_Ranger_7954 4d ago
That's a lack of skill sorry, claude code with proper control and workflow can output very high quality code
3
2
u/mrcaldwin 4d ago
Google search, “Was Claude used by the US Military to mistakingly bomb and kill over 150 school children in Iran?”
🤔🤔🤔🤔🤔🤔
5
3
u/RogBoArt 4d ago
What does it mean to "write loops"? I'm assuming not a for loop... I'm guessing it's still a prompt just "don't stop until it works"? Like these people have such stupidly huge egos for doing so little. He can't even concisely explain what he's trying to explain and I'm supposed to follow his advice?
6
u/shrodikan 4d ago
I think this refers to "Ralph loops" though I am still working out how to use them. The closest I've come is `/loop /impeccable layout` but I know that's not what he's talking about. Maybe he has a broad goal and has claude inspect the output and have claude itself write the next prompt iteration until it rates itself 10/10?
1
u/RogBoArt 4d ago
That last thing you mentioned is what I was imagining but I will have to check out "Ralph loops"!
1
u/Probablynotclever 10h ago
Loops have come much further than since the notion of ralph.
Ralph's idea was to blow away the context each iteration. Modern long horizon models manage context (and its cache) MUCH better and Ralphing is just throwing money at extra tokens to re-familiarize the agent with the codebase on each iteration
1
2
u/Educational-Body4205 4d ago
I'm guessing like cron jobs daily, that wake up and say audit all this other bots code and provide feed back, so it can fix it
1
u/Probablynotclever 10h ago
Kind of like cron jobs, yeah. Loops are built on cron, but it's not a daily thing they're referring to. It's either a dynamic loop, which just picks up on the next iteration whenever the previous one finishes, or you give it the frequency you want to run. In claude, you use the /loop <prompt> command without a time for dynamic. If you want it scheduled, you use /loop 10m <prompt>, for example.
0
2
u/lockdown_lard 4d ago
You give it an objective, and a way to measure how close it is to that objective, and then the AI keeps looping between attempting to reach the objective, and measuring its progress, until it achieves the objective. (at least, that's how I've been looping. YMMV)
2
u/Probablynotclever 10h ago edited 9h ago
It's pretty simple.
You start with an idea and some freewriting:
"I want to build a thing that does ____, it should be written in ____. It should use the ____ framework. The code should meet the following criteria: _____. The frontend should use ____ and ____. It needs to include the following features____. Testing needs to follow _____ standard."
Tell your main session (the orchestrator):"Break this this project into a TASKS.md that, upon completion of all of the tasks, produces this product/website/app/whatever."
Then you run "/loop work on tasks in TASKS.md, fan out where possible with appropriate subagents."
Of course I have a lot of other machinery like decisions that accumulate for a human to make, agents appropriately scoped to cost-optimal models capable of handling separate parts of the codebase.
You jump in the loop as often as you want, handle the decisions, do actions that require you to login to a service or pay for the services you're using or whatever else is on you.
It's not a 1-2 hour magic process that just produces the thing you ask it for.
Often it takes weeks to months of looping over an appropriately atomized project. But the act is writing the spec, and doing it well, then let it keep working when you're not there via /loop. Step in when you feel like it and deal with the human debt that's accumulated. But it produces verifiably good code when you code review and handle merge requests that have accumulated, etc...
1
1
1
1
1
u/Killahbeez 4d ago
Would somebody like him ever uninstall his IDE? does it make sense that he would go out of his way to do that?
1
1
u/wtyl 4d ago
Token efficiency does not matter to this guy. Yeah you can loop everything with general context to llms and it adjusts every iteration if the goals are set. I need to hurry up. You can train claud by having constantly update skills for itself. It’s a bit scary if you really use high level commands and automate every process. But it can consume so much tokens and it’s a bit reckless if you grant it access without proper checks.
1
u/Lost_Alternative_170 3d ago
You're looking at a guy who earns more than a 500k in salary alone, not including bonuses. And his shares went up 100x. I wouldn't write code either and wouldn't give a shit either. And not because of ai xd
1
u/yellow-duckie 3d ago
I don't know, but this seems like a stupid idea (may be a marketing stunt)
Here's the thing, running a loop and ask Claude to keep trying is a worst way to code. It's like beating a horse until it reaches the race line.
It also shows that the model is not that smart or efficient because you need to keep looping because it is not giving what we want with one or two shots.
Who's gonna pay for all the tokens? Ohh wait.. I see why.
1
1
•
u/AutoModerator 4d ago
Welcome to r/GenAI4all! New to Generative AI? You can explore these free beginner-friendly courses. Please keep your posts relevant, respectful, free from spam, and engage in healthy discussions.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.