AI Coding Agents Can Only Add Code? Dev Shares Refactoring Workarounds

julianharris · x · 2026-08-01

Developer Julian Harris shares his practical experience regarding the observation that AI coding agents are often "add-only." He notes that the only time he successfully gets an AI to refactor is by using a two-step strategy:

He quotes a tweet from developer Victor Taelin to illustrate the point: when asked to remove an unnecessary function, the AI stubbornly refused, inventing justifications for why it was needed. This highlights the current limitations of AI coding tools in understanding and cleaning up complex code logic.

Original post →

More from coding & agent

coding & agent channel →