They're relatively simple, they do the task they need to and then they wait until they're needed again (or not).
In the past I wrote them, then forgot how they worked, until I needed them again, relearned what I did and adapted it.
Now I just don't have to know how exactly they work, I just get an AI to read the documentation anytime I need to reuse the project and I'll query the AI to fill in the details and to make changes and I ask the AI to run the code and debug it.
Perfect use cases for today's AIs. Doesn't even require SOTA, I can run comfortably on a Sonnet 5 or a Qwen 3.8 and it'll do exactly what it needs to do without making too many mistakes.
Not all code is large corporate code bases.