r/AskProgramming • u/TheAntiDoctor • Aug 04 '26
Does Anyone Actually Use Agentic Loops?
Not exactly a software engineer, more ML Engineer with an academic background and then in industry for about 8 years total. Use python professionally and for hobbies. Like everyone else I have been experimenting with LLMs for coding, trying everything from not using it at all to trying to get it to do everything. I have found them useful and enjoy bouncing ideas off them, however they also make a lot of mistakes so currently enjoying a low use approach. Comments and architecting myself, use them more for syntax and some optimisation then review everything as I go along. This speeds things up, but I am still very in control of the output and understand the underlying algorithm.
A couple of months ago I obviously saw usage based billing come in for things like Github Copilot etc. I saw a lot of comments from people using agentic workflows very upset about their usage being cut, also I'm very aware of some companies quoting large sections of their codebase being AI generated, although obviously aware this might be sales tactic. Furthermore I've seen respected researchers/engineers like Karpathy talking about the big leap in model capabilities that now means they hardly write any code and had some recommendations from friends to use agentic workflows.
My personal experience hasn't left me thinking this is viable atm for my work. Partly because the stuff I am doing I really need to be crystal clear about what is happening to the data for experiments and partly because getting together a prompt together for a relatively complex system is very difficult and time consuming and the results usually aren't great. Has anyone got experience actually using more autonomous coding agents successfully and I should experiment more widely or are they a red herring?
6
u/evangelism2 Aug 04 '26
Yes, people do, but it's the minority. Most peoples loops are just as simple as /goal
5
u/Fidodo Aug 05 '26
Not for any non throwaway work for exactly the reason you said. You wind up with an absolute spaghetti code mess that nobody can understand.
The exception is when you don't need to keep the code around. Sometimes you are doing a one off test with a verifiable result where it doesn't matter how you got the result and you can confirm the result is correct by checking the result after it was produced.
An example would be if I'm testing out an approach just to see if it's even viable. I can prove the technique, then use that proof to build it correctly.
4
u/TheMrCurious Aug 04 '26
You’ve been using loops all along and just never knew it.
10
u/DepthMagician Aug 04 '26 edited Aug 04 '26 •
The short answer is that way you are using AI is the correct way to use AI, your friends are wrong, companies are lying about how much AI is really writing their code (see this for example), Reddit is severely astroturfed by AI promoting bots, and you shouldn't do agentic engineering for anything that is high stakes enough that you need to pay attention to it.
While it is possible to do work with agentic workflows, not every task is a good fit for it. You either need to not care about the quality of the output (pet projects, throwaway prototypes, conceptually shallow things like UI where validation is trivial, things where failure is not a big deal, and most importantly: things you won't need to maintain and evolve for long periods of time), or if you want to do high stakes work with agentic engineering you will need to have access to vast number of quality tests and very detailed specs, and even then you need to invest effort in setting standards and elaborate safety nets for your team of agentic bots. In other words it's a tool, and like every tool you need to know what problems it is a good fit for. The answer to that question is absolutely not "everything". Usually you are better off just doing what you said you are doing. Your skills and your bank account will thank you for it.
5
u/MetallicOrangeBalls Aug 05 '26
LLMs are tools. They cannot (yet) """program""" the way a human can. But, like code completion, IDEs, etc. before them, they improve the quality of life for programming.
They are very useful for reviewing code and documentation. I find that to be their best use. They can properly advise on missing features. They can catch syntactically-correct-but-semantically-incorrect code. I find them to be very useful for rubber-ducking, with the added benefit that the "duck" can give you feedback.
They are alright at writing boilerplate code and documentation. They are better when following a pattern that you present to them. However, everything that they write has to be carefully checked. I have found that they make A LOT of mistakes. Sometimes they will """assume""" that you meant something very different from what you actually meant. I generally tend not to use them unless it's for something very simple.
They are terrible at architecting and big-picture stuff. Not even the best models come close to someone who knows what they are doing.
I did my doctorate in AI. I strongly believe that there will come a time when AI is good enough to truly program. However, we are at least several decades away from that point. LLMs are a gimmick; a useful one, but that does not change the fact that they are essentially a toy that most of the non-academic world has only recently discovered and is enamoured by. I was working on LLMs back in 2012-2013. Not very many people knew or cared about them. By around 2014, I too stopped caring about them, as they didn't seem to be as useful as other applications of AI. In 2017, the year I defended, the transformer model was first published in Attention Is All You Need (paper). It seemed interesting at the time, but only to fellow AI scientists/engineers. In 2022, OpenAI launched ChatGPT, and suddenly the rest of the world got AI fever. And thus did the enshittification commence...
2
u/AntiquatedMLE Aug 05 '26
My brother in Christ. I am you. I was right where you are and thought exactly the same. After a few months of taking the leap I can tell you It is possible.
You will def deskill in some regards and conversely upskill in others. I spend an absolute eternity on managing context and prompts to build up solid planning and documentation. But writing code? After getting your plans in order, Set /goal and burn them tokens. Be ready with coffee for code reviews.
1
u/fugogugo Aug 06 '26
OOT but we are allowed to ask AI related question here? I was about to ask something about AI agent but kinda afraid mod will delete it
-4
u/KahlessAndMolor Aug 04 '26
I use codex every day, it writes 95% of my code. Is that what you are asking about?
-3
u/Own_Age_1654 Aug 04 '26 edited Aug 05 '26
[EDIT: If you disagree with this in some way, please leave a comment instead of just downvoting.]
Get the idea of loops and autonomy out of your head, and instead just use Fable and Opus, driving it directly, and I'm sure it will work just fine. Among many other things, I've used it to discover and make use of emerging research in some pretty hairy statistical modeling, no problem, so any typical machine learning shouldn't be wildly harder.
Importantly, just make sure you have it thoroughly research online before doing anything, to ground its knowledge. Have it find relative papers, read through them, take notes, etc., and as it goes have it take notes on its decisions, what's underpinning them, what it's unsure about, etc. The intellect is there, and it just needs sufficient context. Otherwise, it will overconfidently assume things that are incorrect.
You can give it standing instructions to do all of that automatically, such that essentially all you need to do is talk to it like you would a skilled colleague that you're collaborating with, and a team of bright interns you're assigning grunt work to. They're not going to get everything right, but just talking through what they're finding, what they're proposing, what you think might help, etc.
If so, then it's basically the same work you'd do manually, except more thorough, as you don't have time to research and test every little thing. Where quality drops off--and massively--is just if you try to give it a goal and then hope it can magically loop towards it, instead of collaborating with it actively and treating it as merely an accelerator.
-8
u/Confident_Hyena2506 Aug 04 '26
The bot just does what you tell it do. If it doesn't get the job done it's your own fault.
-1
u/Mati_g Aug 05 '26
I do, with china models opencode bmad my own multi agents met-agents and work well.
-7
u/ImpossibleJoke7456 Aug 04 '26
> however they also make a lot of mistakes
This just hasn’t been my experience for the last 9 months or so. It does what you tell it to. If it goes the wrong direction, that’s on you to redirect it with better prompts or better instructions or better context.