Project Rules Confusion

Okay, so I’ve read the official docs on Cursor’s site and I’m still quite confused about Project Rules. Here are my questions:

  1. Are project rules brought into context using agent mode automatically based on globs and/or descriptions? Or does the model have to specifically fetch the rules and read them first?
  2. If they have to be fetched, is the model fetching them based off of the description, the rule content, or the globs? Which takes precedence over the other?

based on descriptions :slight_smile:

the glob is just for making sure it does apply only to file types you want. e.g. if you have frontend and backend files you do not want to mix in one rule.

Okay and are they automatically brought into context or do they have to be manually fetched, for example, if using agent mode?

Cursor team says that the agent processing checks which rule would be applicable, but they also mention that users can reference the rule file directly.

To clarify, i will ask them in the relevant thread which is now true :slight_smile: .

Confusingly sometimes it says “Let me check the rules” and they you see it load the rules then other times it seems to do it behind the scenes without acknowledging it loaded the rules but seems to be following them.

I would be really useful to have everything that has been pulled into context (like the rules) visible like chat system does.

1 Like

Yes I fully agree with this. Especially now that we can split rules depending on topics. The agent not piccking up the appropriate rule is the main source of hallucination for me.