|
|
|
|
|
by vidarh
73 days ago
|
|
If a human produces tech debt, do you think a human can't refactor? Most of the time a human works over code multiple times, and still produces tech debt. Give an AI agent enough time, by prompting it multiple times, and explicit instructions to look for and address tech debt of various forms, and it will. |
|
In my experience, an agent will rarely recognise a common pattern and lift it into a new abstraction. It requires a human with taste and experience to do it. For example, an agent will happily add a big amount if branches in different places of the codebase where a strategy pattern or enum would be better (depending on the language).
If you have a working prompt or harness that ameliorates this, I'd be glad to see it.