Keyboard Shortcuts

Comprehensive keyboard shortcuts reference for the CodeCLI TUI. Shortcuts are organized by context: global shortcuts that work everywhere, input mode shortcuts, navigation, and session management.

iNote
Shortcuts can be customized in ~/.config/codecli/keybindings.json. See the keybindings documentation for customization instructions.

Global Shortcuts

These shortcuts work in any context within the TUI.

ShortcutActionDescription
Ctrl+CCancel / InterruptCancel the current operation. If the agent is running, stops generation. If idle, exits the TUI.
Ctrl+DExitExit the TUI. If there is an active session, prompts to save before exiting.
Ctrl+LClear ScreenClear the terminal screen and redraw the TUI. Useful after unexpected output corruption.
Ctrl+ZSuspendSuspend the TUI process and return to the shell. Resume with fg.
EscapeCancel / CloseClose the current overlay, modal, or popup. Return focus to the previous element.
?HelpOpen the help overlay showing all available shortcuts for the current context.

Input Mode

Shortcuts available when the text input is focused.

ShortcutActionDescription
EnterSubmitSubmit the current message to the agent
Shift+EnterNew LineInsert a newline without submitting. For multi-line input.
TabAutocompleteTrigger autocomplete for file paths, slash commands, and model names
Shift+TabPrevious SuggestionCycle backwards through autocomplete suggestions
Up ArrowHistory BackNavigate backwards through message history
Down ArrowHistory ForwardNavigate forwards through message history
Ctrl+ASelect AllSelect all text in the input field
Ctrl+WDelete WordDelete the word before the cursor
Ctrl+KDelete to EndDelete from cursor to end of line
Ctrl+UDelete to StartDelete from cursor to start of line
/Slash CommandStart a slash command. Type / followed by a command name.

Slash Commands

Slash commands are special directives entered in the input field. They start with /.

CommandDescription
/helpShow available slash commands and shortcuts
/clearClear the conversation display
/compactManually trigger context compaction
/model NAMESwitch the active model mid-session
/agent NAMESwitch to a named agent configuration
/toolsOpen the tools management view
/skillsOpen the skills management view
/mcpOpen the MCP servers management view
/sessionsOpen the session browser
/exportExport the current session
/statsShow session statistics
/btw QUESTIONAsk a side question without interrupting the main task
/planShow or update the current task plan
/kanbanShow or update the kanban board
/quitExit the TUI

Shortcuts for navigating through the conversation, panels, and views.

ShortcutActionContext
Ctrl+PPrevious MessageScroll up to the previous assistant message
Ctrl+NNext MessageScroll down to the next assistant message
Ctrl+UScroll UpScroll the conversation view up by half a page
Ctrl+DScroll DownScroll the conversation view down by half a page
HomeScroll to TopJump to the top of the conversation
EndScroll to BottomJump to the bottom of the conversation (latest message)
Page UpPage UpScroll up by one full page
Page DownPage DownScroll down by one full page
Ctrl+TabNext PanelSwitch focus to the next panel (in split-panel views)
Ctrl+Shift+TabPrevious PanelSwitch focus to the previous panel
g gGo to TopVim-style: jump to the top of the conversation
GGo to BottomVim-style: jump to the bottom of the conversation
/SearchOpen the search bar to find text in the conversation
nNext MatchJump to the next search match
NPrevious MatchJump to the previous search match

Session Management

Shortcuts for managing sessions during a TUI session.

ShortcutActionDescription
Ctrl+SSave SessionExplicitly save the current session to disk
Ctrl+OOpen SessionOpen the session browser to load a previous session
Ctrl+NNew SessionStart a new session (prompts to save current if active)
Ctrl+FFork SessionFork the current session into a new session at this point

View Controls

Shortcuts for toggling UI elements and switching views.

ShortcutActionDescription
Ctrl+BToggle SidebarShow or hide the sidebar navigation panel
Ctrl+TToggle Tools PanelShow or hide the tools/kanban sidebar panel
Ctrl+JToggle JSON ViewToggle raw JSON view for the current message (shows tool calls and responses)
Ctrl+GToggle Compact ModeSwitch between full and compact conversation display
F11Toggle FullscreenToggle fullscreen terminal mode (where supported)
Ctrl+1Tab 1Switch to tab 1 (Conversation)
Ctrl+2Tab 2Switch to tab 2 (Tools)
Ctrl+3Tab 3Switch to tab 3 (MCP)
Ctrl+4Tab 4Switch to tab 4 (Skills)
Ctrl+5Tab 5Switch to tab 5 (Kanban)

Mainframe Mode

Additional shortcuts available when running in mainframe mode.

ShortcutActionDescription
Ctrl+Shift+1-9Focus PaneSwitch focus to the numbered agent pane
Ctrl+Shift+BBroadcastOpen broadcast input to send a message to all panes
Ctrl+Shift+MMerge ResultsCollect and merge results from all agent panes
Ctrl+Shift+LChange LayoutCycle through available pane layouts (1x1, 2x1, 2x2, 3x1)
Ctrl+Shift+KKill PaneKill the currently focused agent pane
Ctrl+Shift+SSpawn PaneSpawn a new agent pane
PreviousToolsNextEnvironment Variables