I find that restricting it to very small modules that are clearly separated works well. It does sometimes do weird things, but I'm there to correct it with my experience.
I just wish I could have competent enough local LLMs and not rely on a company.