Show HN: Autocomplete.sh in the shell to trigger LLM based bash_complete
1–4 of 4 posts
Re: Show HN: Autocomplete.sh <Tab> in the shell to trigger LLM based bash_complete
#2So 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 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