Then let me introduce you to a useful concept:
https://en.wikipedia.org/wiki/Separation_of_concerns
I've learned with LLM coded apps to break stuff into very small manageable chunks so they can work on the tiny piece and not get screwed by big context.
For the most part, this actually produces a cleaner codebase.