Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

shask

shask is a wrapper around llm that returns a shell command for your request.

Install llm

shask requires llm.

brew install llm

Docs: https://llm.datasette.io/en/stable/
Install details: https://llm.datasette.io/en/stable/setup.html

Quick start

shask "list files by size"

Usage

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).

Flags

  • --explain
    Print the optional short explanation line (if provided).
  • --no-explain
    Do not print the explanation line (default).
  • --raw
    Output the full raw llm response and exit.
  • --model MODEL
    Use a specific model for llm.

Examples

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

Troubleshooting

  • llm must be installed and available in PATH.

About

natural language shell prompt generator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages