The code written by AI in most cases is throwaway code to be improved/refined later.
Its likely to be large, verbose and bloated. The design of some agents
have "simplify/refactor" as final step to remedy this, but typically
your average vibe coder will be satisfied that the code just compiles/passes the minimal tests. Lines of code are easy to grow.
If you refine the AI code with iterative back-and-forth questions,
the AI can be forced to write much more compact or elegant version
in principle, but you can't apply this to most large systems without breaking something,
as AI doesn't have context of what is actually changing:
so e.g. an isolated function can be improved easily, but AI can't handle when complexity of abstraction stacks and interfacing multiple systems, typically because it confuses states
where global context is altered.
Kerrick|17 days ago