Why ask the AI to deliver code when you can ask the AI to simply perform the task. In fact for most tasks I can think of if a human computer interface were needed that human role would be a candidate for assimilation and replacement by an AI. AI is the ultimate software as a service or 'service as a service'.