Cortex Code CLI keyboard shortcuts

Master Cortex Code CLI with these keyboard shortcuts for efficient navigation.

Input shortcuts

ShortcutAction
EnterSubmit message
Ctrl-JInsert newline (multiline input)
Ctrl/Cmd-VPaste from clipboard
Ctrl-CCancel/interrupt (double-tap to exit)
EscDismiss suggestions (double-tap to clear input)
Ctrl-KKill line (clear input)
Ctrl-YYank (paste killed text)
Ctrl-AMove to line start
Ctrl-EMove to line end

View shortcuts

ShortcutAction
Ctrl-TOpen table viewer (cycle forward)
Ctrl-Shift-TCycle table viewer backward
Ctrl-PToggle compact/expanded mode
Ctrl-OOpen full transcript viewer
Ctrl-BView background bash processes
Ctrl-DOpen todo/task viewer
Ctrl-GOpen web search results
?Toggle help overlay

Mode Shortcuts

ShortcutAction
Shift-TabCycle operational modes

Modes cycle in this order:

  • Confirm actions
  • Plan mode
  • Bypass safeguards

History Navigation

ShortcutAction
Ctrl-RReverse search history (Emacs-style)
Ctrl-SForward search history
Ctrl-GCancel history search
Up / DownNavigate history (when at top/bottom of input)
Option-UpPrevious history entry
Option-DownNext history entry

Table viewer shortcuts

Additional shortcuts for the table viewer (Ctrl-T):

ShortcutAction
TabCycle to next table
Shift-TabCycle to previous table
cCopy query to clipboard

Auto-complete triggers

Typing one of the trigger characters below begins auto-completion for commands, file paths, skills, or Snowflake tables.

TriggerAction
/Slash command completion
@File path completion
$Skill completion
#Snowflake table completion
TabAccept suggestion
Up / DownNavigate suggestions

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.