Overwriting of variables

I am currently doing a lot of Python programming in Jupyter notebooks. It is rather imperative in the sense that I am exploring some data analysis projects. Mainly using Sonnet 3.5 and Ctrl + K to prompt, and I am getting really good answers, however for some reason the model loves to overwrite variable names, which I think is bad practice. Is there a way to limit this apart from writing “do not overwrite variable names” with every prompt?

If you are on 46 version there is a Rules tab in cursor settings.

It makes no sense to have to add this to every rule file we use.

This was not such an issue until few days ago where so internal and external issues caused productivity loss.