Wonder how far you could get by closing the loop and sending terminal outputs to GPT automatically.
Prompt with a natural language description of a target program, instruct it to decompose the problem into increasingly small actionable steps, give it preprocessed terminal output prompts in response and let it iterate until it's satisfied