Hi,
I’m setting up a workspace containing multiple projects and need help understanding how Cursor handles rules. I want to apply different rules to individual projects while also having a set of global rules that apply across the entire workspace. I’d like to understand how Cursor processes these rules, what takes precedence when there are conflicts, and whether it’s even possible to set workspace-level rules.
Thanks!
Hey, currently, codebase indexing doesn’t work fully for workspaces where the files are not within the same base folder!
We’re hoping to have better support for this soon, but for now, you may notice some decreased performance in workspaces like you hope to use.
Regarding project rules, the AI agent evaluates each rule and decides which ones to use. The globs are the most precise way to define this, but your description for each should be a statement the AI can use to decide if the rule is needed, such as:
“Always use this rule”
“Use this rule when creating frontend React files”
" Use this rule when planning a new feature"
With a bit of experimentation, you’ll find what works best for you!