I had this idea earlier today and wrote this article:
https://github.com/Dicklesworthstone/llm_multi_round_coding_...
In the process, I decided to automate the entire method, which is what the linked project here does.