Yes that’s pretty much how I’ve used AI, though phase zero and one had to be hand-coded until there was enough code for the AI to iterate off. Hand debugging and then showing the AI helps to narrow the number of errors, and how to triage for the next run.