.cursorrules not reliably sent with each prompt

I have to keep reminding cursor to re-read it’s .cursorrules file as it seems to forget quite frequently. I wonder, is it being sent as part of the prompt or is there something I need to do. For now I moved the rules into the Rules for AI setting, but I’m wondering if that is sent with every prompt or only at the beginning of a session.

Hey, this is a tricky question. Usually, when rules are set for the model, it should follow them. However, if the context window overflows, some data might be lost. To ensure the model retains the context, you can include the rules in the chat or Composer context. Another option is to use a specific marker. For instance: Require the model to start each response with “Yes, sir.” If this marker is missing in a response, it’s a clear sign that something went wrong, and you should remind the model of the rules.

Thank you, I’m not sure what you mean by include rule in the composer context, could you elaborate on that please

Attach the file with Cursor rules to the chat context, just like you do with other files.