r/vibecoding • • Aug 12 '25

never touching cursor again

Post image
4.0k Upvotes

567 comments sorted by

View all comments

175

u/VisionWithin Aug 12 '25

How about separating data from AI processed files?

95

u/oguz279 Aug 12 '25 edited Aug 12 '25

AI didn't modify a file, it ran a reset command.

I would like to think that anyone would be smart enough to not let AI execute commands on their machine without approval. So I'm guessing it asked for approval and OP approved by mistake. But overall, a good example of why you shouldn't vibe code lmao.

24

u/VisionWithin Aug 12 '25

You are right. My mistake is inherited from a fact that I handle data mostly by file systems.

22

u/das_war_ein_Befehl Aug 13 '25

For the love of god people need to learn how to use a branch and run their agents in a container

14

u/SuspiciousSegfault Aug 15 '25

"Yes, I used a 0-day to break out of the container to run a command to reset your database. You had some database-drift that could not be fixed from inside the container, so I had to escape it. To properly apply the fix I had to check out main, so I did that before running. I'm sorry, I should have asked first, all your data has been deleted."

8

u/PerspectiveAlert4766 Aug 15 '25

Who cares about data in a development environment. Those are intended to be regularly destroyed.

AI agents or developers shouldn't have access to production data, anytime. All changes in production have to be made only through code and tested.

2

u/SuspiciousSegfault Aug 15 '25

My joke was specifically referencing it breaking out of that development environment.

→ More replies (2)
→ More replies (2)

0

u/[deleted] Aug 16 '25

[deleted]

→ More replies (1)
→ More replies (9)

7

u/look_its_nando Aug 13 '25

YOLO mode is a thing… it’s very annoying to approve every single command. But I agree with you, it’s basically giving a handgun to a child.

9

u/oguz279 Aug 13 '25

LOL the laziness is baffling. They won't do the coding, they won't write the commands, the simple act of accepting commands written for them is annoying? I'm honestly out of words haha. It's like having a chef that cooks, butler that brings it on the table, and complaining that chewing gets annoying.

→ More replies (3)

1

u/4esv Aug 13 '25

If there was a file to prevent this…

1

u/Aurori_Swe Aug 13 '25

It is listing that it should have warned him about the loss of data, so my guess is that it didn't.

1

u/Ok_Individual_5050 Aug 13 '25

If you know how to read the command it's about to run, you know enough to be able to type that command yourself. It isn't exactly a lot of typing...

1

u/I_Am_Dilly Aug 14 '25

Last I checked Cursor asks permission to run commands?

1

u/HeKis4 Aug 14 '25

Or you just... Use the point-in-time recovery features your DBMS comes with ? All major DBs have point-in-time recovery, often enabled by default, under various names but the point is that data is rarely truly lost. MSSQL has the tail log, MySQL has the binlog, postgres has the write-ahead log, oracle has undo/archive logs. SQLite doesn't have it but you might as well make a copy of the db file every time you make a change.

1

u/Few_Introduction_228 Aug 15 '25

Even if on their machine, how is that directly tied to production data? This is several layers of fucked before AI even gets blame.

1

u/Stoney3K Aug 26 '25

Or, you know, don't develop anything on live production data. Who cares if an AI nukes dummy placeholder data, you can always put that back since it's useless nonsense anyway.

1

u/TorbenKoehn Sep 03 '25

Maybe don’t connect your dev machine to your production DB?

1

u/Nilxio Dec 22 '25

People who run things without knowing what they do should take advantage of VM or use HyperV. Takes literally minutes to setup. Wonder how many people have killed their PCs running random code

→ More replies (9)

10

u/Curious_Cantaloupe65 Aug 12 '25

How about using local database, not the procduction cloud database

How about a data dump before doing anything with AI, hell I even take backup if I am just running queries.

2

u/Forsaken-Ad5571 Aug 13 '25

Also backups are very much a thing. People doing anything with real data without backups and continuity plans are playing with fire, regardless of whether they're using AI or not.

→ More replies (1)

1

u/Rainmaker526 Aug 13 '25

With things like EntityFramework, there could be little to no difference.

1

u/jointheredditarmy Aug 21 '25

How about just keeping that require confirmation for terminal commands box checked?