Hackers and hobbiests will persist despite any economics. Much of what they do I don't see AI replacing, as AI creates based off of what it "knows", which is mostly things it has previously ingested.
We are not (yet?) at the point where LLM does anything other than put together code snippets it's seen or derived. If you ask it to find a new attack vector or code dissimilar to something it's seen before the results are poor.
But the counterpoint every developer needs to keep in mind: AI will only get better. It's not going to lose any of the current capabilities to generate code, and very likely will continue to expand on what it can accomplish. It'd be naive to assume it can never achieve these new capabilities... The question is just when & how much it costs (in terms of processing and storage).
Check out Fez if you haven't already. Also Tunic does a great job of starting out basic & breaking precedent.