When is the source code read by cursor?

I can’t find Information indicating when the code is loaded.
When the code is opened with the Cursor? Or when using some function?
To take care of security, I want to grasp it.

This might help you: Privacy Policy | Cursor - The AI-first Code Editor

And if you don’t want to index new folders by default you can disable that in the Codebase indexing settings.