pgibler / cmdh

Create Linux commands from natural language, in the shell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check system for existing packages related to setup commands

pgibler opened this issue · comments

Add functionality to check the system for existing packages that are related to the setup commands. There are two ways that this could be done:

  1. Before the setup commands are requested, add a step that does the following
  • Returns all the packages required to run the desired command.
  • Then, run the which command to detect installed packages
  • Then, in the system prompt, tell the LLM to exclude all setup commands related to existing packages
  1. Include in the full prompt output the required packages alongside the setup commands
  • then, run the which command on the system for each existing package
  • regex the setup commands and remove the ones that match