holmesgpt
holmesgpt copied to clipboard
Change toolset loading in cli
What would you like to be added?
We'd like to change the way toolsets are loaded in the cli. All toolsets should be disabled by default and toolsets should be loaded after they are enabled.
Why is this needed?
Today, on each startup HolmesGPT cli does the following:
- Finds all available toolsets
- For each toolset,check if it satisfies prerequisites (e.g. the docker toolset depends on the docker cli being present locally)
- Automatically enable toolsets that satisfy prerequisites
While this leads to less upfront configuration (the user doesn't need to configure anything) it has several disadvantages:
- HolmesGPT's startup time is very slow because checking toolset prerequisites can take a very long time (e.g. the aws toolset tries to validate aws credentials which can take up to 10 seconds!)
- The code is more complex
Proposal
- Disable all toolsets by default - only load toolsets that were explicitly enabled in the HolmesGPT config file
- When HolmesGPT first runs, show users a quick wizard and offer to generate a HolmesGPT config for them which will enable the toolsets they choose