Chat Commands and Keyboard Shortcuts
Kodik Chat actions are native workbench commands. You can run discoverable commands from the Command Palette and remove or reassign defaults in the VS Code keyboard shortcut editor.
Chat commands
Section titled “Chat commands”This table lists every user-facing workbench command that opens, controls, or sends context to Kodik Chat. Commands without a default shortcut remain available from the Command Palette or a context menu. The final column describes when a default shortcut is active or where a command without one is exposed. Internal transport commands and compatibility aliases are intentionally omitted.
| Action | Command ID | Windows / Linux | macOS | Shortcut or menu context |
|---|---|---|---|---|
| Toggle Chat visibility | workbench.action.toggleAuxiliaryBar | Ctrl+L | Cmd+L | Editor has no selection |
| Open Chat | kodik.openChat | (none) | (none) | Anywhere |
| Reveal Chat and focus the composer | kodik.chat.focusChatInput | Ctrl+Alt+C | Cmd+Alt+C | Anywhere |
| Add selected code to Chat | kodik.addToChat | Ctrl+L | Cmd+L | Editor has a selection |
| Add selection to Chat | kodik.chat.addSelectionToChat | (none) | (none) | Editor has a selection |
| Add a file to Chat | workbench.action.chat.attachFile | (none) | (none) | Chat enabled; Palette, Search, Explorer, or editor menus |
| Add a folder to Chat | workbench.action.chat.attachFolder | (none) | (none) | Chat enabled; Explorer folder menu |
| Add terminal output to Chat | kodik.chat.addTerminalOutputToChat | (none) | (none) | Active terminal has output |
| Start a new Chat | kodik.chat.newChat | Ctrl+Alt+N | Cmd+Alt+N | Chat view focused |
| Toggle the sessions sidebar | kodik.chat.toggleSessionsSidebar | Ctrl+Alt+B | Cmd+Alt+B | Chat view focused |
| Add files, folders, or other context | kodik.chat.openContextPicker | Ctrl+Alt+F | Cmd+Alt+F | Chat view focused |
| Open auto-approval settings | kodik.chat.openAutoApprovalSettings | Ctrl+Alt+A | Cmd+Alt+A | Chat view focused |
| Toggle Local/Worktree mode | kodik.chat.toggleWorkspaceMode | Ctrl+Alt+W | Cmd+Alt+W | Chat view focused |
| Cycle agent mode | kodik.chat.cycleMode | Ctrl+Shift+A | Cmd+Shift+A | Chat view focused |
| Switch to Ask mode | kodik.chat.setMode.ask | Ctrl+Alt+1 | Cmd+Alt+1 | Chat view focused |
| Switch to Plan mode | kodik.chat.setMode.plan | Ctrl+Alt+2 | Cmd+Alt+2 | Chat view focused |
| Switch to Code mode | kodik.chat.setMode.code | Ctrl+Alt+3 | Cmd+Alt+3 | Chat view focused |
| Switch to Debug mode | kodik.chat.setMode.debug | Ctrl+Alt+4 | Cmd+Alt+4 | Chat view focused |
| Switch to Educator mode | kodik.chat.setMode.educator | Ctrl+Alt+5 | Cmd+Alt+5 | Chat view focused |
| Focus the next Chat region | kodik.chat.focusNextRegion | F6 | F6 | Chat view focused |
| Focus the previous Chat region | kodik.chat.focusPreviousRegion | Shift+F6 | Shift+F6 | Chat view focused |
| Open the previous session | kodik.chat.previousSession | Ctrl+Alt+[ | Cmd+Alt+[ | Chat view focused |
| Open the next session | kodik.chat.nextSession | Ctrl+Alt+] | Cmd+Alt+] | Chat view focused |
| Set the Chat provider API key | kodik.chat.setApiKey | (none) | (none) | Anywhere |
| Fix the selected code or problem | kodik.fix | (none) | (none) | Editor Quick Fix on a selection/problem |
| Explain selected code | kodik.explainCode | (none) | (none) | Editor has a selection |
| Improve selected code | kodik.improveCode | (none) | (none) | Editor has a selection |
| Fix selected code | kodik.fixCode | (none) | (none) | Editor has a selection |
| Generate tests for selected code | kodik.generateTests | (none) | (none) | Editor has a selection |
| Generate docs for selected code | kodik.generateDocs | (none) | (none) | Editor has a selection |
On macOS, focused-Chat shortcuts shown with Cmd also accept the equivalent Ctrl shortcut; for example, both Cmd+Alt+N and Ctrl+Alt+N start a new Chat.
Other Kodik shortcuts
Section titled “Other Kodik shortcuts”| Action | Windows / Linux | macOS | Condition |
|---|---|---|---|
| Reveal folder in Explorer | Ctrl+Alt+P | Cmd+Alt+P | Anywhere |
| Mark selection as sensitive | Ctrl+Alt+S | Cmd+Alt+S | Selection present; anonymizer enabled |
| Unmark sensitive selection | Ctrl+Alt+U | Cmd+Alt+U | Selection is marked; anonymizer enabled |
| Keep all file changes (File Review) | Alt+K | Alt+K | File changes are pending |
| Undo all file changes (File Review) | Alt+U | Alt+U | File changes are pending |
| Review changes (File Review) | Alt+D | Alt+D | File changes are pending |
| Accept file changes (File Review) | Alt+A | Alt+A | File review active |
| Reject file changes (File Review) | Alt+R | Alt+R | File review active |
| Next change (File Review) | Alt+Right | Alt+Right | File review active |
| Previous change (File Review) | Alt+Left | Alt+Left | File review active |
| Generate commit message | (none) | (none) | Git enabled; SCM open |
Built-in Chat slash commands
Section titled “Built-in Chat slash commands”Type a slash command at the start of the Chat composer. The following table contains every built-in command recognized by Chat; workspace commands and installed skills are dynamic and appear in the / menu when available.
| Command | Action |
|---|---|
/newtask | Duplicate this Chat into a new one |
/compact | Summarize the conversation to free context |
/goal | Create or control a long-running goal when enabled |
/skills | Browse and apply installed skills |
/create-skill [requirements] | Create a reusable skill through Chat |
/create-command [requirements] | Create a reusable command through Chat |
/create-rule [requirements] | Create a reusable rule through Chat |
/create-hook [requirements] | Create a lifecycle hook through Chat |
/install-template [details] | Install a template into the workspace through Chat |
/analyze-workspace [path] | Prepare an application for Kodik Hosting |
Customizing shortcuts
Section titled “Customizing shortcuts”To reassign a shortcut:
-
Open the keyboard shortcut editor:
Ctrl+K Ctrl+S(Windows/Linux) orCmd+K Cmd+S(macOS)- Or: File → Preferences → Keyboard Shortcuts
-
Type
kodikin the search bar to filter Kodik commands. Search forToggle Chat Visibilityseparately to reassign the Chat visibility command. -
Click the pencil icon next to the command you want to change.
-
Press the key combination you want to assign, then press Enter.
Keyboard-only workflow
Section titled “Keyboard-only workflow”A Kodik workflow without touching the mouse:
- Select code (
Shift+Arrowkeys). - Press
Ctrl+L/Cmd+Lto add it to chat, orCtrl+Alt+C/Cmd+Alt+Cto reveal and focus chat. - Use
F6/Shift+F6to move among the session sidebar and the active split group’s tabs and composer. Entering Chat withF6lands on its first available region; entering in reverse withShift+F6lands on its last available region, including the session sidebar when it is shown. Hidden regions are skipped, and at a Chat boundary focus continues into the rest of the workbench instead of wrapping inside Chat. - In the session list, Tab moves through every session card and its More actions button. You can also use
ArrowUp/ArrowDownandHome/Endbetween cards, thenEnterorSpaceto open a session. In a tab strip, useArrowLeft/ArrowRight,Home/End, andDelete. - The passive transcript itself is not a focus stop. Tab still reaches actionable buttons and links inside individual messages.
- Use
Ctrl+Alt+1…5/Cmd+Alt+1…5to switch modes, type your question, and press Enter.
The docked session sidebar’s resize separator is also keyboard-operable: focus it with Tab, then use the left and right arrow keys; Home selects the minimum width and End the maximum.
When Tab focuses a chat control that has a tooltip, Kodik shows the same help that appears on pointer hover. The tooltip remains visible until focus and the pointer both leave its trigger.
Finding all commands
Section titled “Finding all commands”- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P). - Type
kodikto filter the list. - Browse the available commands.
