# CLI Reference
| `whetstone` | Start Claude Code through Headroom (`headroom wrap claude`) |
| `whetstone setup [--full] [--headroom-extras EXTRAS]` | Install/configure all components |
| `whetstone uninstall` | Interactive removal of components |
| `whetstone claude [args...]` | Run Claude Code through Headroom |
| `whetstone code [args...]` | Alias for `claude` |
| `whetstone proxy [args...]` | Run `headroom proxy` |
| `whetstone rtk [args...]` | Run RTK |
| `whetstone version` | Print version |
| `whetstone update [--full]` | Check for updates |
| `whetstone release patch\|minor\|major\|set X.Y.Z` | Verify, bump version, and open a release PR |
| `whetstone release-publish ...` | Deprecated legacy path |
| `whetstone db <subcommand>` | Session database operations |
## Headroom Extras
`--headroom-extras` controls which Headroom optional packages are installed:
| `all` (default) | `headroom-ai[proxy,code,mcp]` |
| `none` | `headroom-ai` (base only) |
| `proxy,code` | `headroom-ai[proxy,code]` (custom) |
## Versioning & Updates
Whetstone uses a single `VERSION` file as the source of truth.
```bash
whetstone version # Current version
whetstone update # Check for newer release
whetstone update --full # Force-upgrade Headroom/RTK
```
For contributors:
```bash
just release-check # Release verification gate
just release patch # Verify, bump version, and open release PR
```
## Headroom Proxy Flags
```
headroom proxy [OPTIONS]
--host HOST Network interface (default: 127.0.0.1)
--port PORT Listen port (default: 8787)
--budget AMOUNT Daily USD spending limit
--log-file PATH JSONL request log
--no-optimize Passthrough mode (no compression)
--no-cache Disable response caching
--llmlingua Enable ML-based compression (~2GB download)
--backend bedrock|vertex_ai|azure|openrouter (default: anthropic)
--region Cloud region (for bedrock/vertex_ai)
```
## RTK Quick Reference
```bash
# Analytics
rtk gain # Token savings summary
rtk gain --graph # ASCII chart (30 days)
rtk gain --history # Per-command log
rtk gain --daily # Day-by-day breakdown
rtk discover # Find missed opportunities
rtk session # Adoption rate across sessions
# File operations
rtk ls . # Compact directory tree
rtk read file.rs # Smart file reading
rtk grep "pattern" . # Grouped search results
rtk find "*.rs" . # Compact find
# Git (all transparent via hook)
rtk git status # Compact status
rtk git log -n 10 # One-line commits
rtk git diff # Condensed diff
# Test runners (failures only)
rtk test cargo test # Rust
rtk pytest # Python
rtk vitest run # Vitest
rtk go test # Go
# Build/lint (errors only)
rtk cargo build # Cargo
rtk tsc # TypeScript
rtk lint # ESLint
```