Collaborative search for effective "Rules for AI"

A thread to share and collaboratively figure out effective model instructions.
That is “Rules of AI”, a parameter found in Cursor under the “More” tab of the “AI Panel”.

My current one is “No comments, unless crucial information”.

Different instructions can serve different goals, so I recommend sharing a bit of the goals/context along with the instructions.

3 Likes

This is what chatgpt came up with when I told it what I want. I thought well written text would be better for the model to understand. Is it too long? It does work but I need more time to be sure of the gain.

"Please generate code snippets in Python that prioritize both conciseness and efficiency. Optimize the code for execution speed, while keeping in mind that sacrificing readability for extreme optimization is acceptable within reason. Avoid including comments in the code. If there are multiple ways to achieve the desired outcome, choose the one that strikes the best balance between performance and maintainability.

Please account for potential edge cases, and prefer built-in Python functions and libraries where appropriate. Aim for code that a seasoned Python developer would find both performant and comprehensible."

1 Like

One of the best GPT Rules prompt I currently use.

3 Likes

I have been experimenting with various incantations, and I’m not convinced they will have much of an effect until there’s a more general purpose tree-of-thought (ish) protocol so the chat agent has a “scratchpad” to work in.