23. Shortcuts and commands

23.1 Desktop keyboard shortcuts

Only a few shortcuts are bound this release; most actions use UI buttons, right-click menus or the command palette (type /).

Action macOS Windows / Linux
New session ⌘N Ctrl+N
Send message Enter
Newline ⇧⏎ Shift+Enter
Close Settings / dialog / command palette Esc Esc
Open header command palette Type / Type /
Command palette — up / down ↑ / ↓ ↑ / ↓
Command palette — execute Enter

[!ref] Cheat sheet: the complete shortcut table is in the Reference Manual, "Keyboard shortcuts".

23.1.1 Header command palette (Cmd / Ctrl + K)

The search box in the header is the command palette. Press Cmd+K (macOS) / Ctrl+K to open it; you can search across:

Group Content
Sessions All sessions in this workspace (time-sorted, blank drafts filtered)
Commands All slash commands (/new / /clear / /compact etc.)
Settings 18 settings entries (Account / General / Memory / Plugins / Hooks / Agents / Skills / Messaging / Context / Tools / …, plus two one-toggle actions "Switch Language" and "Toggle Draft Paper Background")
Workspace / Recent Two-line layout with split-highlighted paths

Behaviour:

  • Inside the Settings page, the search auto-narrows to settings only (placeholder changes in step). The "View → Command Palette" menu remains the full entry.
  • Single-line results with hit highlighting; long titles use smart eliding — no-hit titles use middle-eliding, hit titles open a window around the hit (1/3 + 2/3 budget).
  • ↑ / ↓ select, execute, Esc close.

23.2 Input-box slash commands

Command Purpose
/new [name] New session; optional name
/clear Clear all messages in the current session
/copy Copy the last AI reply
/fork [note] Duplicate the current session and continue the task in the copy
/compact [keep N] Trigger history compaction; optional last-N to keep verbatim
/memorize <text> Write a long-term memory entry
/memory Open the Memory Palace panel
/goal [<objective> | pause | resume | complete | clear | budget <N>] Set / pause / resume / complete / clear the session goal, or set a step budget
/unrestricted (or /无限) Toggle the current session's unrestricted mode (turn-on goes through a 5-second risk confirmation; the Chinese alias is hidden from menus but still executes)
/help List available commands
/skill:<name> [args] Trigger a skill

[!ref] Cheat sheet: parameter shapes and the complete command list are in the Reference Manual, "Input-box slash commands"; the IM-side command cheat-sheet is in "Companion-messaging commands".

23.3 IM commands

See Chapter 19.