Yeah I must be missing something again. Comparing human to AI here seems to be fundamentally wrong. A human will learn over time and improve their mental model of a problem and ability to code. An AI agent for the most part is fixed by its model. I just don't see how pointing an agent at AI generated code to refactor without direct human guidance results in better code.
Maybe you can describe what the various forms of tech debt are that you are talking about?
Maybe you can describe what the various forms of tech debt are that you are talking about?