News for hackers. Stuff that matters.
Re:Posthog/.cursorrules by electroly on Sunday March 09, 2025 @01:37AM (#43306809)
My .cursorrules files tend to be longer, but I don't use it for any of the stuff that this example does. I use to explain project-specific details so the model doesn't have to re-figure out what we're doing at the start of every conversation. Here are a couple examples from recent open source projects:

https://github.com/brianluft/social-media-translator/blob/ma...

https://github.com/brianluft/threadloaf/blob/main/.cursorrul...

I tell it what we're working on, the general components, how to build and run, then an accumulated tips section. It's critical to teach the model how to run the build+run feedback loop so it can fix its own mistakes without your involvement. Enable "yolo mode" in Cursor and allow it to build and run autonomously.

Finally, remember: you can have the model update its own .cursorrules file.

Re:Posthog/.cursorrules by rennokki on Sunday March 09, 2025 @03:51AM (#43307099)
> Refer to me as "boss"

I chuckled. This works so good.

Re:Posthog/.cursorrules by lgas on Sunday March 09, 2025 @05:48AM (#43307667)
Does it cut down on it asking you do to stuff that it can do itself?
Re:Posthog/.cursorrules by happytoexplain on Sunday March 09, 2025 @09:53AM (#43309076)
Note that you have a typo in your first config: "complaint"
Re:Posthog/.cursorrules by electroly on Sunday March 09, 2025 @04:26PM (#43313390)
Nice catch, fixed now. Thanks!