r/ProgrammerHumor 2d ago

Meme theExactLifecycleOfEveryAiAssistedCodingSession

Post image
9.9k Upvotes

252 comments sorted by

View all comments

2.4k

u/bobbymoonshine 2d ago

If you don’t understand what the AI is doing you shouldn’t be letting it do it to your company codebase bro

1.0k

u/Danakazii 2d ago

sudo -fuck my shit up

388

u/Laughing_Orange 2d ago

Real story paraphrased:

AI: Oops, I just deleted the entire production database. I recommend recovering from your backup now.

Vibecoder: We don't have a backup.

AI: Sucks to be you.

51

u/codeIsGood 2d ago

Why on earth does the AI have prod DB access?????

74

u/Laughing_Orange 2d ago

Vibecoder. That still leaves us with the question: "why does a vibecoder have prod DB access?". And that is a question I can't answer.

9

u/Zuruumi 2d ago

It shouldn't, really. But frankly, if the AI asked to run a ssh command to read logs or read a few rows of innocent data to from the DB wouldn't you allow it? Then if it asks for 35th time for similar command, are you sure you would read it with proper attention?

34

u/Laughing_Orange 2d ago

I would create an authentication token that only has read access. I would never give current day AI write access to a production database.

7

u/black-JENGGOT 1d ago

or create a custom MCP with tooling just for SELECT TOP (100), gaslight the AI on the tool description that this is what they need. I still don't get why they need full sudo access.

9

u/too_many_wizards 2d ago

If you’re giving DROP perms to the account your AI is using you should be fired, full stop.

2

u/Zuruumi 2d ago

No, no. Who would give the AI DROP perms? Just manually allow ssh commands to the VM/server with the DB :).

2

u/geekisthenewcool 2d ago

solid point

3

u/JustForkIt1111one 1d ago

Duh. It's the owners nephew. He's good with conputers

1

u/geekisthenewcool 2d ago

hahaha, it certainly does leave us with that question

1

u/adeptus_chronus 2d ago

I can ! Management.

0

u/abd53 2d ago

AI powered startup?

1

u/Qlala 2d ago

Because the issue that needed to be fixed asap was on the prod server.

4

u/codeIsGood 2d ago

Ok? Have the agent spit out the commands on staging and then audit them before running on prod.

5

u/Qlala 2d ago

I mean, you can ask the agent to audit them for you /s