4 ms·
I tried the agent thing on: - Large C codebase (new feature and bugfix) - Small rust codebase (new feature) - Brand new greenfield frontend for an in-spec an
by mlsu 1y ago
I tried the agent thing on:
- Large C codebase (new feature and bugfix)
- Small rust codebase (new feature)
- Brand new greenfield frontend for an in-spec and documented openAPI API
- Small fixes to an existing frontend
It failed _dramatically_ in all cases. Maybe I'm using this thing wrong but it is devin-level fail. Gets diffs wrong. Passes phantom arguments to tools. Screws up basic features. Pulls in hundreds of line changes on unrelated files to refactor. Refactors again and again, over itself, partially, so that the uncompleted boneyard of an old refactor sits in the codebase like a skeleton (those tokens are also sent up to the model).
It genuinely makes an insane, horrible, spaghetti MESS of the codebase. Any codebase. I expected it to be good at svelte and solidJS since those are popular javascript frameworks with lots of training data. Nope, it's bad. This was a few days ago, Claude 4. Seriously, seriously people what am I missing here with this agents thing. They are such gluttonous eaters of tokens that I'm beginning to think these agent posts are paid advertising.
- chucknthem 1y agoHow are you writing your prompts? I usually break a feature down to smaller task level before I prompt an agent (claude code in my case) to do anything. Feature level is often too hard to prompt and specify in enough detail for it to get right. So I'd say claude 4 agents today are at smart but fresh intern level of autonomy. You still have to do the high level planning and task break down, but it can execute on tasks (say requiring 10 - 200 lines of code excluding tests). Any asking it to write much more code (200+ lines) often require a lot of follow ups and disappointment.
- jvanderbot 1y agoThis is the thing that gets me about LLM usage. They can be amazing revolutionary tech and yes they can also be nearly impossible to use right. The claim that they are going to replace this or that is hampered by the fact that there is very real skill required (at best) or just won't work most the time (at worst). Yes there are examples of amazing things, but the majority of things seem bad.
- presentation 1y agoI have not had a ton of success getting good results out of LLMs but this feels like a UX problem. If there’s an effective way to frame a prompt why don’t we get a guided form instead of a single chat box input?
- presentation 1y agoCoding agents should take you through a questionnaire before working. Break down what you are asking for into chunks, point me to key files that are important for this change, etc etc. I feel like a bit of extra prompting would help a lot of people get much better results rather than expecting people to know the arcane art of proompting just by looking at a chat input.
- consumer451 1y agoI am just a muggle, but I have been using Windsurf for months and this is the only way for me to end up with working code. A significant portion of my prompts are writing and reading from .md files, which plan and document the progress. When I start a new feature, it begins with: We need to add a new feature X that does ABC, create a .md in /docs to plan this feature. Ask me questions to help scope the feature. I then manually edit the feature-x.md file, and only then tell the tool to implement it. Also, after any major change, I say: Add this to docs/current_app_understanding.md. Every single chat starts with: Read docs/current_app_understanding.md to get up to speed. The really cool side benefit here is that I end up with solid docs, which I admittedly would have never created in the past.
- jaggederest 1y agoI mean if you ask Claude code to walk through what you should do next with you it'll ask lots of great questions and write you a great TODO.md file that it'll then walk down and check the boxes on. You don't exactly need to know prompting, you just need to know how to ask the AI to help you prompt it.
- cyral 1y agoYou can ask it to do this, in your initial prompt encourage it to ask questions before implementing if it is unsure. Certain models like o4 seem to do this more by default rather than Claude that tends to try to do everything without clarifying
- Affric 1y agoI feel like when you prompt an LLM the LLM should take it almost as "what would the best possible prompt for this prompt be and then do that"...
- turtlebits 1y agoHave it make small changes. Restrict it to a single file and scope it to <50 lines or so. Enough that you can easily digest without making it a chore.
- declan_roberts 1y agoA small change scoped to <50 lines is something easy to write for a normal software engineer. When do the LLMs start doing the hard part?
- kasey_junk 1y agoWhen you wire them up to your cicd process with pull requests and the github gui as your interface, rather than sitting there passively riding along as it prompts you the changes it’s going to make. With my async agent I do not care about how easy it is for me, it’s easier to tell the agent to do the workflow and comeback to it later when I’m ready to review it. If it’s a good change I approve the pr, if not I close it.
- skydhash 1y agoA small change around 50 lines is the size of an advent of code solution (the hardest part). Most of the code you write around that is for defensive coding (error handling, malformed input, expected output,…) which is the other hard part. Then you connect these cores to form a system and that’s another tough problem. And it needs to evolve to. We’ve built tools to help us with the first part, framework with the second, architecture principles with the third and software engineering techniques for the fourth. Where do LLMs help?
- simonw 1y agoCan you type that 50 line change in less than 15 seconds?
- soraminazuki 1y agoIt'd take less than the time it takes to come up with The Perfect Prompt.
- vitaflo 1y agoIt’s entirely possible that the people talking up agents also produced spaghetti code but don’t care because they are so much more “productive”. An interesting thing about many of these types of posts is they never actually detail the tools they use and how they use them to achieve their results. It shouldn’t even be that hard for them to do, they could just have their agent do it for them.
- phkahler 1y ago>> It’s entirely possible that the people talking up agents also produced spaghetti code but don’t care because they are so much more “productive”. You may be right. The author of this one even says if you spend time prettying your code you should stop yak shaving. They apparently don't care about code quality.
- blibble 1y ago> You may be right. The author of this one even says if you spend time prettying your code you should stop yak shaving. They apparently don't care about code quality. brought to you by fly.io, where the corporate blog literally tells you to shove your concerns up your ass: > Cut me a little slack as I ask you to shove this concern up your ass.
- lumost 1y agoThe agent/model being used makes a huge difference. Cline with Claude 3.7 is ridiculously expensive but useful. Copilot is vaguely ok.
- galangalalgol 1y agoEven just doing the cut and paste thing for one shots, claude sonnet 4 writes good rust code, generally on the first try.
- citizenpaul 1y ago>these agent posts are paid advertising. I'm 100% certain most if not all of them are, there is simply too much money flying around and I've seen things that marketing does in the past for way less hyped products. Though in this specific case I think the writer may simply be shilling AI to create demand for their service. Pay us monthly to one click deploy your broken incomplete AI slop. The app doesn't work? No problem just keep prompting harder and paying us more to host/build/test/deploy it... I've also tried the agent thing and still am with only moderate success. Cursor, Claud-squad, goose, dagger AI agents. In other words all the new hotness, all with various features claiming to solve the fact that agents don't work. Guess what? they still don't. But hey this is HN? most of the posters are tech fearing luddies right? All the contention on here must mean our grindset is wrong and we are not prompting hard enough. There is even one shill Ghuntly that claims you need to be "redlining" ai at the cost of $500-$1000 per day to get the full benefits. LOL if that is not a veiled advertisement I don't know what is.
- simonw 1y agoNobody has paid me to write anything about AI and if they did I would disclose it.
- ghuntley 1y agoditto - https://ghuntley.com/disclosures https://ghuntley.com/disclosures
- citizenpaul 1y agoForgive me if I don't consider your personal blog an authority of your honesty. "I'm not a liar, for real dude see it says right there" Why are all your public projects "joke/toy projects" if AI is so awesome and production ready? My experience reflects this as the truth. Yet your work backs up my experience rather than your words. To avoid only being snark. I think all software is about power/control and software has allowed unprecedented concentration of power Which is why it resists being official like other industries. No one with power wants restrictions on their power/software. Ultimately AI is good for small'ish projects and a productivity multiplier(eventually). I think it will lead a new revolution in distilling the current incumbents in the business world that are stagnant on vast proprietary software systems that previously could not be unseated. Small players will be able to codify/automate their business to make it competitive with big players. So I'm not "anti-ai". edit: AI will simultaneously rot the proprietary software advantage from the inside out. As companies are further convinced that AI can solve their problem of having to pay people to maintain their software.
- CapsAdmin 1y agoThis is my experience too most of the time. Though sometimes it does work, and sometimes a solution is found that I never thought of. But most of the time I have to change things around to my liking. However, a counter argument to all this; Does it matter if the code is messy? None of this matters to the users and people who only know how to vibe code.
- someguy101010 1y ago> Does it matter if the code is messy? It matters proportionally to the amount of time I intend to maintain it for, and the amount of maintenance expected.
- runjake 1y agoYou’re not providing a key piece of information to provide you with an answer: what were the prompts you used? You can share your sessions via URL. A prompt like “Write a $x program that does $y” is generally going to produce some pretty poor code. You generally want to include a lot of details and desires in your prompt. And include something like “Ask clarifying questions until you can provide a good solution”. A lot of the people who complain about poor code generation use poor prompting.
- phkahler 1y agoIt'd be nice if the AI advocates shared prompts, or even recorded entire sessions. Then we could all see how great it really is.
- hermanradtke 1y agoMany do. In their GitHub repos right next to the code.
- runjake 1y agoThey do. All over the place. Simon Willison has some great examples in his blog and on his GitHub. Check out Karpathy’s YouTube videos as well. https://simonwillison.net/ https://simonwillison.net/
- jonas21 1y agoThis one's been on the HN front page all day: https://news.ycombinator.com/item?id=44159166 https://news.ycombinator.com/item?id=44159166
- foobarian 1y ago"Infrastructure as Prompts" (IaP)
- lexandstuff 1y agoPrompt engineering isn't really that important anymore imo. If you're using a reasoning model, you can see if it understood your request by reading the reasoning trace.
- jacob019 1y agoI don't think it's fair to call that the agent thing. I've had profoundly positive results with agentic workflows for classification, analysis, and various business automations, including direct product pricing. You have to build an environment for the agent to make decisions in, with good instructions for what you want them to do. Then you wire it up so that the decisions have effects in the real world. You can acheieve really good results, and there is a lot of flexibility to tweak it and various tricks to optimize performance. Tools can allow agents to pull in relevant context as needed, or to execute complex multistep workflows. That is the agent thing. Writing code is one thing that models can do when wired properly, and you can get a powerful productivity boost, but wielding the tools well is a skill of it's own, and results will vary by task, with each model having unique strengths. The most important skill is understanding the limitations. Based on your task descriptions and the implied expectation, I'm unsurprised that you are frustrated with the results. For good results with anything requiring architecture decisions have a discussion with the model about architecture design, before diving in. Come up with a step by step plan and work through it together. Models are not like people, they know everything and nothing.
- deleted 1y ago[deleted]
- deleted 1y ago[deleted]
- ComplexSystems 1y agoSame here. I keep trying to figure out WTF agent that people are using to get these great results, because Copilot with Claude 4 and Gemini 2.5 has been a disastrous mess for me.