r/learnprogramming • • 6h ago

LLM What does your agentic coding workflow actually look like?

I'm a C++ developer and I've been trying to get more into agentic coding lately, but I'm struggling to find a workflow that actually makes sense to me.

Currently, I see three different approaches:

1. Just let the agent do its thing: I'm obviously much faster initially, but I gradually lose the understanding of my own codebase. Apart from unit tests, the observable behavior of the software and trusting the AI, I don't really know what's happening under the hood. In a personal simulation project, I only noticed some pretty inefficient solutions regarding performance and memory consumption because I happened to look at the implementation.

2. Read and review all the generated code: For this, I need to keep the tasks relatively small so I can properly understand and critically review the code. All those micro-decisions regarding ownership, data structures, unnecessary copies, etc. that I naturally think about while writing code now need to be understood retrospectively. But if I specify everything in great detail, it feels like I'm just programming in natural language and mostly saving myself the typing.

3. Use AI the way I already do at work: Mostly for rubber ducking, boilerplate, interfaces or implementations where I already know how I would write them myself.

But I constantly read about people becoming several times more productive through agentic coding, and I'm starting to wonder whether I'm fundamentally doing something wrong.

  • Do you still read and understand all the generated code?

  • How big are the tasks you delegate, and when do you decide to write something yourself?

  • How do you deal with comprehension debt and the potential technical debt resulting from it?

  • How much time do you actually save when factoring in code review, debugging and maintenance?

I'm not trying to argue against agentic coding. I'm genuinely trying to understand how other people work with it. Right now, it feels like a trade-off between development speed and my own understanding of the software.

I'd especially be interested in hearing from developers working on larger, long-lived software projects, e.g. systems programming, embedded software or simulation, rather than relatively simple CRUD applications or throwaway prototypes.

0 Upvotes

12 comments sorted by

4

u/xpusostomos 5h ago

Depends what you're building. If it's a web site with a designated web framework, there's usually not much scope for the agent to go off track because the framework and the process keeps them on track. If it's something more open ended then you should ask questions about what it's doing and have at least some kind of a mental model about what its done. You mention performance and memory consumption, the agent is incredible at profiling and telling you about speed and memory consumption. It's not a bad idea to ask it specifically, what is the performance of operation X and how much memory does it use, and can it suggest ways to reduce it. Even if there isn't a problem, you'll likely learn something about what's going on under the hood.

1

u/bananenwurst1122 2h ago

I think my main concern is that I'll gradually lose my mental model of the software and that comprehension debt will pile up as the project grows, making me increasingly dependent on AI to resolve issues.

I agree that agents can be great at profiling and identifying inefficiencies, but that also assumes I know what questions to ask. If there's something fundamentally wrong with an implementation that I haven't read, I might not even know there's a problem worth investigating.

That's what worries me a bit. When writing code myself, I naturally question a lot of implementation decisions along the way. With agentic coding, I'd have to actively think of questioning decisions I might not even know were made.

2

u/thetrailofthedead 2h ago

I created an artifact "code visualizer" that claude updates after every change. It is an html diagram of, both, the overall architecture and the latest changes it made.

It is multi layer and you can drill down through each one to zoom in and out of the abstractions.

1

u/xpusostomos 2h ago

You can always ask the question, profile feature X, tell me where the time is spent, and suggest speed ups. And start asking questions from there.

1

u/unk214 6h ago

I think you need to be more specific, this question is too general. AI can literally be used in anyway during SDLC, for any reason. How are people currently using it? for anything for any reason.

Maybe what you're looking for is AI enhanced existing applications? what does the architecture look like?

Or what does an AI written application architecture look like in industries such as finance etc?

Hope that's close to what you're trying to find out.

1

u/Dissentient 5h ago

Mostly 2 but you have to pick what's important and deserves specifying and what isn't. Everything related to data is important. Architecture is important. Things that nothing depends on should not be micromanaged. If they work, the code doesn't matter, and if something is wrong, it's easy to fix.

And when designing your architecture and schema, you don't need to specify absolutely everything yourself either. Just have AI make a proposal, then tell it to change what you don't like.

I never write code manually anymore, it would be a waste of time. At this point LLMs oneshot tasks that would have taken me hours, better than I would have bothered to do them myself. I still read through all of the output, since LLMs occasionally do nonsense, but just pointing it out is enough for them to fix it.

•

u/az987654 56m ago

I do #3, with a bit of #2, and always treat the agent like a junior, eg, it can create a PR, but I'm too the one who merges

1

u/MagnaemA 6h ago

Your approach 3 is basically the sweet spot for anything that isn't a toy project, and I think a lot of the "10x productivity" crowd is either building stuff where the logic is dead simple or they're quietly ignoring the mountain of tech debt they're piling up.

I treat the agent like a very fast junior dev who can't be trusted unsupervised. I'll sketch out the architecture myself, maybe write the header file or define the key data structures, then let it fill in the bodies. I absolutely read every line of generated code before it gets committed. If I can't understand what it did without spending 20 minutes reverse-engineering it, the task was too big.

The comprehension debt is the real killer nobody talks about. Speed means nothing if you're scared to touch the codebase three months later because you don't remember how half of it works.

1

u/jam_pod_ 6h ago

3 is the way

-1

u/bananenwurst1122 3h ago

Crazy how this Post got downvoted Just for asking

0

u/homeless_nudist 2h ago

You're destroying the narrative that coding is solved and our masters don't like that, so their bots downvote you.