@okias Linux has plenty of code that is difficult to maintain, and it's had this since before AI. *glares at the TTY system*
I would say a lot of horrible architectural decisions are encoded in the Linux kernel in general, like netlink sockets (they're really awful to work with), sysfs is not a very discoverable or often well-documented mechanism, etc.
I worry that this already bad situation will only get worse, it's not a situation most people see because few people interact directly with the kernel.