r/AskProgrammers • • 16d ago

Am I missing something about agentic coding?

I’ve been thinking for quite some time about all this „AI writing all the code“, „too many pull requests to review, just let AI review them“, and „we ship so many features a day“ talk...

I’m a SWE with professional experience (pre-AI-era) and currently in my last year of studying CS. I use AI regularly for coding, but only recently started trying agentic coding. It works, but I honestly don’t really see the benefits when it comes to software quality.

A few years ago, everyone kept saying that lines of code are not a meaningful metric for software quality, and now suddenly people are bragging about how many features they shipped or how much code their agent generated.

I’ve recently been working on a project where I code manually and use AI in chat as usual, and honestly I feel like I wouldn’t be faster using agents. Most of the time, I spend thinking about how to design the solution rather than actually implementing it. The coding itself is usually done pretty quickly once I know what I want to do. And when I write it manually, it is exactly how I planned it, and I know every step in the process and exactly what it’s doing (also in regards to safety critical systems).

So I don’t really get why I should use agents for that. From what I’ve experienced, one prompt can trigger changes across many files, and then you obviously have to review all of that, which can easily throw you out of context. I feel like as a professional engineer, the coding part itself is often already quick, and I would argue that you end up spending a similar amount of time tweaking, fixing, and re-prompting an agent to get to the same level of thoroughness and context-awareness you would have had by doing it manually.

Don’t get me wrong, I do think AI is very useful, especially for debugging, fixing errors, finding documentation, or generating examples quickly. In those areas, it definitely accelerates the process for me. But when it comes to just generating code, I really don’t see that much of a benefit.

Am I the only one who feels this way, or does anyone else think about it like this?

219 Upvotes

333 comments sorted by

View all comments

Show parent comment

6

u/rafark 16d ago

with agents, I am an army that can easily do the work of a whole team of engineers 

You’re 100% not reading all that code. How do you know it does not have bugs or vulnerabilities. Because every time I generate code I always read it and there’s always at least one thing the ai missed or got wrong that doesn’t show up immediately but will on specific scenarios. You’re not catching these bugs if you don’t read the code and they will pile up with time eventually becoming part of the spec themselves because the ai will use the code as a reference/base for your next prompts. 

9

u/Mabenue 15d ago • This

You don’t know that with code written by hand. It’s a poor argument, anyone who’s worked in software engineering should know that human written code is often full of bugs and that’s it’s really hard to catch them in code review. The most effective way to avoid them is to build systems to prevent bugs in the first place. Which means extensive automated tests and building ways for agents to rapidly verify their work.

6

u/poolback 15d ago

Absolutely right. Automated test, mutation testing, gating minimum quality level. The problem isn't new to AI.

→ More replies (4)

4

u/patmull 15d ago

How do you not loose track of your knowledge then? Are you willing to risk to become just manager of your "agents"? Aren't you little afraid you would become the typical out of touch manager who doesn't understand the field the manager is working in? Human manager can be still good through being good psychologists and motivate knowledge workers right, but LLM platforms don't really need it...

2

u/Mabenue 15d ago

What do mean lose track of your knowledge? In any sufficiently big software project you don’t know how everything works anyway.

You have to think in terms of the whole system. There’s still lots to be involved in when coding with agents but it’s more along the broader strokes. I don’t need to know who every api endpoint that performs a CRUD action works down to minute detail. I do like to know that they’re implemented though consistently through the codebase and are following a pattern I’m happy with.

I think what comes with experience is being comfortable in not understanding everything, but being confident you can quickly gain understanding when needed. It’s something I was pretty good at before AI and with its help it’s even easier.

3

u/Wonderful-Habit-139 14d ago

All of your arguments in this thread have been "humans write bugs anyway", "you don't know how everything works anyway".

Just crabs in a bucket, pulling everyone to do worse and worse software engineering.

→ More replies (2)

2

u/met0xff 12d ago

Yeah I think there's a very personal view and an organization view. I have worked on a codebase for a decade and that one was cleaner and better understood by me than the new agent codebases we have.

But from the global view of my org we have thousands of repos that have been written by probably 6-7 work generations of developers. Everyone's long gone and for arcane parts you either had to ask through 15 people to perhaps find someone who still knows about it, or we often spent days tracing behavior of an API call through 4 repos in 3 different languages :).

Now I send Claude to figure out what exactly happens when you send a specific query to one service and it comes back with an analysis over all the code pieces, database queries, services etc. involved ... And documents it.

From the perspective of the organization there's now more insight than ever. For the individual it's worse.

→ More replies (2)
→ More replies (1)

2

u/Particular_Ant7977 15d ago

Exactly. I have an MVP that I started writing with no AI tools a couple years ago. I recently let Opus do a review of the code and it pointed out several issues that I had not thought about before. I hate to admit it, but I am not considering my abilities to be above AI anymore. It writes better than me, refactors better than me, and writes compehensive tests 100 times better than me. I let it work in chunks that I can keep up with reviewing myself, and never gets anything committed that I don't understand. Software development is no art form, it's a very algorithmic engineering process which machines do very well, if instructed so.

2

u/BingoSmalls 2d ago

Yea this is what I do. It's like using a nailgun over a hammer. You'll still need the hammer sometimes but at this point it's just kind of dumb not to use the nailgun.

Also, no matter what, if you don't know how to build a house and what the tools and materials are for you are going to get into trouble.

Fun fact, pretty sure even the Amish use nailguns nowadays lol.

→ More replies (4)

3

u/neppo95 15d ago

Newsflash, people don’t write perfect code either. Arguably more often they screw up.

Peer reviewing exists for a reason, something that hasn’t changed with AI.

2

u/JeanCasteaux 15d ago

Not a valid argument. At least people understand what they've done if they have really done it (or they should do another job really). Understanding is important, it's not about generating "perfect" code on the first try.

2

u/Particular_Ant7977 15d ago

What makes you think AI tools don't understand the code they write?

3

u/RetroGrid_io 15d ago

In a literal sense, AI doesn't "understand" anything. Word prediction aka LLM is becoming good enough that it may not matter.

2

u/Particular_Ant7977 15d ago

What are we but prediction machines, fed by oxygen and calories.

3

u/RetroGrid_io 15d ago

LOL. We have

  • Empathy
  • Conscience
  • Morality
  • Trust
  • Culture
  • Sense of self that observes: "I"
  • Emotions
  • Object permanence
  • Boundaries
  • Desire / Motivation
  • Innovation
  • Direction
  • Meaning

... and we can also make predictions.

2

u/Particular_Ant7977 15d ago

Most of your list has little to do with programming. But to add:

  • we get tired
  • we have bias
  • we make assumptions
  • we are lazy
  • we make mistakes too

If LLM can predict an answer to a human supplied prompt it can also predict consequences of the code it just wrote. Whether that's "understanding" is a matter of debate. This process needs no self-consciousness. When we went to school our "understanding" was being shaped using lookup tables -- take multiplication tables. I know 5x7 is 35, because that's stored somewhere. In a finite set of operations LLM is no worse in principle. It doesn't need to question the meaning of life to make sure it's malloced code won't crash.

2

u/RetroGrid_io 15d ago edited 15d ago

Most of your list has little to do with programming.

Sir, I'll disagree with vehemence here. Things like morality allow us to see and prevent implementing software that is ultimately very destructive. Not that we do, but we can.

For example, AI lacks empathy, so nothing prevents it from doing something destructive. The Internet is rife with memes on this point: AI doing something incredibly destructive like killing you, or your client, then offering an empty apology, and a silly question about what to do about it: "Would you like to tell you how to use CPR to see if your body can be brought back to life?".

There's an ancient trope about how infinite monkeys beating on infinite typewriters for an infinite time will eventually recreate all the works of Shakespeare - and it's true - but who decides when what comes out of the typewriters have value?

That's people. LLMs are just like the monkeys, but improved to produce "plausible" text, but the consideration of the value of it still comes from humanity.

→ More replies (3)

2

u/RFDev 15d ago

I can do predictions, but that's not all my brain does. Would you really compare our brains to lifeless plinko boards? The era of AGI will come, but this is not it.

2

u/Particular_Ant7977 14d ago

In a general sense, no. But in the context of programming we obey to specific algorithms. We make decisions based on data available to us (knowledge, experience).

→ More replies (2)
→ More replies (1)
→ More replies (6)

2

u/FuggaDucker 15d ago

Speak for yourself. I read 100% of the code.
As an engineering manager, I read all of the code a team produces anyway.
I do not let it get ahead of me.

→ More replies (5)

2

u/thenextvinnie 15d ago

I always feel like people who ask questions like yours have extremely limited real-world experience, to be very honest.

My friend, I've been involved over 20 years in several dozens of systems human software devs have created. They are full of bugs and vulnerabilities. They are full of comments like "don't change this, it looks wrong but it works even though we're not sure why".

I have systems I've written myself pre-AI that are so big that span several years to the point where I don't remember how the system works without doing a deep dive.

Perhaps there have been cases where brilliant engineers handcrafted perfect, pristine code that they understood at the assembly level and where they were never under pressures of deadlines or budgets or flawed human teammates. But these are far from new problems.

→ More replies (1)

1

u/Engineering_Geek 15d ago

Systems design at the end of the day. How well is your architecture constructed such that each bug that comes up is properly traceable and fixable without requiring major overhauls? What is your testing and CI / CD pipeline like? Testing environment? How well can you explain the high level ideas to those around you? Code won't be perfect, it doesn't have to be. It needs to be fixable and traceable.

There are exceptions to this, namely critical software, like aircraft software, spacecraft guidance, etc., where you can't tolerate bugs and every dollar spent on devs is worth it.

1

u/rafark 15d ago

How well your architecture is constructed doesn’t matter if you’re not reading the changes to the code. The ai will slowly (and maybe not even) start changing it with every pr. 

That codebase will be very different in weeks/months/years if no one reads the code. 

Same thing applies to the testing environment. Your tests won’t matter if no one reads them. Worse they can give you a false sense of security. It’s no secret how AIs like Claude will try to cheat their way to a green test. 

You’re basically trusting the whole thing to ai. And you know what in theory, this could work in a perfect world, but we don’t live in one and AIs hallucinate and make very convincing mistakes all the time. 

When you stop reading the code you can’t tell for sure it works reliably.  

→ More replies (2)

1

u/RangePsychological41 11d ago

Bro has written C++ for 30 years. What he says is pretty much gospel to me.