Skip to main content
This reference covers all available commands and hotkeys in Slate CLI, with interaction commands prioritized for quick access.

Quick Reference

  • Essential Shortcuts
  • All Shortcuts

Agent Interaction

1

Ctrl+G

Cycle agent modes - Toggle between normal, smart, and extended modes
2

Ctrl+X

Open external editor - Compose long prompts in your preferred editor
3

Ctrl+T

Show/hide todo list - Display or hide the current task list
4

Ctrl+C

Cancel/Exit - Cancel current operation or exit the application
1

!

Enter shell mode - Type ! to enter bash command mode
2

Ctrl+R

Reverse search - Search through command history (in shell mode)
3

↑/↓ arrows

Navigate history - Browse through previous commands
4

Tab

Autocomplete - Complete commands and file paths
1

Ctrl+S

Expand/collapse output - Show more lines or collapse content
2

Ctrl+B

Show/hide shell output - Toggle visibility of terminal output
3

Ctrl+W

Close tab - Close current worktree tab (when tabs are visible)

Slash Commands

All commands start with / and support autocomplete with Tab

Core Commands

Workspace Management

/workspace add <path>     # Add a directory to workspace
/workspace remove <path>  # Remove a directory from workspace
/workspace list          # List all workspace directories
/workspace clear         # Clear all workspace directories
/add-dir <path>          # Shortcut to add a directory
/private on              # Enable privacy mode
/private off             # Disable privacy mode
/private status          # Check privacy mode status

Worktree Commands

Worktree commands are only available when the worktree feature is enabled
1

/worktree new [branch-name]

Create a new session in a git worktree
/worktree new feature-branch          # Create worktree for existing branch
/worktree new feature-branch --create-branch  # Create new branch and worktree
2

/worktree select

Open a dialog to select and switch to a different worktree session
3

/worktree remove <session-id>

Remove a worktree session and clean up associated files
4

/worktree exit

Navigate back to the git root directory from a worktree
5

/worktree setup

Create a script to set up new git worktrees with proper configuration
6

/worktree merge

Merge worktree changes back into the main branch
7

/worktree show/hide

Toggle visibility of worktree tabs in the UI
/worktree show           # Display worktree tabs
/worktree hide           # Hide worktree tabs

Theme Commands

System Commands

1

/auth

Login to your Slate account
2

/logout

Logout from your current account
1

/version

Check the current version of Slate CLI
2

/self-update

Update Slate CLI to the latest version
May require sudo permissions: sudo npm i -g @randomlabs/slatecli
3

/bug

Submit a bug report with system information
4

/quit

Exit the application gracefully

Shell Mode

Type ! at the beginning of a line to enter shell mode for direct command execution

Shell Mode Features

Command Execution
  • Run any shell command directly
  • Commands execute in the current workspace
  • Output is captured and displayed
  • Exit codes are reported
History & Completion
  • Full command history with ↑/↓ arrows
  • Reverse search with Ctrl+R
  • Tab completion for commands and paths
  • Persistent history across sessions

Common Shell Operations

!ls -la              # List files in detail
!pwd                 # Show current directory
!cd src              # Change directory
!cat README.md       # Display file contents
!mkdir new-folder    # Create directory

Special Key Combinations

  • Dialog Controls
  • Paste Mode
KeyAction
EnterConfirm/Select
EscapeCancel/Close
Ctrl+CForce close/Cancel
↑/↓Navigate options
TabMove to next field

Tips & Tricks

  • Use /mode without arguments to quickly toggle between agent modes
  • Press Tab after typing / to see all available commands
  • Use Ctrl+R in shell mode to quickly find previous commands
  • Drag and drop files directly into the prompt for automatic path references
  • Ctrl+X opens your system’s default editor for composing complex prompts
  • Ctrl+T provides quick access to your todo list without interrupting workflow
  • Use /workspace add . to quickly add the current directory
  • Chain shell commands with !command1 && command2
  • Combine /diff with shell mode to review changes before committing
  • Use /private on before working with sensitive information
  • Create worktree aliases in your shell for frequently used branches
  • Theme switching persists across sessions

Exit Codes

Understanding exit codes helps diagnose issues when commands fail
CodeDescription
0Success
1General error or invalid usage
2Misuse of shell command
126Command found but not executable
127Command not found
128Invalid exit argument
130User interrupted (Ctrl+C)