The worst thing you can do with aider is let it autocommit to git. As long as you review each set of changes you can stop it going nuts.
I have a codebase maybe 3-500k lines which is in good shape because of this.
I also normally just add the specific files I need to the chat and give it 1-2 sentences for what to do. It normally does the right thing (sonnet obviously).