Cortex Code CLI keyboard shortcuts
Master Cortex Code CLI with these keyboard shortcuts for efficient navigation.
Mode Shortcuts
Modes cycle in this order:
- Confirm actions
- Plan mode
- Bypass safeguards
History Navigation
Table viewer shortcuts
Additional shortcuts for the table viewer (Ctrl-T):
Auto-complete triggers
Typing one of the trigger characters below begins auto-completion for commands, file paths, skills, or Snowflake tables.
Display modes
Press Ctrl-P to toggle between Compact and Expanded display modes for tool execution details.
- Compact mode (Default)
- Minimal tool execution display
- Shows summary of operations
- Expanded mode
- Full tool execution details
- Complete input/output display
Quick reference card
┌──────────────────────────────────────────────────────────┐
│ CORTEX CODE SHORTCUTS │
├──────────────────────────────────────────────────────────┤
│ INPUT │ VIEW │
│ Enter Submit │ Ctrl-T Table viewer │
│ Ctrl-J Newline │ Ctrl-P Toggle compact │
│ Ctrl-C Cancel │ Ctrl-O Transcript │
│ Ctrl-R History │ Ctrl-B Background bash │
│ Esc Esc Clear │ Ctrl-D Todo viewer │
│ │ ? Help overlay │
├─────────────────────────┼────────────────────────────────┤
│ NAVIGATION │ AUTOCOMPLETE │
│ Up/k Up │ / Commands │
│ Down/j Down │ @ Files │
│ g Top │ $ Skills │
│ G Bottom │ # Tables │
│ q/Esc Exit │ Tab Accept │
├─────────────────────────┴────────────────────────────────┤
│ Shift-Tab Cycle modes (Confirm → Plan → Bypass) │
└──────────────────────────────────────────────────────────┘
Tips
- Use Ctrl-P often: Switch between compact and expanded mode based on what you need to see.
- Master Ctrl-R: History search is powerful for repeating complex prompts.
- Vim-style navigation: The h/j/k/l keys work everywhere for cursor movement.
- Double-tap patterns: For example, Esc Esc clears input, Ctrl-C Ctrl-C exits.