Show HN: Ggpt – Take advantage of GPT on the command line (github.com)
Hi HN, with all of the hype recently surrounding GPT, i’ve been wondering what value it could bring to the table for developers. While chatGPT is wildly popular, and GPT incredibly powerful, I found it hard to integrate it into my CLI based workflows without lots of copy pasting into the terminal. With the interface being a nonstarter for my own adoption, I wrote ggpt. ggpt is a command line utility written in go, that allows for quick and easy GPT access.
ggpt is drop dead simple; ‘ggpt prompt “this is my prompt” ’ to query gpt, and `ggpt last` to return the previous output again.
One really successful use case i’ve found is with regex. ` ggpt prompt "can you explain what regex $REGEX is doing?" ` will return a breakdown that really helps explain the regex in question. Even if the output isn’t perfect, ive found it gets you about 90% of the way there, in 10% of the time, and the outputs will get better and better over time. I’d love to hear other ways people are using GPT.
0 comments
[ 0.30 ms ] story [ 8.0 ms ] threadNo comments yet.