Do you ask to AI agent thoroughly document the architecture, APIs, protocols, and data flow as you go? Do you use planning mode in the coding agents?
Personally I have good success with coding agents when I spent significant time with the agent building out a precise specification document that describes in detail what I want to do, how it should do it, how the data is formatted, protocols to use, etc. And then I ask it to establish concrete step-by-step development plans. I'm only working on these projects in my spare time but I might spend 20 hours or more on this. Then after both I and the agent reviewer are satisfied do I start it generating code. Usually code generation is a tiny fraction of the planning time. The more precise the specification is, the faster and more accurate the agent can generate code to fulfill that specification. I review every code change the agent makes and I never let it commit to git without my authorization. Often I'll push back on a coding choice the agent selected and ask it for a detailed explanation, and often I'll tell it to do it a different way (it always apologizes for what it did tells me I'm brilliant for my suggested change when I do that but whatever).
This process may not generate code as fast as vibe coders crank it out, but it's more than twice as fast as I could do it, even with the long planning sessions.
There are some interesting youtube videos by "No Place Like Localhost" on this type of spec-diven agent coding.