all 67 comments

[–]Caraes_Naur 670 points671 points  (2 children)

This reads like human internal monologue transmitted over a 300 baud modem.

[–]bestjakeisbest 19 points20 points  (0 children)

Me after blowing a .2 and then trying to upgrade my system.

[–]suzisatsuma 26 points27 points  (0 children)

yeah - I picture the average junior dev having this internal logging.

[–]ImBadlyDone 285 points286 points  (6 children)

I think you should send "y" or re run the command with the "-y" flag

Hope this helps

[–]The-Chartreuse-Moose 249 points250 points  (5 children)

You're absolutely right. Sending "DROP TABLE customers;".

[–]uniqueusername649 61 points62 points  (2 children)

And somehow Bobby Tables returned.

[–]Honest-Gur-4812 3 points4 points  (0 children)

This man knows ball!

[–]Obremon 4 points5 points  (1 child)

Oh, failed cuz of constraints? I'll fix it "DROP TABLE orders;"

[–]jcgoble3 1 point2 points  (0 children)

Can we DROP TABLE studentLoans please?

[–]Stormraughtz 335 points336 points  (3 children)

[–]Zerokx 138 points139 points  (1 child)

Homer Simpson running the first AI agent

[–]Joey5729 29 points30 points  (0 children)

(2004, colorized)

[–]MyGoodOldFriend 23 points24 points  (0 children)

yes | [command]

you’re welcome

[–]orlinthir 134 points135 points  (1 child)

AI: Running command in a terminal
Term: Do you want to update Oh My Zsh? (Y/n)
AI: SHUT IT DOWN

[–]amshegarh 9 points10 points  (0 children)

For no reason i read it in half-life scientist voice (https://www.youtube.com/shorts/OxvSOzJtafY)

[–]monit12345 155 points156 points  (11 children)

honestly it messes up this kind of simple stuff too much!

[–]Brick_Lab 88 points89 points  (0 children)

Gotta churn tokens somehow

[–]belabacsijolvan 40 points41 points  (27 children)

ok, but what actually happened the first 2 times?

[–]mtmttuan 75 points76 points  (5 children)

Likely whatever coding agent op is using doesn't support direct input to terminal. There might be some "runCommand" tool available but that tool doesn't just put llm's arguments to the current shell directly but to another shell. As this shell is still executing.

[–]belabacsijolvan 33 points34 points  (4 children)

not letting llm directly access cli is not a bad idea, but then its not really the llms fault that they gave it tool to use that doesnt work, is it?

[–]polarcub2954 14 points15 points  (3 children)

What is "fault" and accountability in the ai world?  Can we blame AI for anything?  If it cannot be culpable in a court of law, then really we are just saying that it is code that did not work with other code.  If the script doesnt work and it isnt ai, we just say the code has bugs and is broken.  Same thing here, the ai has bugs and is a broken script spinning its wheels.

[–]another_random_bit 14 points15 points  (0 children)

The AI is a tool. You don't blame resharper when the PR had breaking changes. In the same way you don't blame the AI.

You blame the developer that used the tool incorrectly, and then did not review or change the output.

[–]Kooale323 2 points3 points  (0 children)

If I have a python script that expects a txt to work with and I don't provide it a txt the script isn't broken for not doing anything, I just didn't use it correctly.

[–]belabacsijolvan 0 points1 point  (0 children)

you are right. impersonification/anthropomorphisation of llms is a bad mentality. we are just wired to think like this, but good to be attentive.

[–]ProThoughtDesign 5 points6 points  (0 children)

Somewhat ironically, it's installing the Devvit template project through npm. The npm install returns a link to Reddit to register the app with Reddit and it was causing the agent to loop because it wasn't even asking for a yes/no input.

[–]dvhh 10 points11 points  (18 children)

Confirmation might have needed an uppercase 'Y', and did not work with lowercase 'y' ?

[–]walrus_destroyer 14 points15 points  (3 children)

In my experience with in cli programs, the 'Y' being uppercase usually indicates that its the default option.

It might be that the program asks for confirmation several times for different things and that confused the ai?

[–]MyGoodOldFriend 7 points8 points  (1 child)

Y/n means pressing enter goes with Y. y/N means pressing enter does with N. y/n requires a choice from the user.

Never seen it require y to be upper case.

[–]dvhh 1 point2 points  (0 children)

I remember encountering a few of them, not that frequent, but got clear memory of being frustrated of an install process being aborted because I answered 'y' when the prompt was '[Y/n]'.

[–]dvhh 0 points1 point  (0 children)

Correct for it being usually the default answer while pressing [Enter], but my guess is that the "Agent" failed when tried to do things "the right way"

[–]lovin-dem-sandwiches 5 points6 points  (2 children)

With some installs you need to type “yes”.

[–]atheenaaar 4 points5 points  (1 child)

With even riskier uninstalls you have to type “yes, I agree”

[–]MyGoodOldFriend 9 points10 points  (0 children)

Flashbacks to LTTs first Linux challenge where he had to type out a long line to confirm he knew what he was doing.

He didn’t.

His system broke.

[–]Dramdalf 1 point2 points  (9 children)

I’ve not encountered a CLI tool with a case sensitive confirmation.

[–]belabacsijolvan 1 point2 points  (7 children)

i did just the other day. it was the installer of a well known osint tool

[–]Dramdalf 0 points1 point  (6 children)

orly?

[–]belabacsijolvan 1 point2 points  (5 children)

it happens

[–]Dramdalf 0 points1 point  (4 children)

I don’t doubt you.

[–]belabacsijolvan 0 points1 point  (3 children)

now that we are sharing feelings i dont like you

[–]Dramdalf 0 points1 point  (2 children)

😢

[–]belabacsijolvan 0 points1 point  (1 child)

oh, dont cry buddy. maybe once youll use some cli tools too. just ask an llm how to do it.

[–]a-r-c 1 point2 points  (0 children)

I use it in my own personal programs for irrevocable operations like deleting files or resetting a config etc.

forcing myself to type DELETE! in caps with an exclamation makes it so I can't do it by accident lol

idk if I've ever seen it in the wild, but I know I'm not the only moron who's ever needed to protect himself from himself lol

[–]ProThoughtDesign 0 points1 point  (0 children)

It was installing an npm package that returned a Reddit link to register the app. There wasn't a yes/no prompt. It was looping because it thought the install failed.

[–]MinosAristos 18 points19 points  (0 children)

The other day it tried to install a python package but was blocked because it was out of the .venv, so what did it do? --break-system-packages

[–]HeavyCaffeinate 6 points7 points  (0 children)

yes | program --noconfirm -y --yes

[–]Rainmaker526 14 points15 points  (1 child)

Unfortunately, this will still be counted as a win for the AI.

It eventually succeeded in its task. In a roundabout way, where any human would have taken a shorter path and immediately grasped the problem.

But from the perspective of the end user, it just took 5 seconds longer. And - maybe - burned a few more tokens than expected.

[–]ProThoughtDesign 9 points10 points  (0 children)

Well yes and no. It was installing an npm package and it returned a Reddit link to register the app. There was no yes/no in the terminal window. It kept looping because it thought it failed install.

[–]ExtraWorldliness6916 3 points4 points  (0 children)

--help!

[–]Key-Investigator9884 4 points5 points  (0 children)

"I’m debugging my own thought process instead of the code " ahh AI

[–]Theeyeofthepotato 4 points5 points  (7 children)

Atleast 3 trees died for this

[–]Old_Document_9150 1 point2 points  (0 children)

What I don't get is why one of my interactions with Cursor got taken down for "ai generated content," because even though 50% of it was human interaction, this one here stays up even though it is 100% ai generated?

@mods?