demo4.mp4
-
ht <instruction> - answers with shell command
-
ht e|explain - explains last answer
-
ht e|explain [command] - explains command
ht find all IPv4 addresses in file A and write to file Bht explainht explain ls -lSht explain "ps -aux | grep nvidia"
I initially created ht as a simple experiment to test GPT-3.5-Turbo's usefulness with shell commands. However, I now find myself using it extensively in my daily tasks. So I'm sharing it with the hope that it can benefit others in the same way.
ht is written in Dart. This means it's one single binary that you can easily add to your system's PATH. (If you don't know how to do this, ask ht.) The binary is fully self-contained and does not have any dependencies.
To use ht, you'll need an OpenAI API key. The good news is that due to ht's low token usage, a typical request costs about $0.00025, making it an incredibly budget-friendly tool for daily usage. You can sign up for an API key here or refer to this article for detailed instructions.