Mono repo and cursor rules

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

We use a symlink trick in our monorepo to share certain rules between the root and the sub-packages.

We have a postinstall script that symlinks the root .cursor folder into each package, allowing our developers to work either from the root or within a sub-package independently (without requiring the root to be in scope).

This technique currently works, and it seems you’ve implemented (please confirm) a system that prevents duplication of all symlinked rules when working from the root. I believe you remove strictly identical rules from the context?

However, this is more of a workaround. It would be great to have proper built-in support, something inspired by Node.js module resolution—where Cursor would navigate up the folder hierarchy, picking up rules until none are found.

Steps to Reproduce

Create a monorepo and define rules at the root. Then, open a sub-package in a new window (without the root in scope) the Cursor IDE doesn’t detect any of the defined rules.

Expected Behavior

Cursor should navigate upward through the folder structure until no rules are found, so developers only need to define rules once and can avoid using symlink tricks.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.43
VSCode Version: 1.99.3
Commit: 8e4da76ad196925accaa169efcae28c45454cce0
Date: 2025-10-30T18:49:27.589Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

For AI issues: which model did you use?

all

Does this stop you from using Cursor

Yes - Cursor is unusable

hi @Moumouls and thank you for the detailed bug report.

Cursor currently detects and applies rules in a top-down manner within the project folder hierarchy you open in the IDE. It looks for .cursor/rules folders starting at the project root and down into subdirectories, but it does not traverse upwards to parent directories outside that project root.

Built-in support for upward traversal and merging of rules from parent folders outside the current project root is not part of the current feature set, this would be a good feature request.

hi @condor so can you redirect it as a FR ?

Could be an easy win for an AI agent internally on your side to implement this feature

@condor can you please confirm the fact that Cursor perform some special check on symllinks or avoid strictly equal rules in the context ?

I will have to check that separately about deduplication.

Changed this post to Feature Request as well and we will consider it.

1 Like

Hi @condor , do you have news about deduplication on rules ?

It’s likely that it doesn’t deduplicate.

And any special handling on symlinks ?
I think it could be an easy fix on your side to prevent duplicate rules in the context with strict match content. It could save a huge amount of tokens

I do not see that for now. I agree it would be a good feature request.

Is there a chance the FR will be implemented soon? At Cursor’s scale, it could save billions of tokens and potentially $$$$ for customers.

I do not have a timeline for now but we will consider it.