I vaguely recall a project from a while back that did something similar without LLMs.
I’m really pushing my recall, but I want to say it was written in Ruby and stored pre-configured commands that it just did traditional search over.
I vaguely recall it working okay because 99.99% of the questions people asked were the same (“tar command to gzip a directory and strip the prefix” is something I google like once a month).