I have been building code with AI. I would start wit a simple prompt to gnerate the code with Bing Chat then ask Claude AI to improve it. Then response I would feed to Bing and then new code would be generated by Bing. After a few iterations I would test the code. I would feed the usual error to Bing and the code change would be made. If the problem persisited I would ask Claude. But this was always the tricky part. I could get stuck chasing around the same error, fix. In one case I asked Bard and it resolved it. But sometimes this would likely be the point were you'd need the human expert to resolve these error/fix loops.