KnightCode Docs

Keyboard Shortcuts

Keyboard shortcuts to navigate the interactive TUI workspace.


KnightCode is designed to be fully keyboard-driven. Use these shortcuts to speed up your development workflows without reaching for your mouse.

Workspace & Input Actions

ShortcutAction
TabSwitch input mode (BUILD, PLAN, AUTO).
Ctrl + TToggle the Todo side panel on the right.
EnterSubmit the prompt to the agent.
Shift + EnterInsert a newline in the input bar.
Ctrl + CClears the prompt input bar. (Note: Ctrl+C is intercepted by the TUI exit-guard and cannot be used to exit the app. Use /exit instead.)

Streaming Control

ShortcutAction
EscInterrupt and cancel the streaming response from the agent.

Dialog Navigation & Menus

When a dialog modal (e.g., /sessions, /theme, /models) or autocomplete menu (e.g. @path, / command menu) is open:

ShortcutAction
/ Scroll and navigate up and down through the option list.
EnterSelect the highlighted option.
EscCancel the selection and close the dialog or autocomplete menu.