I am sure to upset a lot of purists with this, but as a hobby “sysadmin” of my own linux server at home, an AI built into the shell would do wonders to me.
I found bash-ai, but that seems to me like little more than a wrapper for ChatGPT queries.
In an ideal scenario, I’d like to employ a pre-trained, locally run AI that has access to all files, including config files and the list of installed packages, so it can, for example, tell me what specific lines in config files do or if a package I have already installed is good for a task I want to do or what the merge conflict between configs during an upgrade is about.
Is there such a built-in AI?
Are you really ready to trust it? I use DDG’s agent frequently, when my query-fu fails, but I’ve gotten bogus, outright lies in response. They are good for helping me reframe my questions for the regular search engine. I don’t think I’d rely on LLMs yet for technical guidance.
In dealings with current LLMs I’m regularly reminded of the old truism: “it’s better to spend ten years looking for the right teacher, than to spend ten years learning from the wrong one.”
Have you tried solutions like “thefuck”? Maybe a non-LLM shell helper would be safer, and be less likely to teach you wrong or bad solutions.