Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

The recall binary is installed to ~/.local/bin/recall by the app.

Usage

recall <search query>
recall --warmup

Commands

recall <query>

Embeds <query> using the local AI model, finds the closest saved command by cosine similarity, and copies it to clipboard.

recall "clean docker"
# → copies: docker system prune -af
# → prints: Copied (89% match): Clean up all Docker resources

Interactive mode (when stdin and stdout are a TTY):

  • If multiple results score above the threshold, shows a numbered picker
  • Press 15 to select, or Enter for the top result

Template variables: If a command contains {placeholders}, recall prompts for values:

recall "deploy to env"
# Command: ./deploy.sh --env {environment}
#   environment: prod
# → copies: ./deploy.sh --env prod

Exit codes:

  • 0 — command found and copied
  • 1 — no match above threshold

recall --warmup

Pre-loads the AI model into the OS page cache without running a search. Add to .zshrc to reduce cold-start latency on subsequent recall calls:

# ~/.zshrc
(recall --warmup &>/dev/null &)

Environment Variables

VariableDefaultDescription
RECALL_MIN_SCORE0.50Minimum cosine similarity (0–1) to count as a match

Data Location

The SQLite database is at ~/Library/Application Support/recall/recall.db (macOS).