Your loop is wrong, as it will go ‘intent -> llm(?) -> result’. Which doesn’t need to compile, but the llm its own black box of magic function that may or may not reproduce the same result based on intent. Also I would think the number of tokens would be concerning, as your example prompt looks 3x larger then the code snippet.