This is part 4 of 8 of the free series AI with Angular: agents in your codebase , first published on tt-tech.io .
The previous part gave the agent a task file for a new feature. A migration is harder, because the code is already in production. Ask an AI coding agent to modernise a legacy Angular module and it answers with a plan in thirty seconds.
In the runs I have seen, that plan opens with "delete". Here is why it fails, the plan that works, and the five-minute review that tells them apart.
The agent's plan, and the three places it breaks
The concrete case is the demo repo's libs/legacy/transfers : an NgModule , a component with *ngIf , manual subscriptions, markForCheck() calls and its own table of transfer limits.…