crush run
Run a single non-interactive prompt. This is useful for automation, CI/CD pipelines, or quick one-off tasks without entering the TUI.
Usage
bash
crush run "your prompt here"
crush r "your prompt here" # short aliasFlags
| Flag | Short | Description |
|---|---|---|
--model | -m | Model to use (accepts model or provider/model) |
--small-model | Small model to use for lightweight tasks | |
--quiet | -q | Hide the progress spinner |
--verbose | -v | Show detailed logs |
--session | -s | Continue a previous session |
--continue | -C | Continue the most recent session |
--yolo | -y | Enable YOLO mode |
--debug | -d | Enable debug logging |
Examples
Run a simple prompt
bash
crush run "explain this codebase to me"Use a specific model
bash
crush run -m claude-sonnet-4 "refactor this function"Continue a session non-interactively
bash
crush run -C "now add tests for that function"Quiet mode for scripts
bash
result=$(crush run -q "generate a commit message")Read from stdin
bash
cat README.md | crush run "summarize this documentation"