Go to file
2024-01-20 20:51:07 -05:00
llmcmd changed name 2024-01-20 20:51:07 -05:00
README.md added readme 2024-01-20 20:49:57 -05:00

llmcmd

llmcmd is an interactive Linux tool that takes natural language and turns it into oneliner bash commands. This tool utilizes Ollama with codellama:7b for snappy usefull responses. It has built in self reflection so that it reflects on the code to make sure that it is correctly fromated and does not include any error. If it determines that the code is correct the it shows it to the user. Otherwise it tryes again. If it is unable to find a useful result after 5 attempts it will through an error say it can not find a sollution.

Usage

To use the tool, simply type llmcmd the double quotes and your question. Once it has generated the code then you can choose one of 4 options:

  • n for skipping the code block (default)
  • y for running the code block as is.
  • e for editing the code block before running.
  • q for ending the tool emedialtly

Installation

To install this tool first create a venv python enviorment.

git clone https://gitea.locker98.com/tofasthacker/llm_cmd.git
cd llm_cmd

Example Usage

python3 llmcmd "how do I update my computer"