I sometimes have to decide between running Claude Code headless with a prompt or let CC generate an application based on the prompt. (coining: Codification Threshold tradeoff)
The tradeoff is that the prompt is non-deterministic, but also more flexible. It can handle unknown situations. The generated code executes much faster and reliable for known situations.
If auto-learn would reduce the non-deterministic nature, i.e. chance of failing, that would speed up software development.