Is it possible that you’re ignoring .env files via a .cursorignore file? The default global ignore also includes **/.env.*, which would also match .env.example. See the docs on ignore files.
If you want the agent to see .env.example specifically (while still ignoring actual .env files with secrets), you could update your global settings to be more specific:
.env
.env.local
.env.*.local
Or use a negation pattern to re-include example files:
My point is that is is not necessary to make the agent not aware of the file existence. It could be useful for it to be able to at least diagnose the “no .env file” problems, and it can be done without letting it actually read it