Hey guys, I've created a really small tool that converts natural language into terminal commands using GPT3. To my chagrin, I seem to have a pathological inability to remember commands so I'm hoping this may help others suffering from such a terrible affliction.
This is fascinating. Is the input to oh-heck the complete GPT-3 prompt. Or is there something else added to it before sending to GPT-3? Is there any specific training used for this task? Or just off the shelf GPT-3?
Show HN: Oh-heck, a terminal command for when you forget other terminal commands
21–30 of 132 posts
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#22I'm assuming that this tool is for people who aren't familiar with the system enough to get what they need from the man pages and would rather not invest the time to become deeper on it.
If you don't remember the command you need to use, how can you be sure it is the correct command and options before you run it?
edit: typo
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#23Looks nice; how does it work under the hood? It looks like it needs an API key, so does that mean it sends all my inputs to some server? Does it taylor the answer based on your OS, like using Hombrew on Mac and apt on Ubuntu? Can it work offline?
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#24Am I crazy to think that a tool like this is an accident waiting to happen? I'm assuming that this tool is for people who aren't familiar with the system enough to get what they need from the man pages and would rather not invest the time to become deeper on it. If you don't remember the command you need to use, how can you be sure it is the correct command and options before you run it? edit: typo
It asks you for confirmation before running it.
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#25This used to be called "man".
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#26Am I crazy to think that a tool like this is an accident waiting to happen? I'm assuming that this tool is for people who aren't familiar with the system enough to get what they need from the man pages and would rather not invest the time to become deeper on it. If you don't remember the command you need to use, how can you be sure it is the correct command and options before you run it? edit: typo
On the other hand if you are doing something dangerous or risky or you don't understand the suggested command, maybe you shouldn't use this tool without searching more info first.
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#27Am I crazy to think that a tool like this is an accident waiting to happen? I'm assuming that this tool is for people who aren't familiar with the system enough to get what they need from the man pages and would rather not invest the time to become deeper on it. If you don't remember the command you need to use, how can you be sure it is the correct command and options before you run it? edit: typo
Only a fool would rely solely a tool like this to run things you don't understand.
That doesn't make it a dangerous tool to use though.
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#28So the "Terms of Service & Privacy" link doesn't work, and apparently it's a paid subscription service but you don't find that out until you've signed up and tried activating an API key? I'm sure these are just oversights but it leaves a very bad taste in my mouth!
oh-heck "Bring up the network interface. Goddamit Linux where did ifconfig go? Why do you have to NIH everything?"Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#29Am I crazy to think that a tool like this is an accident waiting to happen? I'm assuming that this tool is for people who aren't familiar with the system enough to get what they need from the man pages and would rather not invest the time to become deeper on it. If you don't remember the command you need to use, how can you be sure it is the correct command and options before you run it? edit: typo
It shows you the command and allows you to copy it on the clipboard. It's never going to execute it. For me it is useful more like a refreshing your memory than doing the actual work, therefore you need to know what you're doing from previous knowledge. On the other hand if you are doing something dangerous or risky or you don't understand the suggested command, maybe you shouldn't use this tool without searching mor…
That sounds suspciously like smitty[0].
Which was a useful tool when I was learning AIX. I'd expect a similar tool could be useful for learning other systems too.
Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands
#30Some people seem to be unaware of apropos too (old text based cli tool). $ apropos network interfaces (5) - network interface configuration for ifup and ifdown aseqnet (1) - ALSA sequencer connectors over network byteorder (3) - convert values between host and network byte order ctstat (8) - unified linux network statistics
edit: I forget how apropos is named.