Composer not following .cursorrules

I was under the impression that the composer uses the .cursorrules file. Its becoming more apparent lately, that it does not.

1 Like

Same here. Hilarious

Hi @ianjh

It’s strange, but everything’s working fine for me. Could you check? Here are my rules for AI: Start each response with “Yes, sir.”

Here’s a screenshot of the response:

Could you also let me know which version of Cursor you’re using?

Hi, I’ve just upgraded so whatever the version was previous to 0.42.4

I’ll try adding the Yes Sir into the cursorrules file and see how we get on.

I’ve had a nightmare with composer lately, but i’ll save that for another thread.

Thanks for your response.

1 Like

Hi, I added this statement to the cursrorules file:
Start each of your responses with: Yes, sir.

I’ve tested it by a) adding the cursorrules file into the comopser and b) without adding the file into composer and it never mentions ‘Yes, sir’

Do I need to reword the request differently, maybe?

Using v0.42.4

Hey, you don’t need to add the .cursorrules file to the context, it should work without it. Try not adding the file and ask a question in Composer.

cursor rules don’t work for me either. is there a particular format for writing them?

.cursorrules definitely work for me. Before I started using it, Composer was starting absolutely blank, with no understanding about the project whatsoever. Now I feel immediately that it does, so that would be .cursorrules in action.

Check the naming of the file. It should reside in your document root. “Cursor Settings > Rules for AI > Include .cursorrules file” should be enabled.

1 Like

Do you use a numbered list? do you wrap them in double quotes? is there any specific format for writing the rules? i have the .cursorfiles enabled and all, but it doesn’t seem to be following my rules. so i’m wondering if there’s a specific format it accepts.

I believe any format should do. It’s just a prompt that goes in first.

1 Like

Okay. Thank you.