The other thing you need are strong guard rails.
I’m written in Elixir, so there’s a bunch of tests, test coverage analysis, module boundary enforcement, and linting to keep things in the rails.
The current 1400 test suite runs in about 2s.
When your agent tells you to look at or do something on its behalf to figure out why its not working, close the loop by giving it the the tools it needs to look at it and fix it itself.
This is a core skill you have to learn to build stuff with AI.
That and strong guardrails.