Plenty of people claim you can get a 100% accurate result from a single prompt. I see it differently. Getting to that prompt, while you narrow the task down and describe it, takes more than a hundred attempts.
Every one of those attempts has to be paid for. Only one of them, the very last one after you have debugged everything, gets you the result you wanted.
So when you work with AI, keep in mind that debugging is not free and costs serious money.
Working with AI agents, you sometimes do not even notice how many processes run in parallel. Here is my typical workflow: agent, code editor, tests, production.