I don't share anything with openai/anthropic that I wouldn't feel comfortable pasting into a web search prompt.
So no AI autocomplete I suppose?
I assume AI autocomplete may send any part of your code base or even all of it to a third-party.
Precisely. For work projects, I only send contexts I've specified myself (so I might copy-paste a chunk, clean it, then send), I don't let AI tools pick and choose what they need.
If I were using it for some hobby project or open source thing I would probably be more open to experimenting with sending random parts of the codebase.