Libraries are really built for human beings, not super intelligent machines. ORMs are built because I don’t like to and can’t write complex sql with every edge case.

Same with a lot of software, software libraries are designed to work with the deficiencies of the human mind.

There’s no reason to think ai needs these libraries in the same way

Even in your scenario LLMs could write super optimized libraries (not intended by for humans) to do common tasks and share the code between them.

I’m not saying the future can’t get to an ai just producing everything. I’m saying it’s just plain inefficient to keep solving the same problem over and over.

I agree with part of this (see my comment above). That said our limitations were also how we produced mathematics. Categorizing world into fixed concepts is valuable i'd say.