shask is a wrapper around llm that returns a shell command for your request.
shask requires llm.
brew install llmDocs: https://llm.datasette.io/en/stable/
Install details: https://llm.datasette.io/en/stable/setup.html
shask "list files by size"shask [--explain|--no-explain] [--raw] [--model MODEL] <question...>By default, shask prints a single command to stdout. Use --raw to see the
full llm response (including CMD: / WHY: / NEED_MORE_INFO: lines).
--explain
Print the optional short explanation line (if provided).--no-explain
Do not print the explanation line (default).--raw
Output the full rawllmresponse and exit.--model MODEL
Use a specific model forllm.
Generate a command:
shask "find large log files in /var/log"Specify a model:
shask --model gpt-4.1-mini "show top 10 processes by memory"If shask needs more info and you are in a TTY, it will prompt you:
NEED_MORE_INFO: Which directory should I search?
> /var/log
llmmust be installed and available inPATH.