What does HackerNews think of shell_gpt?

A command-line productivity tool powered by GPT-3 and GPT-4, will help you accomplish your tasks faster and more efficiently.

Language: Python

#8 in Bash
#32 in Linux
#45 in Python
#12 in Shell
#14 in Terminal
I use a random one [1], when I remember. Type what I need in english and press Ctrl-G:

    ~/ git clean branch⌛ (ctrl-g gives me the little hourglass)
wait for a second and the command line is replaced:

    ~/ git clean -f -d && git checkout branch
Of course when the result is not what you want, might as well open the browser...

[1] https://github.com/TheR1D/shell_gpt

For people who use terminal a lot, I find shell gpt a good mixture [1]. Flexible enough to pipe commands, generic enough to ask questions.

[1] https://github.com/TheR1D/shell_gpt

ShellGPT https://github.com/TheR1D/shell_gpt does pretty well for a lot of use cases. I mostly use it in REPL mode, switching topics as needed. I have wrappers around the `sgpt` command to, say, start a REPL with a particular topic, say, Python, which loads my previous history on that topic as part of the prompt.

I also have an alias to save existing chats as text files so I can go back and review history.

Finally, there is an alias to load a question up in an editor if I need to enter multiline text, e.g. to discuss code fragments, etc.

I expect command-line workflows to be pretty individualized and I'm curious what others do. For me (old programmer), using a command line REPL feels much more natural (and blissfully noise-free) than going to a Web page to talk to, say, ChatGPT.

The API still works. I've been using https://github.com/TheR1D/shell_gpt/ in my workflow.
I recommend shell-gpt[1] for anyone with access to the OpenAI API. It works surprisingly well considering how simple it is. Be sure to browse the examples in the README.

[1] https://github.com/TheR1D/shell_gpt

This looks similar to shell_gpt[0], does yours do anything differently?

[0] https://github.com/TheR1D/shell_gpt