Skip to content

Commands reference

Every slash command the interactive TUI accepts. For day-to-day usage and keybindings see Commands & keys; this page is the full list.

The menu isn't everything

Typing / pops a menu with 33 entries, but 50 commands actually work — the other 17 aren't registered in the menu and are only discoverable here. They're marked 🔍 below.

Model & thinking

CommandWhat it does
/modelToggle flash ↔ pro; /model <name> picks one directly
/thinkToggle thinking mode
/setupReconfigure API keys (model / search / image recognition)
🔍 /output-styleSwitch output style
🔍 /themeSwitch color theme

Permission modes

CommandWhat it does
/acceptToggle acceptEdits
🔍 /planEnter / leave plan mode (read-only). Leaving restores the mode you were in, not default
🔍 /dontaskToggle dontAsk: reads allowed, anything needing approval is auto-denied without a prompt
🔍 /cycle-modeCycle permission modes — same as Shift+Tab

None of these do anything under yolo

Started with --yolo, /plan and /dontask print "everything is already allowed" and change no state.

Full semantics: Permissions.

Session & history

CommandWhat it does
/clearClear the conversation
/compactCompact history manually
/resumeResume a past session
/forkFork a new session from here
/renameName the current session
/exportExport the conversation to markdown
/recapOne-line recap of the current session
/goalSet / show / clear a session-level stop goal
🔍 /rewindRewind to a checkpoint

Cost & status

CommandWhat it does
/costSpend breakdown for this session
/contextContext usage
/statsSession statistics
/statusSession overview (version / model / mode / tool count)
/diffShow uncommitted git changes
/copyCopy a reply to the clipboard; /copy N for the Nth from the end, /copy code for the last code block

Memory

CommandWhat it does
/memoryShow the memory files in effect
🔍 /pause-memoryPause memory extraction for this session. /memory-pause and /toggle-memory are aliases of the same command
/initGenerate DEEPCODE.md

Background & automation

CommandWhat it does
🔍 /background, /bgHand the current task to a background session
🔍 /stopWith no argument: list running background sessions. /stop <id> stops one
🔍 /loopCreate a recurring task; /loop <cron> <task> schedules it and runs the first round immediately
/workflowsWorkflow run history

Ecosystem & extensions

CommandWhat it does
/skillsList available skills
🔍 /reload-skillsReload skills and rebuild the system prompt (no restart needed after editing skill files)
/mcpShow configured MCP servers
/hooksShow configured hooks
/permissionsManage permission rules
/configShow merged config with per-key provenance

Environment & diagnostics

CommandWhat it does
🔍 /cdChange working directory; with no argument it prints the current one plus usage
/doctorDiagnose installation / config / connectivity
/updateCheck for and install the latest version
/keybindingsShow keybindings
/tuiSwitch renderer (inline / fullscreen)
/focusToggle focus view (collapse tool output, fullscreen only)
/helpHelp
/exitQuit

Non-slash input prefixes

PrefixWhat it does
@<path>Reference a file, with completion
!<command>Run a shell command directly, bypassing the model
/Pop the command menu

Keyboard-only operations

ActionKey
Cycle permission modesShift+Tab (or /cycle-mode)
Interrupt the current turnEsc — you can steer mid-turn, no need to wait it out
QuitCtrl+C twice

auto mode has no command of its own

You reach auto mode only by cycling with Shift+Tab or /cycle-mode. There is no /auto.

Where these come from

The 33 menu entries live in BUILTIN_COMMANDS in src/tui/suggest.ts. The 🔍 ones are handled directly in src/tui/useChat.ts and the two renderer components without being registered in the menu. This page follows what actually works.