Cursor CLI: at least ask before code change?

I wonder why cursor cli allow code updates directly without ask for permission? I remember cursor agent does ask before take any action, but why cursor agent behave differently?

In both the CLI and IDE agent can change code directly. Also can it be that you enabled Auto-run in the CLI as well?

1 Like

cli does stop to ask before run any command though. but directly apply code changes is quite weird no? or at least provide an option for this?

It’s expected that code is edited directly. Running commands is different as it may remove critical info by accident and you are in control of approving commands.

For code, assuming you use git it can be restored easily

1 Like

what if I have uncommited changes? how could code edit directly be a feature not bug :sweat_smile: is there any other code cli tool that changes code without asking?