It's okay to grieve. The old way of doing things is dead.
At least if you look at it from an economic perspective. You can still hand-craft code if you enjoy it. It just doesn't make sense in a professional context anymore.
So what changes?
When the code starts writing itself, the work moves to the layer above it. You will simply type less and decide more.
So writing becomes specifying and the clearer you describe the outcome, the better the result will be.
Implementing becomes reviewing. Our job is to judge what was built, not to build every line.
Solving a ticket becomes designing the system. Boundaries, the data flow and what plugs into what now matter more than ever.
Knowing syntax becomes knowing what good looks like. Taste, tradeoffs and UX are now the bottleneck.
What does this look like in practice?
The booking feature on this site was built this way. I wrote the full concept and a spec. I set the rules: how it behaves, how to treat availability, to keep calendar connectors pluggable, what tests should be included.
Then an AI agent built it and I reviewed and audited the result in detail.
Most of my time went into writing the spec, the tests and the review. Not the code.
The catch
Dead doesn't mean useless. When you stop writing every line of code, you still need to understand them.
Abstractions leak. An ORM for example saves you from writing SQL. Until a page takes eight seconds to load.
Today you would ask an agent for a performance audit. It will hand you a diagnosis and a fix and it will probably sound very confident about it.
Whether that fix is real, or just a cache that hides the problem, is still up to you.
Sometimes it will be subtly wrong: a missing access check, a cache that never clears, a query inside a loop. You only spot that if you understand the layer underneath.
Learn the layer below
Moving up only pays off if you can still drop down.
The developers who gain the most from AI won't be the ones who stopped understanding code. They'll be the ones who understand it well enough to stop writing all of it.