There is a limit, after a few 10,000's of LOC ai projects start disintegrating and becoming unmanageable.
I believe tinygrad still caps the total LoC in their repository to 10k
10,000 LOC, hell my LLM can do that in a day!
Current project has over 60,000 LOC, I find using an antagonistic agent code and architecture reviews are really handy for keeping things grounded.
Depends on the language, obviously. Some languages are more verbose than others, and relatedly, some languages force simple code structures that are less likely to become unmanageable.