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

River's Educational Channel0 HN recommenders · 2021–2022
39K views · demo · dated · Uploaded 2021-04-18

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.

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

Watch on YouTube

3 comments from Hacker News

@riveducha2021 · in “OpenAI's Codex sure knows a lot about HN [video]”

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 popular YT video IDs. In other cases, it will “hallucinate” things like URLs, UUIDs, hashes, and other things that are basically a random string of characters. In my experience it will make UUIDs that have the right number of characters but seem suspiciously non-random and don’t fit any of the defined UUID formats. Fun stuff. [0] [VIDEO]

@vfinn2021 · in “Useful sed scripts and patterns”

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]

@O_H_E2022 · in “Fish 3.4.0”

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