Cannot git ignore cloned Rules Repo

Background in these posts:

I have been cloning my Rules repository into a number of repos. Since the rules are cloned, I decided to git ignore them. If I do this, the Agents no longer see the rules clone. I tried creating a .cursorignore file to allow the Agent to see the cloned files but this does not work.

In summary, I created the Rules repo as recommended by Cursor Staff as a best practice. This function was then deprecated so I created a script to maintain the clones. Since these are all clones, I added the folders to gitignore. If rules are git ignored, the Agent will not load them, even if a .cursorignore file is created to allow the Agent access.

Seems like this is no longer a best practice since it is now somewhat convoluted. The last time I had this volume of rules defined within Cursor, I started having context problems. Will rules repo support return at some point? Can Cursor be updated to load the files as specified in .cursorignore? Is defining a large number of rules in Customize no longer a context problem? Help.

Hey @Mark_Klimp, you can keep the clones gitignored. Rule loading follows .gitignore and doesn’t apply .cursorignore re-includes yet, but it does read a .rgignore file. Add one at the root of each repo that re-includes the folder you ignored. If the .gitignore line is .cursor/rules/imported/, the .rgignore is:

!.cursor/rules/imported/

Then run Developer: Reload Window from the Command Palette and the rules should be back in Customize > Rules. .rgignore can go in .gitignore too.

Or drop the per-repo clones: Cursor also loads .cursor/rules from every parent folder of the open project, so one clone above all your repos (say ~/code/.cursor/rules/Cursor-Rules) covers them all. Those rules keep their own apply settings, unlike a long list of User Rules, and show under User in Customize > Rules.

Rules not following .cursorignore is a known issue the team is aware of. The GitHub import isn’t back in Customize, and I don’t have a timeline for it.

I realized I should have consulted the Cursor docs before I submitted the help request and decided to loop back to it. FYI the above picture is what I received.