I made an GPT-powered Linux shell that guesses your bash command (and hallucinates crazy stuff)

Channel:River's Educational Channel · Length:4:41 · Published:2021-04-18 · Views:38732

Watch on YouTube

Summary

A short demo of a GPT-powered Linux shell that guesses the bash command you meant and sometimes hallucinates absurd results. The creator stresses that it is real and should not be trusted.

Why HN recommends it

Cited as an early, amusing example of LLM-driven command-line toys, with commenters sharing similar experiments.

Testing, debugging & developer tools · LLMs & generative AI

Subtitles (excerpt)

Hello everyone, and check out what I just got in the mail today. Been waiting for this for months. Enclosed is your OpenAI private beta API key blah blah blah And here’s the API key. Gotta make sure I blur it out. So I’ve been thinking about what to make now that I have this incredible power, and the first idea I had was making the command-line easier to use, so I got to work. Basically, the idea is that instead of constantly Googling for how to accomplish various tasks on the command-line in Linux, I want an AI-powered shell. I’ll tell the shell what I want to do, and the shell will figure out the actual command to run. Over the course of a year, this could save entire minutes from my typical workflow, and could be a huge win for AIs in their quest to obsolete humans. As you can see, there’s not a whole lot of code that needs to be written. OpenAI provides a Python library to access their API, but it’s really just doing simple HTTP requests underneath the hood. Now, let’s try it out on some basic stuff. Often I need to use a tool that I’m not super familiar with, so it’s hard to remember how to run it. Especially with converting or working with specific file formats. And it can help us with stuff online too:

On Hacker News

Yup, right here [VIDEO] I remember that I was able to replicate this last year, not 100% sure why I'm not using it daily tho. :D One thing to note, the limited waitinglist he talks about in the video is done, and now you can sign up and "pay" for ~NLP~...ahem CLP tokens as OpenAI calls them — O_H_E, 2022-03
Waiting for an AI powered shell, or something similar, so that one can avoid wasting time on these trivial tasks that require too much attention if solved with traditional methods: "I made an OpenAI-powered Linux shell that guesses your bash command": [VIDEO] — vfinn, 2021-11
I made a similar little GPT-3 toy (for Linux/bash) that also ended up generating a Rickroll URL.[0] In vague cases, GPT-3 functions approximately as well as a markov chain - it will give you the most “probable” sequence of tokens. There’s some implementation details regarding how it deals with tokenization, but unless you really increase the randomness (“temperature”) you’re likely to get very po… — riveducha, 2021-08

Related videos