Understanding and Automatically Generating the 4 New Rule Types is AMAZING

I am sure the documentation will be better updated soon - but hope this helps others - as its really a game changer in my opinion, and sets Cursor ahead of the competition yet again.

There are now 4 rule types serving different purposes, and cursor now also supports sub-subfolder organization!

Agent Rule - Agent Selects based on description, benefit is the whole rule is only loaded into context when agent thinks it should, so keep the description very clear so the rule knows when to use it.

Always - this is the replacement to .cursorrules, with the benefit of being able to have multiple files instead of one long one to keep it organized - this will get loaded into every context, so keep these lean!

Auto-Select - this uses glob patterns and not the description from the front matter, so good if you want a rule that only loads into certain areas of our code, or for certain file patterns.

Manual (Macro) - This is set up by setting description and globs blank, and autoSelect to false - this basically makes it so it only loads when manually adding it. I look at this as a better way of creating macros or notepads that can be source controlled.

I put a table together here in the auto generating repo readme with more details - [GitHub - bmadcode/cursor-auto-rules-agile-workflow](https://New Rule Types Matrix and Auto Rule Gen Repo) - the auto rule generator here has also been updated to conform to all of the new rules and not flake out on generation.

I put a video together outlining the 4 different rule types, use cases, and examples of using an updated automatic rule generator via AI Agent that has been completely updated to properly create a rule for you with the proper type and categorize it automatically [https://www.youtube.com/watch?v=vjyAba8-QA8](https://Cursor AI Just Got Smarter: 4 New Rule Types, Smarter Auto Gen, and Pro Tips!)

7 Likes

Thanks a lot for this!!

You cleared up some issues I was having with the auto-select rules.

I will adjust accordingly.

Keep it up :flexed_biceps:

Thank you - I should say, I have found that the auto select and agent rules can still be very flaky and always and manual are the most reliable at this time. I am not sure if they recently got a bit buggy - will see if they improve with random updates.

I noticed that as well, I am just using the always on and manual right now. Which is working great for me.

1 Like

Some info I had in another thread but for you or any that see this thread - its important to add the rules folder to .cursorindexingignore (I hope i got the file name right) - this helps a bit. If you modify any rule and do not either clear the project cursor cache in the settings or have this set to not index them, the rules get stuck in the original version after editing them (sometimes). Unfortunately what I have not figured out yet, is, does not indexing stable rules also reduce their performance.

It does remain to be seen - but to be honest - I think the future is in not havint to reuly on cursor rules somehow unless it becomes much more stable. And yeah - definitely the most reliable now is smallest set of rules as needed that are auto or manual. But lets hope it gets more reliable, the concept of agent rules and autoselect is so potentially powerful.

2 Likes

Hey, adding the rules to the cursor index ignore file helped a lot. Thanks a lot for the heads up.

2 Likes

Your welcome! Glad it helped, I have felt it did also but good to confirm others are reporting similar results!

1 Like