AI Agents and the Refactoring That Never Happens rosenfeld.page
Rodrigo Rosenfeld Rosas identifies a signal we are quietly losing. Refactoring rarely happened because a metric said so; it happened because someone got lost in the code and that confusion was the prompt. Agents do not get lost, so the prompt never fires and the mess accumulates unremarked.
The cost does not disappear, it changes form. As he puts it, an agent that never gets lost still pays a price for a mess: the more tangled the code, the more context it has to load for every change, which is tokens and latency and more room to hallucinate.
The deeper risk he names is not bad output but degraded human capacity, teams that no longer understand their own systems and reviews that become a formality. His prescription is to reimpose the checkpoint deliberately, by asking the question the confusion used to ask for you and by instructing agents to raise it. Clean code becomes an economic argument rather than an aesthetic one. Pairs with understanding is the new bottleneck and the case that clean codebases matter more than ever.