A real question - who or what are we building software for? If we're using AI to build apps that are just used by other AIs, then yes, why does anything need a UI?
But while AIs are doing all the creating and all the consuming, what exactly are us humans doing all day? Do we really think software for humans will shrink to just an Agent interface?
Jakob Nielsen has been banging the drum that we're going all end up with custom interfaces that will be tailored to what our current task is at that time. How this will work is TBD, but if I recall correctly, he's basically agreeing with your take around agents as an interface.