I agree with you that AI agents need to be corralled and led in a tight path to get to reusable software.
I wrote about this very thing recently[0].
[0] https://levelup.gitconnected.com/you-are-bugs-improving-your...