Let me lock code from further change

Feature request for product/service

Cursor IDE

Describe the request

I want a way to prevent teh agent from touching certain parts of code without approval. I’ve fixed the same parts of code 12 times already and when they are working on something entirely unrelated, they break something and I spend an hour trying to get them to unbreak the thing.

or have some kind of instant rollback, without having to push to git after every single change

Operating System (if it applies)

Windows 10/11