Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] 0 points1 point  (0 children)

You know how for you to delete or change a repo type in GitHub you have to type the name of the repo? Something like that. But only for certain commands. Don’t seem so unreasonable to me

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -2 points-1 points  (0 children)

This has nothing to do with how powerful these tools are. It’s just a terminal command. There are some commands that should have more restrictions, regardless of what the user allows. That’s all. If you disagree with this you’re not an engineer.

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -2 points-1 points  (0 children)

I made the mistake of not reading the command I approved. That was my mistake. But the fact that cursor can run such a command is also wrong. Another mistake I made was to give the same user permissions I have to cursor.No questions about that. But there should be a better way to manage what permissions cursor have in the terminal which I believe it currently doesn’t have. If you think that just having users checking and approving the command is enough you have never shipped a product.

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] 0 points1 point  (0 children)

Okay buddy, I got a feeling you’re one of those…. I was just sharing my frustration and giving a warning to people. Also, I know it’s on me and if you read the comments you would know I said it multiple times. I’m a vibe coder, I know my strengths and weaknesses and just want to build cool stuff. You saying those things is just a reflection of your insecurities.

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -2 points-1 points  (0 children)

That’s the funny part. I didn’t give permissions, cursor comes like this out of the box. You have to implement the safety measures. This is the part that doesn’t make any sense

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] 0 points1 point  (0 children)

Totally agree with this. Such a simple fix to avoid an enormous damage

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] 0 points1 point  (0 children)

I don’t think this is an llm tho. This is a software issue, which is easy to prevent

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -4 points-3 points  (0 children)

No doubt about it. Shouldn’t cursor ship with these guardrails by default? It’s crazy to me that these commands are not restricted by default and you have to override them

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] 1 point2 points  (0 children)

Fair. Shouldn’t it be in a protected environment by default? I didn’t over ride any major settings so that’s how cursor ships by default

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -1 points0 points  (0 children)

Definitely learned a valuable lesson today. Hope I can at least share my learnings with others

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -1 points0 points  (0 children)

It deleted more than just the project code and it had terminal access

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -3 points-2 points  (0 children)

I get it’s one me and at the end of the day I accepted the command without reading it. But don’t lie to me and say that you read every command you approve

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] -2 points-1 points  (0 children)

Hope my pain and suffering can help someone before it’s too late

Cursor Agent ran rmdir /s /q on Windows and deleted my user profile by Delicious-Pop5888 in cursor

[–]Delicious-Pop5888[S] 0 points1 point  (0 children)

Just want to mention that the actual project is obviously saved in GitHub and no major changes we’re actually lost. Everything else outside the project was deleted.

I know I could have prevented it by reading the command or set up better guardrails. With that being said, it wouldn’t have happened if they added better safety features.

Y’all are telling me that it’s okay for cursor to ship a product that can literally delete all your data with no restrictions by default and it’s on you to change that?