Accelerating legacy code migration with AI agents