3 ms·
I hate trying to build something quickly and forgetting the syntax, "How do I resize a video in ffmpeg?" or "create an postgres docker container with all right
by skruzel 2y ago
I hate trying to build something quickly and forgetting the syntax, "How do I resize a video in ffmpeg?" or "create an postgres docker container with all right environment variables and ports set".
So I built autocomplete.sh. It supports OpenAI, Grok, Claude and Local models like Ollama. Just install, select the model, enter API key and then when you type <tab><tab> it will return 3-5 suggestions on ways to do the task.
It puts into the context window things like recent command history, which environment variables are set (not the values!) and what type of shell it is so that the results are tailored. I do also try to remove things that look like passwords to keep the prompt free of PII. I also like that you can run locally using ollama or run things extremely fast (and free!) using Grok.
The script is GPT wrapper written entirely in bash and so it can be extremely portable.
It was fun to build and I recently showed it around the Boston Startup scene and people liked it. So I wanted to share it here before the weekend!
Check out the landing page: https://autocomplete.sh https://autocomplete.sh
Or the code: https://github.com/closedloop-technologies/autocomplete-sh https://github.com/closedloop-technologies/autocomplete-sh