Can we reference docs/files in the rules?

Hi all!
I have a hard time understanding how the rules and context such as code and docs are working together.

From what I understand:

  1. Rules are added to any chat
  2. When manually adding files, those are also added
  3. When searching in codebase, some keywords (which ones?) are searched into the embeddings, and relevant files added to the context.

What about docs? I understand I need to do @Docs and then reference the docs I want, and it will search into the docs embeddings like with full codebase chat?

Now, I would like to automatize some of these directives, and the way to do that is use the cursor rules. However, we cannot reference docs or files in the rules, so that’s a no go?

Are you folks constantly referring @docs and files in prompts? This seems the most limiting factor to me now, perhaps I’m doing it wrong?

5 Likes

Yep. I’m in agreement with you. It’d be a nice feature to be able to reference these things in the cursorrules. Would save lots of time

This is a VITAL feature to maximize the value we get out of Cursor. The ability to pipe information and references together needs to be first citizen in the futuristic LLM era. Huge +1, would like to know if this is on the roadmap.

Inability to reference files or docs in rules, or Notepads for that matter is truly a limiting factor.

Had a post about this some time ago, but it didn’t get any traction: Reference files and folders in Notepads and .cursorrules?

Any progress on this? Would be amazing not to have to @ each doc every time.

Check link to my topic above, turns out there’s a solution, at least for Notepads.

Thanks for sharing @jayarjo … I think notepads are gone as well in the new version (as did the Review tab) … Agents are nice but that new version feels like a regression to me…

1 Like

I just got auto-upgraded to the new version and - yes, at the very least it’s full blow to my established workflow :confused: