The framing of "replace" misses the more interesting question: which parts of the engineering role get absorbed first, and what grows in their place?
My bet — the parts that shrink fastest are the ones that are already mechanical: scaffolding new projects, writing boilerplate, translating specs into CRUD. The parts that grow: judgment calls, systems thinking, knowing when not to build something.
The engineers I've seen thrive are the ones treating AI like a force multiplier on their decision-making, not a threat to their typing speed.