I don't think software engineering is going to die. Coding, as we know it, is going to change a lot. Short-term pain, but in the long term, we are likely to see an explosion of software.
Having said that, AGI could change things - but then every profession would be dead.
Check this out:
https://www.youtube.com/watch?v=OfMAtaocvJw