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
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
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- Bret Victor - Inventing on Principle · Rui Oliveira · 54:20
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Transformers, the tech behind LLMs | Deep Learning Chapter 5 · 3Blue1Brown · 27:14
- Debugging Under Fire: Keep your Head when Systems have Lost their Mind • Bryan Cantrill • GOTO 2017 · GOTO Conferences · 52:34
- "Performance Matters" by Emery Berger · Strange Loop Conference · 42:15
- A Tour of the Acme Editor · Russ Cox · 23:16
- Tech Talk: Linus Torvalds on git · Google · 1:10:15
- Deep Dive into LLMs like ChatGPT · Andrej Karpathy · 3:31:23
- "How NOT to Measure Latency" by Gil Tene · Strange Loop Conference · 42:59
- Ruby Conf 12 - Boundaries by Gary Bernhardt · Confreaks · 45:55
- Using Python to Code by Voice · Next Day Video · 28:17
- How to Do 90% of What Plugins Do (With Just Vim) · thoughtbot · 1:14:02
- Lecture 6: Version Control (git) (2020) · Missing Semester · 1:24:59