I think a useful security feature would be allowing us to pass a custom regex (or even a callable function) that can block API requests containing sensitive data before they are sent to Cursor’s servers / LLMs.
Even though .cursorignore already handles files like .env, this kind of interceptor would add another configurable and unit-testable layer of security. It would make it much less likely that credentials or other sensitive values leak into the LLM context through logs, printouts, or accidental inclusion.
For example, a company might configure something like:
For companies with unique sensitive terminology, this could also be extended to filter domain-specific patterns, turning Cursor into a safer enterprise-ready setup.