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!
I stumbled upon autocomplete.sh months ago, and have briefly used it to write some data engineering pipelines. Feels like having Cursor in my terminal. As someone who is currently fairly rusty, and has nightmares of being bashed by bash, this was helpful. I recently cancelled my OpenAI sub and switched to Claude. So glad to see you have broadened coverage of other LLMs. Thanks for building this!
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 Or the code: https://github.com/closedloop-technologies/autocomplete-sh