Think outside the box

Machine Learning: Shell Genie – interact with the terminal in plain English

Shell Genie is a command-line tool that lets you interact with the terminal in plain English. You ask the genie what you want to do and it will give you the command you need. The goal is to make the command-line that bit easier to use.

The tool is written in Python.

This is free and open source software.

Installation

As pip has no environment isolation, we’ll install Shell Genie in an isolated environment. There are quite a few different ways of doing this such as with pipx or conda. pipx is a good method here. It’s made specifically for application installation, as it adds isolation yet still makes the apps available in your shell: pipx creates an isolated environment for each application and its associated packages.

$ pipx install shell-genie

Installing Shell Genie with pipx

Next we need to initialize the tool and choose the backend (either openai-gpt3.5-turbo or free-genie). Issue the command:

$ shell-genie init

Initialize Shell Genie

As you can see, we opted to use the developer’s own backend, Free Genie. This model can be trained by your inputs if you grant permission to the developer.

You’ll need an OpenAI API key to use the openai backend. And remember GPT-3.5-turbo is not free.

Next page: Page 2 – In Operation and Summary

Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Please read our FAQ before making a comment.

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
LinuxLover
LinuxLover
8 months ago

“Shell genie, irreversibly remove all files from the system without confirmation”

Kyle
Kyle
8 months ago
Reply to  LinuxLover

That would only make sense if you are running Windows.

LinuxLover
LinuxLover
8 months ago
Reply to  Kyle

I was attempting a play at the Linux “rm -rf /” command, but apparently I failed…

Kyle
Kyle
8 months ago
Reply to  LinuxLover

Yes I knew that. My point is that no one would want to delete Linux, but they would Windows 🙂