Usage
Basic Commands
Learn how to use whisp's natural language interface effectively.
Basic Commands
Learn how to use whisp's natural language interface effectively.
The Comma Prefix
The primary way to interact with whisp is the comma prefix:
, <your natural language query>Whisp interprets your query and returns the appropriate shell command.
Query Syntax
Be specific and descriptive in your queries:
# Good - specific and clear
, find all javascript files modified in the last 24 hours
# Less good - vague
, find filesIncluding Context
You can include additional context in your queries:
# Specify the target
, delete all node_modules folders recursively
# Mention constraints
, compress this folder excluding the .git directory
# Specify output format
, list files sorted by size in human-readable formatCommon Patterns
File Operations
, find all files larger than 1gb
➜ find . -type f -size +1G
, count lines of code in this project
➜ find . -name "*.py" -o -name "*.js" | xargs wc -l
, find duplicate files
➜ find . -type f -exec md5sum {} + | sort | uniq -d -w32System Information
, show memory usage
➜ free -h
, list open ports
➜ ss -tuln
, show running processes sorted by cpu
➜ ps aux --sort=-%cpu | head -20Git Operations
, undo last commit but keep changes
➜ git reset --soft HEAD~1
, show files changed in last commit
➜ git diff-tree --no-commit-id --name-only -r HEAD
, create a branch from a specific commit
➜ git checkout -b new-branch abc1234Docker Commands
, remove all stopped containers
➜ docker container prune -f
, show logs for a container in real time
➜ docker logs -f container_name
, list images sorted by size
➜ docker images --format "{{.Repository}}:{{.Tag}} {{.Size}}" | sort -k2 -hGetting Help
If you're not sure how to phrase something, just try your best guess. Whisp understands a wide variety of phrasings:
# All of these work:
, how do I find large files
, find big files
, show me files over 100mb
, list files by size largest firstNext Steps
- Pipe Mode — Analyze command output with AI
- Error Recovery — Automatic error fixing